Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001936/0.001936, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002602/0.002602, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 230.3 MB / 258 MB, free: 8.188 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.28/0.28, allocations: 46.94 MB / 361.4 MB, free: 4.371 MB / 286.1 MB
"
[Timeout remaining time 179]
Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo)
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") [Timeout 660]
"Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.00268/0.00268, allocations: 95.77 kB / 0.4972 GB, free: 7.5 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3735/0.3762, allocations: 66.03 MB / 0.5616 GB, free: 4.531 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004353/0.3806, allocations: 2.392 MB / 0.564 GB, free: 2.129 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001782/0.3823, allocations: 0.919 MB / 0.5649 GB, free: 1.203 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.3825, allocations: 7.938 kB / 0.5649 GB, free: 1.195 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003294/0.3828, allocations: 47.58 kB / 0.5649 GB, free: 1.148 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002217/0.383, allocations: 87.33 kB / 0.565 GB, free: 1.062 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004038/0.3834, allocations: 147.6 kB / 0.5651 GB, free: 0.918 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004387/0.3839, allocations: 351.3 kB / 0.5655 GB, free: 0.5742 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.000214/0.3841, allocations: 61.12 kB / 0.5655 GB, free: 0.5078 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003124/0.3844, allocations: 163.5 kB / 0.5657 GB, free: 356 kB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.000289/0.3847, allocations: 159.4 kB / 0.5658 GB, free: 196 kB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.359e-05/0.3847, allocations: 35.94 kB / 0.5659 GB, free: 160 kB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001926/0.3849, allocations: 87.97 kB / 0.566 GB, free: 72 kB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001606/0.3851, allocations: 75.86 kB / 0.566 GB, free: 15.99 MB / 414.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001749/0.3853, allocations: 135.3 kB / 0.5662 GB, free: 15.86 MB / 414.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005531/0.3858, allocations: 385.1 kB / 0.5665 GB, free: 15.49 MB / 414.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3858, allocations: 0 / 0.5665 GB, free: 15.49 MB / 414.1 MB
Notification: Performance of FrontEnd: time 2.445e-06/0.3858, allocations: 0 / 0.5665 GB, free: 15.49 MB / 414.1 MB
Notification: Performance of Transformations before backend: time 1.278e-05/0.3858, allocations: 0 / 0.5665 GB, free: 15.49 MB / 414.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 56
 * Number of variables: 56
