Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.001691/0.001691, 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.001833/0.001833, allocations: 185.2 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.519/1.519, allocations: 225.6 MB / 253.3 MB, free: 13.03 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.2444/0.2444, allocations: 44.91 MB / 353.5 MB, free: 11.84 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.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2")
translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002197/0.002197, allocations: 67.89 kB / 497.7 MB, free: 1.043 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.456/0.4582, allocations: 64.3 MB / 0.5488 GB, free: 13.17 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004464/0.4626, allocations: 2.86 MB / 0.5516 GB, free: 10.92 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001193/0.4638, allocations: 0.7003 MB / 0.5523 GB, free: 10.34 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001789/0.464, allocations: 11.25 kB / 0.5523 GB, free: 10.34 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001994/0.4642, allocations: 65.12 kB / 0.5524 GB, free: 10.28 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002412/0.4645, allocations: 133.1 kB / 0.5525 GB, free: 10.16 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002906/0.4647, allocations: 87.27 kB / 0.5526 GB, free: 10.09 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.000605/0.4654, allocations: 433.8 kB / 0.553 GB, free: 9.832 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002313/0.4656, allocations: 100.4 kB / 0.5531 GB, free: 9.77 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002507/0.4658, allocations: 178.5 kB / 0.5533 GB, free: 9.672 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002582/0.4661, allocations: 175.6 kB / 0.5534 GB, free: 9.555 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.688e-05/0.4661, allocations: 32.06 kB / 0.5534 GB, free: 9.555 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 7.091e-05/0.4662, allocations: 40.66 kB / 0.5535 GB, free: 9.547 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.695e-05/0.4663, allocations: 71.36 kB / 0.5536 GB, free: 9.488 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002267/0.4665, allocations: 200.3 kB / 0.5537 GB, free: 9.359 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005389/0.4671, allocations: 433.5 kB / 0.5542 GB, free: 9.055 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.4671, allocations: 0 / 0.5542 GB, free: 9.055 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.623e-06/0.4671, allocations: 0 / 0.5542 GB, free: 9.055 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 9.668e-06/0.4671, allocations: 1.281 kB / 0.5542 GB, free: 9.055 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: 93
 * Number of variables: 93
