Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.001832/0.001832, 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.002111/0.002111, 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.487/1.487, allocations: 225.6 MB / 253.3 MB, free: 13.02 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.2427/0.2427, allocations: 44.92 MB / 353.5 MB, free: 11.89 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.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1")
translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 71.89 kB / 497.7 MB, free: 1.004 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4427/0.4447, allocations: 64.28 MB / 0.5488 GB, free: 13.13 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.005616/0.4503, allocations: 2.277 MB / 0.551 GB, free: 11.36 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002138/0.4525, allocations: 0.7374 MB / 0.5517 GB, free: 10.76 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.000207/0.4527, allocations: 11.78 kB / 0.5518 GB, free: 10.75 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002753/0.453, allocations: 33.03 kB / 0.5518 GB, free: 10.73 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002492/0.4532, allocations: 75.8 kB / 0.5519 GB, free: 10.66 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0007067/0.4539, allocations: 132.2 kB / 0.552 GB, free: 10.56 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.00063/0.4545, allocations: 341.5 kB / 0.5523 GB, free: 10.36 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.000248/0.4548, allocations: 59.53 kB / 0.5524 GB, free: 10.31 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003541/0.4551, allocations: 144.8 kB / 0.5525 GB, free: 10.23 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003913/0.4555, allocations: 162.4 kB / 0.5527 GB, free: 10.12 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 7.961e-05/0.4556, allocations: 26.75 kB / 0.5527 GB, free: 10.12 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002652/0.4559, allocations: 80.72 kB / 0.5528 GB, free: 10.09 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.456, allocations: 65.06 kB / 0.5528 GB, free: 10.04 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002378/0.4563, allocations: 129.1 kB / 0.5529 GB, free: 9.945 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0007408/0.457, allocations: 344.9 kB / 0.5533 GB, free: 9.703 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.85e-06/0.457, allocations: 5.156 kB / 0.5533 GB, free: 9.699 MB / 398.1 MB
Notification: Performance of FrontEnd: time 2.134e-06/0.457, allocations: 0 / 0.5533 GB, free: 9.699 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 8.525e-06/0.457, allocations: 0 / 0.5533 GB, free: 9.699 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: 54
 * Number of variables: 54
