Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00195/0.00195, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00224/0.00224, allocations: 221 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.529/1.529, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 55.86 kB / 378.3 MB, free: 2.387 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2416/0.2431, allocations: 53.36 MB / 431.6 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04352/0.2867, allocations: 34.39 MB / 466 MB, free: 4.145 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02768/0.3143, allocations: 10.37 MB / 476.4 MB, free: 9.746 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008451/0.3228, allocations: 369.9 kB / 476.7 MB, free: 9.383 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02204/0.3448, allocations: 8.022 MB / 484.8 MB, free: 1.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01311/0.3579, allocations: 3.477 MB / 488.2 MB, free: 13.85 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009076/0.367, allocations: 2.341 MB / 490.6 MB, free: 11.51 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0197/0.3867, allocations: 13.03 MB / 0.4918 GB, free: 14.44 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03675/0.4235, allocations: 17.12 MB / 0.5085 GB, free: 13.17 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01265/0.4361, allocations: 6.994 MB / 0.5154 GB, free: 6.156 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01496/0.4511, allocations: 7.528 MB / 0.5227 GB, free: 14.6 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006562/0.4576, allocations: 1.949 MB / 0.5246 GB, free: 12.65 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008359/0.466, allocations: 2.343 MB / 0.5269 GB, free: 10.31 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006981/0.473, allocations: 3.97 MB / 0.5308 GB, free: 6.328 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01432/0.4873, allocations: 5.903 MB / 0.5365 GB, free: 412 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2695/0.7568, allocations: 26.07 MB / 0.562 GB, free: 39.21 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.7568, allocations: 0 / 0.562 GB, free: 39.21 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.7568, allocations: 0 / 0.562 GB, free: 39.21 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005829/0.7574, allocations: 0 / 0.562 GB, free: 39.21 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.03885/0.7962, allocations: 15.24 MB / 0.5769 GB, free: 31.18 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.7962, allocations: 12.22 kB / 0.5769 GB, free: 31.18 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03056/0.8268, allocations: 6.128 MB / 0.5829 GB, free: 28.36 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01637/0.8432, allocations: 8.102 MB / 0.5908 GB, free: 23.39 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005385/0.8437, allocations: 0.9023 MB / 0.5917 GB, free: 22.99 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003432/0.8471, allocations: 1.2 MB / 0.5928 GB, free: 22.59 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04179/0.8889, allocations: 18.92 MB / 0.6113 GB, free: 3.91 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004007/0.8893, allocations: 19.91 kB / 0.6113 GB, free: 3.891 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003339/0.8927, allocations: 0.4902 MB / 0.6118 GB, free: 3.41 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004807/0.8932, allocations: 0.647 MB / 0.6124 GB, free: 2.762 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03801/0.9312, allocations: 16.74 MB / 0.6288 GB, free: 2.012 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1038/1.035, allocations: 50.67 MB / 0.6783 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01849/1.053, allocations: 10.27 MB / 0.6883 GB, free: 6.57 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006472/1.06, allocations: 3.406 MB / 0.6916 GB, free: 3.156 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01803/1.078, allocations: 7.672 MB / 0.6991 GB, free: 11.59 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.307e-05/1.078, allocations: 73.31 kB / 0.6992 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=349): time 6.392e-06/1.078, allocations: 0 / 0.6992 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of matching and sorting (n=389): time 0.03996/1.118, allocations: 17.24 MB / 0.716 GB, free: 10.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.055e-05/1.118, allocations: 90.47 kB / 0.7161 GB, free: 10.2 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008381/1.126, allocations: 4.795 MB / 0.7208 GB, free: 5.398 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005908/1.127, allocations: 93.7 kB / 0.7209 GB, free: 5.301 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00511/1.132, allocations: 5.646 MB / 0.7264 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00178/1.134, allocations: 1.425 MB / 0.7278 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002168/1.136, allocations: 1.338 MB / 0.7291 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001363/1.136, allocations: 301.1 kB / 0.7294 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004741/1.141, allocations: 2.91 MB / 0.7322 GB, free: 9.676 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007536/1.149, allocations: 5.923 MB / 0.738 GB, free: 2.387 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01271/1.161, allocations: 9.465 MB / 0.7473 GB, free: 7.902 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-05/1.161, allocations: 28 kB / 0.7473 GB, free: 7.875 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.2438/1.405, allocations: 9.827 MB / 0.7569 GB, free: 198.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 9.097e-05/1.405, allocations: 47.5 kB / 0.7569 GB, free: 198.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000195/1.405, allocations: 100.4 kB / 0.757 GB, free: 198.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002753/1.408, allocations: 0.9421 MB / 0.7579 GB, free: 198.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006483/1.415, allocations: 1.59 MB / 0.7595 GB, free: 198.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0106/1.425, allocations: 9.67 MB / 0.7689 GB, free: 195 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006285/1.432, allocations: 408.2 kB / 0.7693 GB, free: 194.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001675/1.433, allocations: 359.4 kB / 0.7697 GB, free: 194.9 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007954/1.441, allocations: 4.254 MB / 0.7738 GB, free: 193.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001419/1.443, allocations: 0.5077 MB / 0.7743 GB, free: 193.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009516/1.452, allocations: 6.44 MB / 0.7806 GB, free: 191 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.228e-05/1.452, allocations: 39.09 kB / 0.7806 GB, free: 191 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.347e-05/1.452, allocations: 7.844 kB / 0.7807 GB, free: 191 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.093e-05/1.452, allocations: 26.36 kB / 0.7807 GB, free: 191 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02542/1.478, allocations: 13.3 MB / 0.7937 GB, free: 185.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.369e-05/1.478, allocations: 3.656 kB / 0.7937 GB, free: 185.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003165/1.481, allocations: 0.7524 MB / 0.7944 GB, free: 185.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002/1.483, allocations: 0.7839 MB / 0.7952 GB, free: 185.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003309/1.483, allocations: 90.34 kB / 0.7953 GB, free: 185.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008421/1.492, allocations: 8.841 MB / 0.8039 GB, free: 177.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/1.492, allocations: 4.156 kB / 0.8039 GB, free: 177.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01337/1.505, allocations: 9.495 MB / 0.8132 GB, free: 169.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003177/1.508, allocations: 0.9859 MB / 0.8141 GB, free: 169 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001428/1.51, allocations: 70.39 kB / 0.8142 GB, free: 168.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003163/1.513, allocations: 217.6 kB / 0.8144 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005657/1.513, allocations: 286.5 kB / 0.8147 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000249/1.514, allocations: 119.6 kB / 0.8148 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004919/1.518, allocations: 3.058 MB / 0.8178 GB, free: 166 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/1.518, allocations: 4 kB / 0.8178 GB, free: 166 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007251/1.526, allocations: 1.877 MB / 0.8196 GB, free: 164.1 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (8,38,59.4%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008855/1.527, allocations: 261.7 kB / 0.8199 GB, free: 163.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01109/1.538, allocations: 7.224 MB / 0.8269 GB, free: 157 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/1.538, allocations: 0 / 0.8269 GB, free: 157 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.005387/1.543, allocations: 3.178 MB / 0.83 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005679/1.549, allocations: 1.163 MB / 0.8312 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03383/1.583, allocations: 20.06 MB / 0.8507 GB, free: 132.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008773/1.591, allocations: 6.938 MB / 0.8575 GB, free: 125.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005877/1.597, allocations: 2.103 MB / 0.8596 GB, free: 123.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001631/1.599, allocations: 407.3 kB / 0.86 GB, free: 123 MB / 0.5762 GB Notification: Performance of SimCode: time 1.353e-06/1.599, allocations: 0 / 0.86 GB, free: 123 MB / 0.5762 GB Notification: Performance of Templates: time 0.1266/1.725, allocations: 77.38 MB / 0.9355 GB, free: 46.62 MB / 0.5762 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.762911899015307]