Notification: Performance of Generate backend data structure: time 0.001092/0.3869, allocations: 0.5245 MB / 0.567 GB, free: 14.94 MB / 414.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.387, allocations: 12.03 kB / 0.5671 GB, free: 14.93 MB / 414.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002114/0.3872, allocations: 32.78 kB / 0.5671 GB, free: 14.89 MB / 414.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003866/0.3876, allocations: 194.8 kB / 0.5673 GB, free: 14.68 MB / 414.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.63e-05/0.3876, allocations: 24.81 kB / 0.5673 GB, free: 14.66 MB / 414.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.831e-05/0.3877, allocations: 24.38 kB / 0.5673 GB, free: 14.63 MB / 414.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005872/0.3883, allocations: 272.3 kB / 0.5676 GB, free: 14.36 MB / 414.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/0.3883, allocations: 3.953 kB / 0.5676 GB, free: 14.36 MB / 414.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.246e-05/0.3883, allocations: 11.94 kB / 0.5676 GB, free: 14.34 MB / 414.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.262e-05/0.3883, allocations: 7.984 kB / 0.5676 GB, free: 14.34 MB / 414.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005479/0.3889, allocations: 233.9 kB / 0.5678 GB, free: 14.11 MB / 414.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.3904, allocations: 0.6966 MB / 0.5685 GB, free: 13.37 MB / 414.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0006442/0.391, allocations: 222.5 kB / 0.5687 GB, free: 13.14 MB / 414.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002911/0.3913, allocations: 126.1 kB / 0.5688 GB, free: 13.02 MB / 414.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.841e-05/0.3913, allocations: 4 kB / 0.5688 GB, free: 13.01 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.491e-05/0.3914, allocations: 46.44 kB / 0.5689 GB, free: 12.96 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=26): time 1.603e-06/0.3914, allocations: 0 / 0.5689 GB, free: 12.96 MB / 414.1 MB
Notification: Performance of matching and sorting (n=34): time 0.003439/0.3948, allocations: 1.185 MB / 0.57 GB, free: 11.71 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/0.3949, allocations: 59.41 kB / 0.5701 GB, free: 11.64 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002536/0.3951, allocations: 203.9 kB / 0.5703 GB, free: 11.43 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.499e-05/0.3952, allocations: 37.7 kB / 0.5703 GB, free: 11.39 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.3953, allocations: 140.8 kB / 0.5705 GB, free: 11.24 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.3954, allocations: 126.9 kB / 0.5706 GB, free: 11.12 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001292/0.3955, allocations: 61.69 kB / 0.5706 GB, free: 11.05 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001746/0.3957, allocations: 346.7 kB / 0.571 GB, free: 10.7 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.00026/0.396, allocations: 116 kB / 0.5711 GB, free: 10.59 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003025/0.3963, allocations: 163.4 kB / 0.5712 GB, free: 10.42 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004547/0.3967, allocations: 232 kB / 0.5715 GB, free: 10.18 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.3967, allocations: 0 / 0.5715 GB, free: 10.18 MB / 414.1 MB
Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009587/0.3977, allocations: 430 kB / 0.5719 GB, free: 9.75 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.3977, allocations: 4 kB / 0.5719 GB, free: 9.746 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.3977, allocations: 3.938 kB / 0.5719 GB, free: 9.742 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0005013/0.3982, allocations: 196.8 kB / 0.5721 GB, free: 9.547 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002507/0.3985, allocations: 55.89 kB / 0.5721 GB, free: 9.492 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000831/0.3993, allocations: 0.7242 MB / 0.5728 GB, free: 8.742 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002807/0.3996, allocations: 39.98 kB / 0.5729 GB, free: 8.703 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.124e-05/0.3996, allocations: 8.062 kB / 0.5729 GB, free: 8.695 MB / 414.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,13)}
Notification: Performance of prepare postOptimizeDAE: time 0.0001941/0.3998, allocations: 159 kB / 0.573 GB, free: 8.531 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.729e-05/0.3999, allocations: 19.86 kB / 0.573 GB, free: 8.512 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/0.4, allocations: 38.66 kB / 0.5731 GB, free: 8.477 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.4, allocations: 0 / 0.5731 GB, free: 8.477 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 9.869e-06/0.4, allocations: 7.984 kB / 0.5731 GB, free: 8.469 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.4, allocations: 0 / 0.5731 GB, free: 8.469 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001783/0.4018, allocations: 0.9084 MB / 0.574 GB, free: 7.5 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.125e-06/0.4018, allocations: 7.938 kB / 0.574 GB, free: 7.492 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002367/0.402, allocations: 51.91 kB / 0.574 GB, free: 7.441 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0004213/0.4024, allocations: 176.6 kB / 0.5742 GB, free: 7.266 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.237e-05/0.4025, allocations: 15.98 kB / 0.5742 GB, free: 7.25 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007223/0.4032, allocations: 0.6851 MB / 0.5749 GB, free: 6.539 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.4032, allocations: 0 / 0.5749 GB, free: 6.539 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/0.4044, allocations: 0.6072 MB / 0.5755 GB, free: 5.91 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001362/0.4045, allocations: 59.73 kB / 0.5755 GB, free: 5.852 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.834e-05/0.4046, allocations: 8 kB / 0.5755 GB, free: 5.844 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000273/0.4049, allocations: 31.95 kB / 0.5756 GB, free: 5.812 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.405, allocations: 55.91 kB / 0.5756 GB, free: 5.758 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.173e-05/0.405, allocations: 15.98 kB / 0.5756 GB, free: 5.742 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.0001631/0.4052, allocations: 152.2 kB / 0.5758 GB, free: 5.594 MB / 414.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.4052, allocations: 0 / 0.5758 GB, free: 5.594 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0003658/0.4056, allocations: 72 kB / 0.5759 GB, free: 5.523 MB / 414.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,10)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.001365/0.4069, allocations: 368.9 kB / 0.5762 GB, free: 5.273 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.0008011/0.4077, allocations: 295.6 kB / 0.5765 GB, free: 4.984 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4077, allocations: 0 / 0.5765 GB, free: 4.984 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003485/0.4081, allocations: 143.9 kB / 0.5766 GB, free: 4.844 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004401/0.4085, allocations: 50.3 kB / 0.5767 GB, free: 4.797 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002112/0.4106, allocations: 0.7736 MB / 0.5774 GB, free: 3.996 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004141/0.411, allocations: 0.7603 MB / 0.5782 GB, free: 3.207 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0001077/0.4112, allocations: 26.28 kB / 0.5782 GB, free: 3.176 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 7.582e-05/0.4112, allocations: 27.44 kB / 0.5782 GB, free: 3.148 MB / 414.1 MB
Notification: Performance of SimCode: time 8.62e-07/0.4112, allocations: 0 / 0.5782 GB, free: 3.148 MB / 414.1 MB
Notification: Performance of Templates: time 0.01123/0.4225, allocations: 5.476 MB / 0.5836 GB, free: 13.69 MB / 430.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.46853828523308]