Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 85.17 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 147.5 kB / 24.89 MB, free: 8.742 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9277/0.9277, allocations: 173.4 MB / 201.5 MB, free: 8.738 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.[0-9,]+.",fileNamePrefix="Modelica_4.0.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.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.893e-06/1.893e-06, allocations: 0 / 268.5 MB, free: 5.988 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.213e-05/2.402e-05, allocations: 10.05 kB / 268.5 MB, free: 5.98 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1389/0.1389, allocations: 36.99 MB / 305.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01781/0.1567, allocations: 10.89 MB / 316.4 MB, free: 6.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004593/0.1613, allocations: 367.6 kB / 316.8 MB, free: 6.605 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008856/0.1702, allocations: 9.075 MB / 325.8 MB, free: 60 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007643/0.1778, allocations: 3.606 MB / 329.5 MB, free: 12.99 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003735/0.1815, allocations: 2.347 MB / 331.8 MB, free: 10.64 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01095/0.1925, allocations: 13.41 MB / 345.2 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01924/0.2117, allocations: 17.61 MB / 362.8 MB, free: 11.36 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0116/0.2233, allocations: 10.68 MB / 373.5 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00817/0.2315, allocations: 7.505 MB / 381 MB, free: 9.145 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003442/0.2349, allocations: 1.941 MB / 382.9 MB, free: 7.203 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00309/0.238, allocations: 2.319 MB / 385.3 MB, free: 4.883 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002429/0.2405, allocations: 4.068 MB / 389.3 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00491/0.2454, allocations: 5.111 MB / 394.4 MB, free: 11.68 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01249/0.2579, allocations: 12.54 MB / 407 MB, free: 15.1 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2579, allocations: 0 / 407 MB, free: 15.1 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2579, allocations: 0 / 407 MB, free: 15.1 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002989/0.2582, allocations: 0 / 407 MB, free: 15.1 MB / 362.7 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.01782/0.276, allocations: 14.51 MB / 421.5 MB, free: 496 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.276, allocations: 12.92 kB / 421.5 MB, free: 484 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01512/0.2911, allocations: 6.392 MB / 427.9 MB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006718/0.2979, allocations: 4.364 MB / 432.3 MB, free: 5.609 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000413/0.2983, allocations: 0.9109 MB / 433.2 MB, free: 4.695 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00119/0.2995, allocations: 1.199 MB / 434.4 MB, free: 3.496 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2255/0.525, allocations: 9.618 MB / 444 MB, free: 80.45 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001992/0.5252, allocations: 23.23 kB / 444 MB, free: 80.45 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007853/0.5259, allocations: 0.4911 MB / 444.5 MB, free: 80.45 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005741/0.5265, allocations: 0.6428 MB / 445.2 MB, free: 80.42 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007914/0.5344, allocations: 4.651 MB / 449.8 MB, free: 80.08 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03517/0.5696, allocations: 36.53 MB / 486.3 MB, free: 61.73 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00544/0.575, allocations: 6.09 MB / 492.4 MB, free: 55.85 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001138/0.5762, allocations: 1.287 MB / 493.7 MB, free: 54.6 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005491/0.5817, allocations: 4.147 MB / 497.9 MB, free: 50.74 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.5817, allocations: 73.31 kB / 497.9 MB, free: 50.66 MB / 378.8 MB Notification: Performance of pre-optimization done (n=349): time 4.699e-06/0.5817, allocations: 0 / 497.9 MB, free: 50.66 MB / 378.8 MB Notification: Performance of matching and sorting (n=389): time 0.01215/0.5939, allocations: 8.28 MB / 0.4943 GB, free: 42.99 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.801e-05/0.5939, allocations: 98.47 kB / 0.4944 GB, free: 42.88 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00195/0.5958, allocations: 3.312 MB / 0.4977 GB, free: 40.36 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001608/0.596, allocations: 89.7 kB / 0.4978 GB, free: 40.27 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001168/0.5972, allocations: 5.112 MB / 0.5028 GB, free: 35.57 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004887/0.5977, allocations: 1.409 MB / 0.5041 GB, free: 34.24 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009678/0.5986, allocations: 1.231 MB / 0.5053 GB, free: 33.14 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 2.371e-05/0.5986, allocations: 301.1 kB / 0.5056 GB, free: 32.84 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009142/0.5996, allocations: 0.862 MB / 0.5065 GB, free: 31.97 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001464/0.601, allocations: 3.69 MB / 0.5101 GB, free: 27.09 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002976/0.604, allocations: 5.208 MB / 0.5151 GB, free: 21.04 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.453e-05/0.604, allocations: 28 kB / 0.5152 GB, free: 21.01 MB / 378.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.004276/0.6083, allocations: 4.517 MB / 0.5196 GB, free: 17.12 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.754e-05/0.6083, allocations: 48 kB / 0.5196 GB, free: 17.07 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.887e-05/0.6084, allocations: 101.6 kB / 0.5197 GB, free: 16.97 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001258/0.6096, allocations: 0.8183 MB / 0.5205 GB, free: 16.15 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002339/0.612, allocations: 1.442 MB / 0.5219 GB, free: 14.82 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003646/0.6156, allocations: 6.014 MB / 0.5278 GB, free: 8.688 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/0.6175, allocations: 279.8 kB / 0.5281 GB, free: 8.414 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002515/0.6178, allocations: 292 kB / 0.5284 GB, free: 8.129 MB / 378.8 MB 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.001663/0.6194, allocations: 0.5904 MB / 0.5289 GB, free: 7.645 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004839/0.6199, allocations: 414.9 kB / 0.5293 GB, free: 7.242 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002828/0.6227, allocations: 2.708 MB / 0.532 GB, free: 4.531 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.316e-05/0.6227, allocations: 43.98 kB / 0.532 GB, free: 4.488 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.6227, allocations: 8 kB / 0.532 GB, free: 4.48 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.747e-05/0.6228, allocations: 19.92 kB / 0.532 GB, free: 4.461 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007927/0.6307, allocations: 6.791 MB / 0.5387 GB, free: 14.36 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.635e-06/0.6307, allocations: 4 kB / 0.5387 GB, free: 14.36 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001455/0.6322, allocations: 0.6225 MB / 0.5393 GB, free: 13.77 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001254/0.6334, allocations: 0.6523 MB / 0.5399 GB, free: 13.11 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001765/0.6336, allocations: 75.97 kB / 0.54 GB, free: 13.04 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004036/0.6376, allocations: 5.631 MB / 0.5455 GB, free: 7.266 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.6376, allocations: 4.031 kB / 0.5455 GB, free: 7.262 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003886/0.6415, allocations: 3.263 MB / 0.5487 GB, free: 3.988 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008967/0.6424, allocations: 0.5723 MB / 0.5492 GB, free: 3.414 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003485/0.6428, allocations: 68 kB / 0.5493 GB, free: 3.348 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008755/0.6436, allocations: 108.8 kB / 0.5494 GB, free: 3.242 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003211/0.644, allocations: 265.9 kB / 0.5497 GB, free: 2.984 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001534/0.6441, allocations: 91.91 kB / 0.5498 GB, free: 2.895 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.001344/0.6454, allocations: 1.523 MB / 0.5512 GB, free: 1.559 MB / 394.8 MB Notification: Performance of sort global known variables: time 9e-08/0.6454, allocations: 0 / 0.5512 GB, free: 1.559 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.003956/0.6494, allocations: 1.863 MB / 0.5531 GB, free: 15.69 MB / 410.8 MB 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.0003998/0.6498, allocations: 246.4 kB / 0.5533 GB, free: 15.49 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.003673/0.6535, allocations: 3.631 MB / 0.5568 GB, free: 12.18 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0001116/0.6536, allocations: 80.81 kB / 0.5569 GB, free: 12.1 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001737/0.6553, allocations: 1.774 MB / 0.5586 GB, free: 10.39 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002394/0.6577, allocations: 1.167 MB / 0.5598 GB, free: 9.262 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02019/0.6779, allocations: 16.87 MB / 0.5763 GB, free: 8.32 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001984/0.6799, allocations: 2.262 MB / 0.5785 GB, free: 6.027 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.00231/0.6822, allocations: 0.8079 MB / 0.5793 GB, free: 5.215 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001845/0.6841, allocations: 1.109 MB / 0.5803 GB, free: 4.082 MB / 426.8 MB Notification: Performance of SimCode: time 1.553e-06/0.6841, allocations: 0 / 0.5803 GB, free: 4.082 MB / 426.8 MB Notification: Performance of Templates: time 0.2087/0.8928, allocations: 69.84 MB / 0.6485 GB, free: 77.05 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.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.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.057260264176875]