Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001606/0.001606, 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.001673/0.001673, allocations: 211.8 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.44/1.44, allocations: 230.3 MB / 258 MB, free: 8.227 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2488/0.2488, allocations: 46.9 MB / 361.3 MB, free: 4.457 MB / 286.1 MB
"
[Timeout remaining time 179]
Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_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_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.003882/0.003882, allocations: 79.86 kB / 0.497 GB, free: 7.617 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.349/0.3529, allocations: 66.04 MB / 0.5615 GB, free: 4.633 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.005544/0.3585, allocations: 2.379 MB / 0.5639 GB, free: 2.246 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002147/0.3606, allocations: 0.9229 MB / 0.5648 GB, free: 1.316 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.000319/0.3609, allocations: 7.938 kB / 0.5648 GB, free: 1.309 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003914/0.3613, allocations: 51.56 kB / 0.5648 GB, free: 1.258 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003899/0.3617, allocations: 75.34 kB / 0.5649 GB, free: 1.184 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0006594/0.3624, allocations: 147.6 kB / 0.565 GB, free: 1.039 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0007486/0.3631, allocations: 355.3 kB / 0.5654 GB, free: 0.6914 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002567/0.3634, allocations: 61.12 kB / 0.5654 GB, free: 0.625 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004706/0.3638, allocations: 163.5 kB / 0.5656 GB, free: 476 kB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0004088/0.3642, allocations: 167.4 kB / 0.5657 GB, free: 308 kB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 7.331e-05/0.3643, allocations: 28 kB / 0.5658 GB, free: 280 kB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002462/0.3646, allocations: 83.92 kB / 0.5658 GB, free: 196 kB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001463/0.3647, allocations: 75.8 kB / 0.5659 GB, free: 120 kB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002085/0.3649, allocations: 139.5 kB / 0.566 GB, free: 15.98 MB / 414.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0006205/0.3655, allocations: 381 kB / 0.5664 GB, free: 15.61 MB / 414.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3655, allocations: 0 / 0.5664 GB, free: 15.61 MB / 414.1 MB
Notification: Performance of FrontEnd: time 1.894e-06/0.3655, allocations: 11.94 kB / 0.5664 GB, free: 15.6 MB / 414.1 MB
Notification: Performance of Transformations before backend: time 7.805e-06/0.3655, allocations: 0 / 0.5664 GB, free: 15.6 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.001098/0.3666, allocations: 0.5244 MB / 0.5669 GB, free: 15.05 MB / 414.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.3667, allocations: 8.031 kB / 0.5669 GB, free: 15.04 MB / 414.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002091/0.3669, allocations: 36.78 kB / 0.567 GB, free: 15 MB / 414.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003894/0.3673, allocations: 198.8 kB / 0.5672 GB, free: 14.79 MB / 414.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.902e-05/0.3673, allocations: 16.88 kB / 0.5672 GB, free: 14.77 MB / 414.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.881e-05/0.3674, allocations: 20.38 kB / 0.5672 GB, free: 14.75 MB / 414.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005696/0.368, allocations: 264.3 kB / 0.5675 GB, free: 14.48 MB / 414.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.995e-05/0.368, allocations: 11.94 kB / 0.5675 GB, free: 14.47 MB / 414.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.266e-05/0.368, allocations: 8 kB / 0.5675 GB, free: 14.46 MB / 414.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.368, allocations: 8 kB / 0.5675 GB, free: 14.46 MB / 414.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005555/0.3686, allocations: 245.8 kB / 0.5677 GB, free: 14.21 MB / 414.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001453/0.37, allocations: 0.6888 MB / 0.5684 GB, free: 13.48 MB / 414.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.000574/0.3706, allocations: 226.5 kB / 0.5686 GB, free: 13.25 MB / 414.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002723/0.3709, allocations: 122.3 kB / 0.5687 GB, free: 13.13 MB / 414.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/0.3709, allocations: 0 / 0.5687 GB, free: 13.13 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.023e-05/0.3709, allocations: 46.48 kB / 0.5688 GB, free: 13.08 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=26): time 1.162e-06/0.3709, allocations: 0 / 0.5688 GB, free: 13.08 MB / 414.1 MB
Notification: Performance of matching and sorting (n=34): time 0.003274/0.3742, allocations: 1.189 MB / 0.5699 GB, free: 11.83 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.235e-05/0.3743, allocations: 55.41 kB / 0.57 GB, free: 11.77 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002393/0.3745, allocations: 207.9 kB / 0.5702 GB, free: 11.55 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.812e-05/0.3746, allocations: 29.7 kB / 0.5702 GB, free: 11.51 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.3747, allocations: 148.9 kB / 0.5703 GB, free: 11.36 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001121/0.3748, allocations: 123 kB / 0.5705 GB, free: 11.24 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.3749, allocations: 69.69 kB / 0.5705 GB, free: 11.16 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001917/0.3751, allocations: 334.8 kB / 0.5709 GB, free: 10.83 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002753/0.3754, allocations: 123.9 kB / 0.571 GB, free: 10.71 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002973/0.3757, allocations: 155.3 kB / 0.5711 GB, free: 10.54 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004655/0.3761, allocations: 243.9 kB / 0.5714 GB, free: 10.29 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3761, allocations: 0 / 0.5714 GB, free: 10.29 MB / 414.1 MB
Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008942/0.377, allocations: 422 kB / 0.5718 GB, free: 9.871 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.3771, allocations: 10.25 kB / 0.5718 GB, free: 9.863 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.3771, allocations: 7.938 kB / 0.5718 GB, free: 9.855 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0004959/0.3776, allocations: 192.7 kB / 0.572 GB, free: 9.664 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000234/0.3778, allocations: 59.97 kB / 0.572 GB, free: 9.605 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008318/0.3786, allocations: 0.7281 MB / 0.5727 GB, free: 8.852 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002742/0.3789, allocations: 35.98 kB / 0.5728 GB, free: 8.816 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.051e-05/0.3789, allocations: 12 kB / 0.5728 GB, free: 8.805 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.0001808/0.3791, allocations: 151 kB / 0.5729 GB, free: 8.648 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.643e-05/0.3792, allocations: 27.8 kB / 0.5729 GB, free: 8.621 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.169e-05/0.3793, allocations: 38.64 kB / 0.573 GB, free: 8.586 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.3793, allocations: 8.062 kB / 0.573 GB, free: 8.578 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3793, allocations: 0 / 0.573 GB, free: 8.578 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.3793, allocations: 0 / 0.573 GB, free: 8.578 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001673/0.381, allocations: 0.9005 MB / 0.5739 GB, free: 7.617 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.381, allocations: 4.031 kB / 0.5739 GB, free: 7.613 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002287/0.3812, allocations: 47.91 kB / 0.5739 GB, free: 7.566 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0003802/0.3816, allocations: 172.7 kB / 0.5741 GB, free: 7.395 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.99e-05/0.3816, allocations: 11.98 kB / 0.5741 GB, free: 7.383 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007084/0.3823, allocations: 0.6929 MB / 0.5748 GB, free: 6.664 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3823, allocations: 0 / 0.5748 GB, free: 6.664 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001208/0.3835, allocations: 0.6111 MB / 0.5754 GB, free: 6.031 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/0.3836, allocations: 59.86 kB / 0.5754 GB, free: 5.973 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.892e-05/0.3837, allocations: 12 kB / 0.5754 GB, free: 5.961 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002724/0.384, allocations: 35.95 kB / 0.5755 GB, free: 5.926 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.3841, allocations: 47.89 kB / 0.5755 GB, free: 5.879 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.624e-05/0.3841, allocations: 12 kB / 0.5755 GB, free: 5.867 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.0001492/0.3843, allocations: 156.1 kB / 0.5757 GB, free: 5.715 MB / 414.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.3843, allocations: 3.938 kB / 0.5757 GB, free: 5.711 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0003522/0.3846, allocations: 68 kB / 0.5757 GB, free: 5.645 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.00134/0.386, allocations: 360.9 kB / 0.5761 GB, free: 5.398 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.0007776/0.3867, allocations: 303.5 kB / 0.5764 GB, free: 5.102 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.3867, allocations: 0 / 0.5764 GB, free: 5.102 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003644/0.3871, allocations: 147.9 kB / 0.5765 GB, free: 4.957 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004278/0.3875, allocations: 46.73 kB / 0.5766 GB, free: 4.914 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/0.3896, allocations: 0.7738 MB / 0.5773 GB, free: 4.113 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004359/0.39, allocations: 0.7642 MB / 0.5781 GB, free: 3.32 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0001053/0.3901, allocations: 22.28 kB / 0.5781 GB, free: 3.293 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 7.005e-05/0.3902, allocations: 27.42 kB / 0.5781 GB, free: 3.266 MB / 414.1 MB
Notification: Performance of SimCode: time 3.9e-07/0.3902, allocations: 0 / 0.5781 GB, free: 3.266 MB / 414.1 MB
Notification: Performance of Templates: time 0.01101/0.4012, allocations: 5.466 MB / 0.5834 GB, free: 13.81 MB / 430.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile [Timeout 660]
(rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_trunk_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_trunk_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.3330976804718375]