Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001808/0.001808, allocations: 109 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.002722/0.002722, allocations: 213.6 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.502/1.502, allocations: 230.3 MB / 258 MB, free: 8.195 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.2353/0.2353, allocations: 46.93 MB / 361.4 MB, free: 4.375 MB / 286.1 MB
"
[Timeout remaining time 180]
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.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.1.0-beta.om_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.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2") [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.002546/0.002546, allocations: 91.84 kB / 0.4972 GB, free: 7.484 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3721/0.3746, allocations: 66.04 MB / 0.5617 GB, free: 4.516 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004845/0.3795, allocations: 2.863 MB / 0.5644 GB, free: 1.641 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001616/0.3811, allocations: 0.7789 MB / 0.5652 GB, free: 0.8555 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001824/0.3813, allocations: 11.94 kB / 0.5652 GB, free: 0.8438 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002466/0.3815, allocations: 63.31 kB / 0.5653 GB, free: 0.7812 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002937/0.3818, allocations: 134.8 kB / 0.5654 GB, free: 0.6484 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004153/0.3822, allocations: 107.9 kB / 0.5655 GB, free: 0.543 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005677/0.3828, allocations: 434 kB / 0.5659 GB, free: 120 kB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.000293/0.3831, allocations: 114 kB / 0.566 GB, free: 16 MB / 414.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003431/0.3834, allocations: 179.4 kB / 0.5662 GB, free: 15.82 MB / 414.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002723/0.3837, allocations: 175.2 kB / 0.5664 GB, free: 15.65 MB / 414.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.596e-05/0.3838, allocations: 36 kB / 0.5664 GB, free: 15.61 MB / 414.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.3839, allocations: 36 kB / 0.5664 GB, free: 15.58 MB / 414.1 MB
Notification: Performance of NFScalarize.scalarize: time 8.024e-05/0.384, allocations: 79.7 kB / 0.5665 GB, free: 15.5 MB / 414.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002156/0.3842, allocations: 195.1 kB / 0.5667 GB, free: 15.31 MB / 414.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005313/0.3847, allocations: 448.6 kB / 0.5671 GB, free: 14.88 MB / 414.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3847, allocations: 0 / 0.5671 GB, free: 14.88 MB / 414.1 MB
Notification: Performance of FrontEnd: time 1.152e-06/0.3847, allocations: 0 / 0.5671 GB, free: 14.88 MB / 414.1 MB
Notification: Performance of Transformations before backend: time 8.196e-06/0.3847, allocations: 0 / 0.5671 GB, free: 14.88 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.0011/0.3858, allocations: 0.5911 MB / 0.5677 GB, free: 14.25 MB / 414.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.3859, allocations: 8.031 kB / 0.5677 GB, free: 14.25 MB / 414.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003214/0.3862, allocations: 60.67 kB / 0.5678 GB, free: 14.19 MB / 414.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004371/0.3866, allocations: 217.9 kB / 0.568 GB, free: 13.95 MB / 414.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.237e-05/0.3867, allocations: 29.38 kB / 0.568 GB, free: 13.92 MB / 414.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 7.587e-05/0.3867, allocations: 48.31 kB / 0.5681 GB, free: 13.88 MB / 414.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007163/0.3875, allocations: 394.5 kB / 0.5684 GB, free: 13.45 MB / 414.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 3.387e-05/0.3875, allocations: 15.89 kB / 0.5684 GB, free: 13.44 MB / 414.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.866e-05/0.3875, allocations: 16 kB / 0.5685 GB, free: 13.42 MB / 414.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/0.3875, allocations: 16 kB / 0.5685 GB, free: 13.41 MB / 414.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004636/0.388, allocations: 215.7 kB / 0.5687 GB, free: 13.2 MB / 414.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002503/0.3905, allocations: 1.668 MB / 0.5703 GB, free: 11.43 MB / 414.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004636/0.391, allocations: 258.3 kB / 0.5706 GB, free: 11.11 MB / 414.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001646/0.3911, allocations: 94.02 kB / 0.5706 GB, free: 11 MB / 414.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.605e-05/0.3912, allocations: 4 kB / 0.5707 GB, free: 10.99 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.09e-05/0.3912, allocations: 46.5 kB / 0.5707 GB, free: 10.94 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=26): time 1.332e-06/0.3912, allocations: 3.938 kB / 0.5707 GB, free: 10.93 MB / 414.1 MB
Notification: Performance of matching and sorting (n=26): time 0.0006827/0.3919, allocations: 265.1 kB / 0.571 GB, free: 10.67 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001334/0.392, allocations: 218 kB / 0.5712 GB, free: 10.41 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00028/0.3923, allocations: 276.5 kB / 0.5714 GB, free: 10.13 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.208e-05/0.3923, allocations: 25.7 kB / 0.5714 GB, free: 10.1 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001802/0.3925, allocations: 248.1 kB / 0.5717 GB, free: 9.855 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.3926, allocations: 119 kB / 0.5718 GB, free: 9.738 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001279/0.3927, allocations: 102.3 kB / 0.5719 GB, free: 9.633 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001937/0.3929, allocations: 346.7 kB / 0.5722 GB, free: 9.285 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002147/0.3931, allocations: 105.2 kB / 0.5723 GB, free: 9.18 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005022/0.3936, allocations: 428.8 kB / 0.5727 GB, free: 8.605 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0008039/0.3944, allocations: 0.5663 MB / 0.5733 GB, free: 7.879 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.3945, allocations: 7.938 kB / 0.5733 GB, free: 7.871 MB / 414.1 MB
Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009257/0.3954, allocations: 0.5291 MB / 0.5738 GB, free: 7.336 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.3954, allocations: 8 kB / 0.5738 GB, free: 7.328 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.808e-05/0.3954, allocations: 12 kB / 0.5738 GB, free: 7.316 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 3.433e-05/0.3955, allocations: 16 kB / 0.5738 GB, free: 7.301 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004489/0.3959, allocations: 147.7 kB / 0.574 GB, free: 7.156 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.709e-05/0.3959, allocations: 23.88 kB / 0.574 GB, free: 7.133 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003067/0.3962, allocations: 71.98 kB / 0.5741 GB, free: 7.062 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.627e-05/0.3963, allocations: 36 kB / 0.5741 GB, free: 7.027 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.0001952/0.3965, allocations: 177.5 kB / 0.5743 GB, free: 6.844 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001644/0.3966, allocations: 35.81 kB / 0.5743 GB, free: 6.809 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.5e-05/0.3967, allocations: 33.83 kB / 0.5744 GB, free: 6.773 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.3967, allocations: 7.984 kB / 0.5744 GB, free: 6.766 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.3967, allocations: 0.5 kB / 0.5744 GB, free: 6.766 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.3967, allocations: 4 kB / 0.5744 GB, free: 6.762 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001338/0.3981, allocations: 0.6309 MB / 0.575 GB, free: 6.074 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.3981, allocations: 4 kB / 0.575 GB, free: 6.07 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000464/0.3986, allocations: 87.94 kB / 0.5751 GB, free: 5.984 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 6.663e-06/0.3986, allocations: 7.938 kB / 0.5751 GB, free: 5.977 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.47e-05/0.3986, allocations: 8 kB / 0.5751 GB, free: 5.969 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.362e-06/0.3986, allocations: 7.938 kB / 0.5751 GB, free: 5.961 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.3986, allocations: 64 / 0.5751 GB, free: 5.961 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008743/0.3995, allocations: 0.8385 MB / 0.5759 GB, free: 5.09 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 5.339e-05/0.3995, allocations: 27.75 kB / 0.5759 GB, free: 5.062 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.109e-05/0.3996, allocations: 19.98 kB / 0.576 GB, free: 5.043 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003338/0.3999, allocations: 7.938 kB / 0.576 GB, free: 5.035 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.069e-05/0.4, allocations: 19.97 kB / 0.576 GB, free: 5.016 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.851e-05/0.4, allocations: 19.98 kB / 0.576 GB, free: 4.996 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.0001942/0.4002, allocations: 187.1 kB / 0.5762 GB, free: 4.812 MB / 414.1 MB
Notification: Performance of sort global known variables: time 8.1e-08/0.4002, allocations: 0 / 0.5762 GB, free: 4.812 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.000716/0.4009, allocations: 103.8 kB / 0.5763 GB, free: 4.711 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.0001592/0.4011, allocations: 99.19 kB / 0.5764 GB, free: 4.605 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.0005551/0.4016, allocations: 286.2 kB / 0.5766 GB, free: 4.328 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4016, allocations: 320 / 0.5766 GB, free: 4.328 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001801/0.4018, allocations: 87.78 kB / 0.5767 GB, free: 4.242 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.4028, allocations: 84.89 kB / 0.5768 GB, free: 4.164 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002393/0.4052, allocations: 1.566 MB / 0.5783 GB, free: 2.543 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00049/0.4057, allocations: 0.7987 MB / 0.5791 GB, free: 1.719 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0001531/0.4059, allocations: 47.25 kB / 0.5792 GB, free: 1.672 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.087e-05/0.4059, allocations: 27.44 kB / 0.5792 GB, free: 1.645 MB / 414.1 MB
Notification: Performance of SimCode: time 6.81e-07/0.4059, allocations: 0 / 0.5792 GB, free: 1.645 MB / 414.1 MB
Notification: Performance of Templates: time 0.007886/0.4138, allocations: 3.291 MB / 0.5824 GB, free: 14.37 MB / 430.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.47001943923533]