Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.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.001827/0.001827, allocations: 102 kB / 21.22 MB, free: 0.6562 MB / 14.72 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.002324/0.002324, allocations: 183.9 kB / 24.51 MB, free: 4.016 MB / 14.72 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 1.532/1.532, allocations: 225.6 MB / 253.3 MB, free: 13.07 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2362/0.2362, allocations: 44.91 MB / 353.5 MB, free: 11.93 MB / 286.1 MB
"
[Timeout remaining time 179]
Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo)
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(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed")
translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002001/0.002001, allocations: 71.88 kB / 497.7 MB, free: 1.055 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.436/0.438, allocations: 64.29 MB / 0.5488 GB, free: 13.16 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.005449/0.4435, allocations: 2.635 MB / 0.5514 GB, free: 11.1 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001521/0.445, allocations: 0.6608 MB / 0.552 GB, free: 10.55 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001596/0.4451, allocations: 9.375 kB / 0.552 GB, free: 10.55 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001723/0.4453, allocations: 43.55 kB / 0.5521 GB, free: 10.51 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001841/0.4455, allocations: 88.48 kB / 0.5522 GB, free: 10.43 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002722/0.4458, allocations: 84.02 kB / 0.5522 GB, free: 10.36 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004063/0.4462, allocations: 340 kB / 0.5526 GB, free: 10.16 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001907/0.4464, allocations: 60.27 kB / 0.5526 GB, free: 10.12 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002013/0.4466, allocations: 129.3 kB / 0.5527 GB, free: 10.05 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.000201/0.4468, allocations: 136.9 kB / 0.5529 GB, free: 9.957 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.89e-05/0.4468, allocations: 21.97 kB / 0.5529 GB, free: 9.957 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 5.231e-05/0.4469, allocations: 21.94 kB / 0.5529 GB, free: 9.957 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.518e-05/0.4469, allocations: 60.14 kB / 0.553 GB, free: 9.906 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001593/0.4471, allocations: 146.5 kB / 0.5531 GB, free: 9.809 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004273/0.4475, allocations: 302.4 kB / 0.5534 GB, free: 9.594 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.4475, allocations: 1.094 kB / 0.5534 GB, free: 9.594 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.593e-06/0.4475, allocations: 0 / 0.5534 GB, free: 9.594 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 8.747e-06/0.4475, allocations: 0 / 0.5534 GB, free: 9.594 MB / 398.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 60
 * Number of variables: 60
Notification: Performance of Generate backend data structure: time 0.001011/0.4486, allocations: 0.5144 MB / 0.5539 GB, free: 9.148 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.4486, allocations: 10.36 kB / 0.5539 GB, free: 9.148 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 8.377e-05/0.4487, allocations: 37.56 kB / 0.5539 GB, free: 9.129 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004357/0.4491, allocations: 218.5 kB / 0.5542 GB, free: 8.922 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.575e-05/0.4491, allocations: 18.72 kB / 0.5542 GB, free: 8.914 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 6.134e-05/0.4492, allocations: 29.3 kB / 0.5542 GB, free: 8.902 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.000565/0.4498, allocations: 287.8 kB / 0.5545 GB, free: 8.691 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/0.4498, allocations: 2.219 kB / 0.5545 GB, free: 8.691 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.044e-05/0.4498, allocations: 11.31 kB / 0.5545 GB, free: 8.684 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.4498, allocations: 6.531 kB / 0.5545 GB, free: 8.684 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004612/0.4503, allocations: 187.4 kB / 0.5547 GB, free: 8.602 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00192/0.4522, allocations: 1.247 MB / 0.5559 GB, free: 7.453 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004215/0.4526, allocations: 228.1 kB / 0.5561 GB, free: 7.289 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002042/0.4528, allocations: 94.08 kB / 0.5562 GB, free: 7.227 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.656e-05/0.4529, allocations: 10.31 kB / 0.5562 GB, free: 7.219 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.32e-05/0.4529, allocations: 37.09 kB / 0.5562 GB, free: 7.176 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=26): time 1.793e-06/0.4529, allocations: 0 / 0.5562 GB, free: 7.176 MB / 398.1 MB
Notification: Performance of matching and sorting (n=32): time 0.002633/0.4555, allocations: 1.207 MB / 0.5574 GB, free: 6.23 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.4556, allocations: 137.2 kB / 0.5576 GB, free: 6.07 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002626/0.4559, allocations: 226.7 kB / 0.5578 GB, free: 5.887 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.13e-05/0.4559, allocations: 33.7 kB / 0.5578 GB, free: 5.848 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.4561, allocations: 176.7 kB / 0.558 GB, free: 5.672 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 9.926e-05/0.4562, allocations: 119 kB / 0.5581 GB, free: 5.555 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.4563, allocations: 78.03 kB / 0.5582 GB, free: 5.473 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001587/0.4564, allocations: 338.8 kB / 0.5585 GB, free: 5.133 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002681/0.4567, allocations: 108.7 kB / 0.5586 GB, free: 5.027 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003599/0.4571, allocations: 229.5 kB / 0.5588 GB, free: 4.746 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0006869/0.4578, allocations: 373 kB / 0.5592 GB, free: 4.32 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.4578, allocations: 0 / 0.5592 GB, free: 4.32 MB / 398.1 MB
Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007895/0.4586, allocations: 397.1 kB / 0.5595 GB, free: 3.926 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.4586, allocations: 8 kB / 0.5595 GB, free: 3.918 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.4586, allocations: 4 kB / 0.5595 GB, free: 3.914 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.689e-05/0.4586, allocations: 8 kB / 0.5596 GB, free: 3.906 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004245/0.459, allocations: 95.81 kB / 0.5596 GB, free: 3.812 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.424e-05/0.4591, allocations: 8 kB / 0.5597 GB, free: 3.805 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002252/0.4593, allocations: 36.22 kB / 0.5597 GB, free: 3.77 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.672e-05/0.4593, allocations: 20.09 kB / 0.5597 GB, free: 3.75 MB / 398.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 20
 * 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 (48):
 * Single equations (assignments): 48
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.0001632/0.4595, allocations: 157.7 kB / 0.5599 GB, free: 3.586 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.4596, allocations: 35.75 kB / 0.5599 GB, free: 3.551 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.351e-05/0.4597, allocations: 37.7 kB / 0.5599 GB, free: 3.508 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.4597, allocations: 4 kB / 0.5599 GB, free: 3.504 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 9.397e-06/0.4597, allocations: 0 / 0.5599 GB, free: 3.504 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.4597, allocations: 240 / 0.5599 GB, free: 3.504 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001631/0.4613, allocations: 0.9535 MB / 0.5609 GB, free: 2.492 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.4613, allocations: 0 / 0.5609 GB, free: 2.492 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003738/0.4617, allocations: 83.92 kB / 0.5609 GB, free: 2.41 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 7.604e-06/0.4617, allocations: 4 kB / 0.5609 GB, free: 2.406 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.755e-05/0.4617, allocations: 11.94 kB / 0.561 GB, free: 2.395 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.506e-06/0.4617, allocations: 7.938 kB / 0.561 GB, free: 2.387 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4617, allocations: 0 / 0.561 GB, free: 2.387 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.4629, allocations: 0.7302 MB / 0.5617 GB, free: 1.633 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 4.711e-05/0.4629, allocations: 23.81 kB / 0.5617 GB, free: 1.609 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.392e-05/0.463, allocations: 16 kB / 0.5617 GB, free: 1.594 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003034/0.4633, allocations: 23.97 kB / 0.5617 GB, free: 1.57 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.173e-05/0.4633, allocations: 23.95 kB / 0.5618 GB, free: 1.547 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.945e-05/0.4634, allocations: 12 kB / 0.5618 GB, free: 1.535 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.0001472/0.4635, allocations: 156.5 kB / 0.5619 GB, free: 1.383 MB / 398.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.4635, allocations: 0 / 0.5619 GB, free: 1.383 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0004993/0.464, allocations: 68 kB / 0.562 GB, free: 1.316 MB / 398.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 6
 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.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 (32):
 * Single equations (assignments): 32
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.00014/0.4642, allocations: 111.1 kB / 0.5621 GB, free: 1.199 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0006553/0.4648, allocations: 256.2 kB / 0.5623 GB, free: 0.9492 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4648, allocations: 4.188 kB / 0.5623 GB, free: 0.9453 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002918/0.4651, allocations: 127.8 kB / 0.5625 GB, free: 0.8203 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006426/0.4657, allocations: 41.61 kB / 0.5625 GB, free: 0.7812 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001504/0.4672, allocations: 0.8848 MB / 0.5634 GB, free: 15.86 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004424/0.4677, allocations: 0.7757 MB / 0.5641 GB, free: 15.05 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0001344/0.4678, allocations: 30.97 kB / 0.5642 GB, free: 15.02 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 7.655e-05/0.4679, allocations: 31.36 kB / 0.5642 GB, free: 14.99 MB / 414.1 MB
Notification: Performance of SimCode: time 3.51e-07/0.4679, allocations: 4 kB / 0.5642 GB, free: 14.98 MB / 414.1 MB
Notification: Performance of Templates: time 0.007079/0.475, allocations: 2.648 MB / 0.5668 GB, free: 12.35 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.makefile [Timeout 660]
(rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.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: 5.545506746508181]