Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.001763/0.001763, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.002333/0.002333, allocations: 213.3 kB / 24.54 MB, free: 4.016 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.528/1.528, allocations: 230.3 MB / 258 MB, free: 8.273 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.2292/0.2292, allocations: 46.89 MB / 361.3 MB, free: 4.449 MB / 286.1 MB
"
[Timeout remaining time 180]
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.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_trunk_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_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002271/0.002271, allocations: 83.84 kB / 0.497 GB, free: 7.594 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.367/0.3693, allocations: 66.03 MB / 0.5615 GB, free: 4.637 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004238/0.3736, allocations: 2.871 MB / 0.5643 GB, free: 1.754 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001381/0.3749, allocations: 0.7829 MB / 0.5651 GB, free: 0.9648 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001564/0.3751, allocations: 15.94 kB / 0.5651 GB, free: 0.9492 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001857/0.3753, allocations: 51.39 kB / 0.5652 GB, free: 0.8984 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002226/0.3755, allocations: 126.9 kB / 0.5653 GB, free: 0.7734 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003442/0.3758, allocations: 123.7 kB / 0.5654 GB, free: 0.6523 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005166/0.3764, allocations: 434 kB / 0.5658 GB, free: 232 kB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002606/0.3766, allocations: 106.1 kB / 0.5659 GB, free: 116 kB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003208/0.3769, allocations: 179.5 kB / 0.5661 GB, free: 15.93 MB / 414.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.000254/0.3772, allocations: 183 kB / 0.5663 GB, free: 15.76 MB / 414.1 MB
Notification: Performance of NFPackage.collectConstants: time 6.854e-05/0.3773, allocations: 32 kB / 0.5663 GB, free: 15.73 MB / 414.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 9.977e-05/0.3774, allocations: 36 kB / 0.5663 GB, free: 15.69 MB / 414.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.886e-05/0.3774, allocations: 83.69 kB / 0.5664 GB, free: 15.61 MB / 414.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001903/0.3776, allocations: 191.1 kB / 0.5666 GB, free: 15.42 MB / 414.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005057/0.3781, allocations: 440.7 kB / 0.567 GB, free: 15 MB / 414.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.3781, allocations: 3.938 kB / 0.567 GB, free: 14.99 MB / 414.1 MB
Notification: Performance of FrontEnd: time 1.994e-06/0.3781, allocations: 4 kB / 0.567 GB, free: 14.99 MB / 414.1 MB
Notification: Performance of Transformations before backend: time 9.007e-06/0.3782, allocations: 0 / 0.567 GB, free: 14.99 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: 93
 * Number of variables: 93