Notification: Performance of Generate backend data structure: time 0.001536/0.4586, allocations: 498.2 kB / 0.5538 GB, free: 9.277 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.4586, allocations: 9.859 kB / 0.5538 GB, free: 9.277 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.4587, allocations: 33.31 kB / 0.5538 GB, free: 9.258 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005841/0.4593, allocations: 198.3 kB / 0.554 GB, free: 9.062 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.958e-05/0.4594, allocations: 17.97 kB / 0.554 GB, free: 9.055 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/0.4595, allocations: 23.59 kB / 0.554 GB, free: 9.047 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001107/0.4606, allocations: 269.5 kB / 0.5543 GB, free: 8.879 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.672e-05/0.4606, allocations: 1.25 kB / 0.5543 GB, free: 8.879 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.519e-05/0.4607, allocations: 9.031 kB / 0.5543 GB, free: 8.871 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/0.4607, allocations: 5.5 kB / 0.5543 GB, free: 8.871 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009784/0.4617, allocations: 233.4 kB / 0.5545 GB, free: 8.77 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002317/0.464, allocations: 0.688 MB / 0.5552 GB, free: 8.211 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0009891/0.465, allocations: 230.7 kB / 0.5554 GB, free: 8.09 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0004774/0.4654, allocations: 122.2 kB / 0.5555 GB, free: 8.031 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.298e-05/0.4655, allocations: 14.55 kB / 0.5555 GB, free: 8.02 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.888e-05/0.4655, allocations: 31.94 kB / 0.5556 GB, free: 7.98 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=25): time 2.635e-06/0.4655, allocations: 0 / 0.5556 GB, free: 7.98 MB / 398.1 MB
Notification: Performance of matching and sorting (n=33): time 0.005775/0.4713, allocations: 1.241 MB / 0.5568 GB, free: 7.055 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/0.4714, allocations: 51.41 kB / 0.5568 GB, free: 6.992 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003902/0.4718, allocations: 199.2 kB / 0.557 GB, free: 6.785 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 6.781e-05/0.4718, allocations: 33.7 kB / 0.5571 GB, free: 6.746 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.472, allocations: 136.8 kB / 0.5572 GB, free: 6.609 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.4721, allocations: 119 kB / 0.5573 GB, free: 6.492 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002263/0.4724, allocations: 69.64 kB / 0.5574 GB, free: 6.418 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002501/0.4726, allocations: 330.8 kB / 0.5577 GB, free: 6.086 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004752/0.4731, allocations: 127.9 kB / 0.5578 GB, free: 5.961 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005109/0.4736, allocations: 168.5 kB / 0.558 GB, free: 5.785 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0009677/0.4746, allocations: 263 kB / 0.5582 GB, free: 5.516 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.4746, allocations: 4 kB / 0.5582 GB, free: 5.512 MB / 398.1 MB
Notification: Performance of matching and sorting (n=42) (initialization): time 0.001542/0.4761, allocations: 425.9 kB / 0.5586 GB, free: 5.086 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.4761, allocations: 4 kB / 0.5586 GB, free: 5.082 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.4762, allocations: 4 kB / 0.5586 GB, free: 5.078 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0008943/0.4771, allocations: 244.7 kB / 0.5589 GB, free: 4.836 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004245/0.4775, allocations: 51.91 kB / 0.5589 GB, free: 4.785 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/0.4789, allocations: 0.7515 MB / 0.5596 GB, free: 4.008 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004874/0.4794, allocations: 43.95 kB / 0.5597 GB, free: 3.965 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.621e-05/0.4794, allocations: 8 kB / 0.5597 GB, free: 3.957 MB / 398.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 4
 * Number of states: 0 ()
 * Number of discrete variables: 8 (bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (30):
 * Single equations (assignments): 29
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(1,12)}
Notification: Performance of prepare postOptimizeDAE: time 0.0003105/0.4797, allocations: 146.3 kB / 0.5598 GB, free: 3.805 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.4799, allocations: 27.86 kB / 0.5599 GB, free: 3.777 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001589/0.48, allocations: 46.52 kB / 0.5599 GB, free: 3.73 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.48, allocations: 4 kB / 0.5599 GB, free: 3.727 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.48, allocations: 0 / 0.5599 GB, free: 3.727 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.48, allocations: 0 / 0.5599 GB, free: 3.727 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002977/0.483, allocations: 0.9202 MB / 0.5608 GB, free: 2.746 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.483, allocations: 0 / 0.5608 GB, free: 2.746 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004255/0.4835, allocations: 55.91 kB / 0.5609 GB, free: 2.691 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0007664/0.4842, allocations: 212.7 kB / 0.5611 GB, free: 2.48 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.382e-05/0.4843, allocations: 15.98 kB / 0.5611 GB, free: 2.465 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001178/0.4855, allocations: 0.7046 MB / 0.5618 GB, free: 1.734 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-05/0.4855, allocations: 8.016 kB / 0.5618 GB, free: 1.727 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00209/0.4876, allocations: 0.6303 MB / 0.5624 GB, free: 1.074 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002739/0.4878, allocations: 55.75 kB / 0.5624 GB, free: 1.02 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.123e-05/0.4879, allocations: 11.94 kB / 0.5625 GB, free: 1.008 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004624/0.4884, allocations: 35.95 kB / 0.5625 GB, free: 0.9727 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002054/0.4886, allocations: 43.91 kB / 0.5625 GB, free: 0.9297 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.705e-05/0.4886, allocations: 12 kB / 0.5625 GB, free: 0.918 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.0002465/0.4889, allocations: 143.2 kB / 0.5627 GB, free: 0.7773 MB / 398.1 MB
Notification: Performance of sort global known variables: time 1.8e-07/0.4889, allocations: 4.062 kB / 0.5627 GB, free: 0.7734 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0007158/0.4896, allocations: 79.98 kB / 0.5628 GB, free: 0.6953 MB / 398.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 2
 * Number of states: 2 (inertia3.phi,inertia3.w)
 * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode)
 * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (24):
 * Single equations (assignments): 23
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(1,9)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.0003333/0.4899, allocations: 123.1 kB / 0.5629 GB, free: 0.5664 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.001337/0.4913, allocations: 304.1 kB / 0.5632 GB, free: 276 kB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.4913, allocations: 0 / 0.5632 GB, free: 276 kB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.000666/0.4919, allocations: 156 kB / 0.5633 GB, free: 120 kB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000706/0.4926, allocations: 39.22 kB / 0.5634 GB, free: 84 kB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003553/0.4962, allocations: 0.7496 MB / 0.5641 GB, free: 15.3 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000597/0.4968, allocations: 0.7525 MB / 0.5648 GB, free: 14.52 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0001707/0.497, allocations: 22.3 kB / 0.5648 GB, free: 14.5 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.4971, allocations: 23.42 kB / 0.5649 GB, free: 14.48 MB / 414.1 MB
Notification: Performance of SimCode: time 5.61e-07/0.4971, allocations: 0 / 0.5649 GB, free: 14.48 MB / 414.1 MB
Notification: Performance of Templates: time 0.01992/0.517, allocations: 5.417 MB / 0.5702 GB, free: 9.074 MB / 414.1 MB
"
[Timeout remaining time 659]
make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile [Timeout 660]
(rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.639093369245529]