Notification: Performance of Generate backend data structure: time 0.001113/0.4682, allocations: 0.5829 MB / 0.5547 GB, free: 8.566 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.4682, allocations: 10.55 kB / 0.5547 GB, free: 8.566 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 9.956e-05/0.4683, allocations: 42.45 kB / 0.5548 GB, free: 8.547 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004347/0.4688, allocations: 215.3 kB / 0.555 GB, free: 8.336 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.882e-05/0.4688, allocations: 29.09 kB / 0.555 GB, free: 8.324 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 7.054e-05/0.4689, allocations: 41.27 kB / 0.5551 GB, free: 8.309 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007294/0.4696, allocations: 398 kB / 0.5554 GB, free: 8.023 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.839e-05/0.4696, allocations: 7.297 kB / 0.5554 GB, free: 8.02 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.239e-05/0.4697, allocations: 20.27 kB / 0.5555 GB, free: 8.004 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.4697, allocations: 13.5 kB / 0.5555 GB, free: 8 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004843/0.4702, allocations: 216 kB / 0.5557 GB, free: 7.902 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002765/0.4729, allocations: 1.676 MB / 0.5573 GB, free: 6.391 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005234/0.4735, allocations: 256.1 kB / 0.5576 GB, free: 6.156 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001787/0.4736, allocations: 91.98 kB / 0.5576 GB, free: 6.074 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.802e-05/0.4737, allocations: 7.641 kB / 0.5577 GB, free: 6.07 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.4737, allocations: 45.78 kB / 0.5577 GB, free: 6.02 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=26): time 1.573e-06/0.4737, allocations: 0 / 0.5577 GB, free: 6.02 MB / 398.1 MB
Notification: Performance of matching and sorting (n=26): time 0.0006989/0.4744, allocations: 260.6 kB / 0.5579 GB, free: 5.816 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/0.4746, allocations: 214 kB / 0.5582 GB, free: 5.559 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003043/0.4749, allocations: 276.1 kB / 0.5584 GB, free: 5.281 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.1e-05/0.4749, allocations: 33.7 kB / 0.5584 GB, free: 5.242 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001808/0.4751, allocations: 248.1 kB / 0.5587 GB, free: 4.996 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 9.585e-05/0.4752, allocations: 118.9 kB / 0.5588 GB, free: 4.879 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001398/0.4753, allocations: 106.2 kB / 0.5589 GB, free: 4.77 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001805/0.4755, allocations: 350.7 kB / 0.5592 GB, free: 4.418 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002322/0.4757, allocations: 93.27 kB / 0.5593 GB, free: 4.324 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004913/0.4762, allocations: 432.8 kB / 0.5597 GB, free: 3.75 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0008393/0.477, allocations: 0.5706 MB / 0.5603 GB, free: 3.02 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.4771, allocations: 8.5 kB / 0.5603 GB, free: 3.012 MB / 398.1 MB
Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009129/0.478, allocations: 0.5211 MB / 0.5608 GB, free: 2.484 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.478, allocations: 8 kB / 0.5608 GB, free: 2.477 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.478, allocations: 12 kB / 0.5608 GB, free: 2.465 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 3.098e-05/0.478, allocations: 19.98 kB / 0.5608 GB, free: 2.445 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004546/0.4785, allocations: 147.8 kB / 0.561 GB, free: 2.301 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.847e-05/0.4785, allocations: 27.86 kB / 0.561 GB, free: 2.273 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003266/0.4788, allocations: 67.52 kB / 0.5611 GB, free: 2.207 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.271e-05/0.4789, allocations: 32 kB / 0.5611 GB, free: 2.176 MB / 398.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 52
 * 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 (71):
 * Single equations (assignments): 71
 * 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.0001919/0.4791, allocations: 189.6 kB / 0.5613 GB, free: 1.98 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/0.4792, allocations: 31.81 kB / 0.5613 GB, free: 1.949 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.446e-05/0.4793, allocations: 33.78 kB / 0.5614 GB, free: 1.91 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.932e-06/0.4793, allocations: 7.938 kB / 0.5614 GB, free: 1.902 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.4793, allocations: 0 / 0.5614 GB, free: 1.902 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.4793, allocations: 4 kB / 0.5614 GB, free: 1.898 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001333/0.4807, allocations: 0.627 MB / 0.562 GB, free: 1.215 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.4807, allocations: 4 kB / 0.562 GB, free: 1.211 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004459/0.4811, allocations: 87.94 kB / 0.5621 GB, free: 1.125 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.4811, allocations: 4 kB / 0.5621 GB, free: 1.121 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.712e-05/0.4811, allocations: 8 kB / 0.5621 GB, free: 1.113 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.137e-05/0.4812, allocations: 11.88 kB / 0.5621 GB, free: 1.102 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.4812, allocations: 0 / 0.5621 GB, free: 1.102 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009358/0.4821, allocations: 0.834 MB / 0.5629 GB, free: 240 kB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 6.256e-05/0.4822, allocations: 43.72 kB / 0.5629 GB, free: 196 kB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.929e-05/0.4822, allocations: 8 kB / 0.563 GB, free: 188 kB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003374/0.4825, allocations: 15.94 kB / 0.563 GB, free: 172 kB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.54e-05/0.4826, allocations: 23.95 kB / 0.563 GB, free: 148 kB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.581e-05/0.4826, allocations: 8 kB / 0.563 GB, free: 140 kB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.0002082/0.4829, allocations: 183.1 kB / 0.5632 GB, free: 15.96 MB / 414.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.4829, allocations: 4 kB / 0.5632 GB, free: 15.96 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0007735/0.4836, allocations: 103.8 kB / 0.5633 GB, free: 15.86 MB / 414.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 9
 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w)
 * 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 (26):
 * Single equations (assignments): 26
 * 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.0001555/0.4838, allocations: 107.1 kB / 0.5634 GB, free: 15.74 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.0006302/0.4844, allocations: 286.1 kB / 0.5636 GB, free: 15.46 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.4844, allocations: 0 / 0.5636 GB, free: 15.46 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001859/0.4846, allocations: 92.83 kB / 0.5637 GB, free: 15.38 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00101/0.4856, allocations: 79.66 kB / 0.5638 GB, free: 15.3 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002448/0.4881, allocations: 1.546 MB / 0.5653 GB, free: 13.7 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00048/0.4885, allocations: 0.799 MB / 0.5661 GB, free: 12.87 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0001515/0.4887, allocations: 43.25 kB / 0.5661 GB, free: 12.83 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 7.211e-05/0.4888, allocations: 31.44 kB / 0.5662 GB, free: 12.8 MB / 414.1 MB
Notification: Performance of SimCode: time 7.62e-07/0.4888, allocations: 0 / 0.5662 GB, free: 12.8 MB / 414.1 MB
Notification: Performance of Templates: time 0.008443/0.4972, allocations: 3.29 MB / 0.5694 GB, free: 9.527 MB / 414.1 MB
"
[Timeout remaining time 659]
make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile [Timeout 660]
(rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.609103684313595]