Notification: Performance of Generate backend data structure: time 0.001105/0.3793, allocations: 0.5911 MB / 0.5676 GB, free: 14.37 MB / 414.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.3793, allocations: 8.031 kB / 0.5676 GB, free: 14.36 MB / 414.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002749/0.3796, allocations: 56.69 kB / 0.5677 GB, free: 14.3 MB / 414.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004006/0.38, allocations: 229.8 kB / 0.5679 GB, free: 14.05 MB / 414.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.306e-05/0.38, allocations: 29.38 kB / 0.5679 GB, free: 14.03 MB / 414.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 7.618e-05/0.3801, allocations: 40.33 kB / 0.5679 GB, free: 13.99 MB / 414.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006824/0.3808, allocations: 394.5 kB / 0.5683 GB, free: 13.57 MB / 414.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 3.027e-05/0.3808, allocations: 11.95 kB / 0.5683 GB, free: 13.55 MB / 414.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.488e-05/0.3808, allocations: 19.98 kB / 0.5683 GB, free: 13.54 MB / 414.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/0.3809, allocations: 15.98 kB / 0.5684 GB, free: 13.52 MB / 414.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004791/0.3813, allocations: 219.7 kB / 0.5686 GB, free: 13.3 MB / 414.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002415/0.3838, allocations: 1.664 MB / 0.5702 GB, free: 11.54 MB / 414.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004699/0.3842, allocations: 258.3 kB / 0.5704 GB, free: 11.22 MB / 414.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001837/0.3844, allocations: 98.06 kB / 0.5705 GB, free: 11.11 MB / 414.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.921e-05/0.3844, allocations: 4 kB / 0.5705 GB, free: 11.1 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.909e-05/0.3845, allocations: 42.5 kB / 0.5706 GB, free: 11.05 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=26): time 2.144e-06/0.3845, allocations: 0 / 0.5706 GB, free: 11.05 MB / 414.1 MB
Notification: Performance of matching and sorting (n=26): time 0.0007441/0.3852, allocations: 273.1 kB / 0.5708 GB, free: 10.78 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001478/0.3854, allocations: 217.5 kB / 0.571 GB, free: 10.52 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003209/0.3857, allocations: 276.5 kB / 0.5713 GB, free: 10.24 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.3857, allocations: 29.7 kB / 0.5713 GB, free: 10.21 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001765/0.3859, allocations: 244.3 kB / 0.5716 GB, free: 9.965 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 9.935e-05/0.386, allocations: 123.1 kB / 0.5717 GB, free: 9.844 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.3861, allocations: 102.3 kB / 0.5718 GB, free: 9.738 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001687/0.3863, allocations: 346.7 kB / 0.5721 GB, free: 9.391 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.3865, allocations: 97.27 kB / 0.5722 GB, free: 9.293 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005247/0.387, allocations: 428.8 kB / 0.5726 GB, free: 8.719 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0007326/0.3878, allocations: 0.574 MB / 0.5732 GB, free: 7.984 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.104e-06/0.3878, allocations: 4 kB / 0.5732 GB, free: 7.98 MB / 414.1 MB
Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008569/0.3886, allocations: 0.5212 MB / 0.5737 GB, free: 7.453 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/0.3887, allocations: 15.94 kB / 0.5737 GB, free: 7.438 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.698e-05/0.3887, allocations: 12 kB / 0.5737 GB, free: 7.426 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 3.432e-05/0.3887, allocations: 20.59 kB / 0.5737 GB, free: 7.406 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00045/0.3892, allocations: 151.7 kB / 0.5739 GB, free: 7.258 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.272e-05/0.3892, allocations: 19.94 kB / 0.5739 GB, free: 7.238 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004487/0.3896, allocations: 67.55 kB / 0.574 GB, free: 7.172 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.187e-05/0.3897, allocations: 32 kB / 0.574 GB, free: 7.141 MB / 414.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.0001867/0.3899, allocations: 178.8 kB / 0.5742 GB, free: 6.957 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001513/0.39, allocations: 31.81 kB / 0.5742 GB, free: 6.926 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.592e-05/0.3901, allocations: 41.83 kB / 0.5742 GB, free: 6.883 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.3901, allocations: 7.984 kB / 0.5742 GB, free: 6.875 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.3901, allocations: 0 / 0.5742 GB, free: 6.875 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.3901, allocations: 7.984 kB / 0.5743 GB, free: 6.867 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001245/0.3913, allocations: 0.6197 MB / 0.5749 GB, free: 6.191 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.3914, allocations: 4.125 kB / 0.5749 GB, free: 6.188 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004371/0.3918, allocations: 95.95 kB / 0.575 GB, free: 6.094 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 7.344e-06/0.3918, allocations: 4 kB / 0.575 GB, free: 6.09 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.825e-05/0.3918, allocations: 11.98 kB / 0.575 GB, free: 6.078 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.624e-06/0.3918, allocations: 7.938 kB / 0.575 GB, free: 6.07 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.3918, allocations: 3.938 kB / 0.575 GB, free: 6.066 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009063/0.3927, allocations: 0.8299 MB / 0.5758 GB, free: 5.203 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 9.047e-05/0.3928, allocations: 31.75 kB / 0.5758 GB, free: 5.172 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.256e-05/0.3929, allocations: 8 kB / 0.5758 GB, free: 5.164 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003223/0.3932, allocations: 23.92 kB / 0.5759 GB, free: 5.141 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.255e-05/0.3933, allocations: 23.91 kB / 0.5759 GB, free: 5.117 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.741e-05/0.3933, allocations: 8 kB / 0.5759 GB, free: 5.109 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.0001893/0.3935, allocations: 187.1 kB / 0.5761 GB, free: 4.926 MB / 414.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.3935, allocations: 0 / 0.5761 GB, free: 4.926 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0007089/0.3942, allocations: 95.89 kB / 0.5762 GB, free: 4.832 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.0001765/0.3944, allocations: 115.2 kB / 0.5763 GB, free: 4.711 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.0006135/0.395, allocations: 273.4 kB / 0.5765 GB, free: 4.445 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.395, allocations: 0 / 0.5765 GB, free: 4.445 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002421/0.3952, allocations: 89.33 kB / 0.5766 GB, free: 4.359 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/0.3967, allocations: 80.84 kB / 0.5767 GB, free: 4.285 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003219/0.4, allocations: 1.566 MB / 0.5782 GB, free: 2.664 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005399/0.4005, allocations: 0.8065 MB / 0.579 GB, free: 1.832 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0001992/0.4007, allocations: 43.27 kB / 0.579 GB, free: 1.789 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 8.245e-05/0.4008, allocations: 31.42 kB / 0.5791 GB, free: 1.758 MB / 414.1 MB
Notification: Performance of SimCode: time 9.52e-07/0.4008, allocations: 0 / 0.5791 GB, free: 1.758 MB / 414.1 MB
Notification: Performance of Templates: time 0.01085/0.4116, allocations: 3.295 MB / 0.5823 GB, free: 14.48 MB / 430.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile [Timeout 660]
(rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_trunk_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_trunk_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.306104652583599]