Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.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.001406/0.001406, 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.001508/0.001508, 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.515/1.515, allocations: 230.3 MB / 258 MB, free: 8.238 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.2364/0.2364, allocations: 46.9 MB / 361.3 MB, free: 4.445 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.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2")
translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.003567/0.003567, allocations: 75.88 kB / 0.4971 GB, free: 7.586 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4021/0.4057, allocations: 66.03 MB / 0.5615 GB, free: 4.625 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02197/0.4277, allocations: 18.25 MB / 0.5794 GB, free: 2.293 MB / 414.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01463/0.4423, allocations: 5.331 MB / 0.5846 GB, free: 12.95 MB / 430.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.006085/0.4484, allocations: 123.4 kB / 0.5847 GB, free: 12.82 MB / 430.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.007537/0.4559, allocations: 3.118 MB / 0.5877 GB, free: 9.695 MB / 430.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.009066/0.465, allocations: 2.623 MB / 0.5903 GB, free: 7.062 MB / 430.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.003207/0.4682, allocations: 1.018 MB / 0.5913 GB, free: 6.043 MB / 430.1 MB
Notification: Performance of NFFlatten.flatten: time 0.01417/0.4824, allocations: 7.679 MB / 0.5988 GB, free: 14.35 MB / 446.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.007478/0.4898, allocations: 3.281 MB / 0.602 GB, free: 11.02 MB / 446.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.005548/0.4954, allocations: 2.293 MB / 0.6042 GB, free: 8.723 MB / 446.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.006703/0.5021, allocations: 3.516 MB / 0.6077 GB, free: 5.195 MB / 446.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.002351/0.5044, allocations: 452 kB / 0.6081 GB, free: 4.754 MB / 446.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.004332/0.5088, allocations: 1.342 MB / 0.6094 GB, free: 3.41 MB / 446.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.006178/0.515, allocations: 2.867 MB / 0.6122 GB, free: 0.5352 MB / 446.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.007333/0.5223, allocations: 3.177 MB / 0.6153 GB, free: 13.33 MB / 462.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.01638/0.5387, allocations: 9.983 MB / 0.6251 GB, free: 3.312 MB / 462.1 MB
Notification: Performance of FrontEnd - DAE generated: time 1.045e-05/0.5387, allocations: 4 kB / 0.6251 GB, free: 3.309 MB / 462.1 MB
Notification: Performance of FrontEnd: time 1.613e-06/0.5387, allocations: 3.938 kB / 0.6251 GB, free: 3.305 MB / 462.1 MB
Notification: Performance of Transformations before backend: time 0.000436/0.5391, allocations: 0 / 0.6251 GB, free: 3.305 MB / 462.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 2169
 * Number of variables: 2169
Notification: Performance of Generate backend data structure: time 0.0257/0.5648, allocations: 7.313 MB / 0.6322 GB, free: 11.92 MB / 478.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.881e-05/0.5649, allocations: 8.031 kB / 0.6322 GB, free: 11.91 MB / 478.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01847/0.5833, allocations: 3.877 MB / 0.636 GB, free: 8.027 MB / 478.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.01331/0.5967, allocations: 3.932 MB / 0.6398 GB, free: 4.043 MB / 478.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004332/0.5971, allocations: 316.4 kB / 0.6401 GB, free: 3.73 MB / 478.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.002827/0.5999, allocations: 435.8 kB / 0.6406 GB, free: 3.305 MB / 478.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.03899/0.6389, allocations: 15.59 MB / 0.6558 GB, free: 2.98 MB / 494.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0003447/0.6392, allocations: 59.53 kB / 0.6558 GB, free: 2.922 MB / 494.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002119/0.6414, allocations: 195.8 kB / 0.656 GB, free: 2.73 MB / 494.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007469/0.6488, allocations: 3.388 MB / 0.6593 GB, free: 15.34 MB / 0.4981 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03605/0.6849, allocations: 14.82 MB / 0.6738 GB, free: 0.5039 MB / 0.4981 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09767/0.7825, allocations: 54.9 MB / 0.7274 GB, free: 8.395 MB / 0.5606 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.02085/0.8034, allocations: 6.961 MB / 0.7342 GB, free: 1.422 MB / 0.5606 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.3723/1.176, allocations: 4.476 MB / 0.7386 GB, free: 152.7 MB / 0.5606 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.001528/1.177, allocations: 0.6603 MB / 0.7392 GB, free: 152.6 MB / 0.5606 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.599e-05/1.177, allocations: 67.33 kB / 0.7393 GB, free: 152.5 MB / 0.5606 GB
Notification: Performance of pre-optimization done (n=367): time 7.223e-06/1.177, allocations: 0 / 0.7393 GB, free: 152.5 MB / 0.5606 GB
Notification: Performance of matching and sorting (n=419): time 0.1011/1.278, allocations: 39.94 MB / 0.7783 GB, free: 126.4 MB / 0.5606 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.025e-05/1.278, allocations: 116 kB / 0.7784 GB, free: 126.3 MB / 0.5606 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00507/1.284, allocations: 4.302 MB / 0.7826 GB, free: 122 MB / 0.5606 GB
Notification: Performance of collectPreVariables (initialization): time 0.001132/1.285, allocations: 81.7 kB / 0.7827 GB, free: 121.9 MB / 0.5606 GB
Notification: Performance of collectInitialEqns (initialization): time 0.00235/1.287, allocations: 3.931 MB / 0.7865 GB, free: 118.4 MB / 0.5606 GB
Notification: Performance of collectInitialBindings (initialization): time 0.002404/1.289, allocations: 1.569 MB / 0.7881 GB, free: 116.9 MB / 0.5606 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.002317/1.292, allocations: 1.58 MB / 0.7896 GB, free: 115.3 MB / 0.5606 GB
Notification: Performance of setup shared object (initialization): time 6.02e-05/1.292, allocations: 301.1 kB / 0.7899 GB, free: 115 MB / 0.5606 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.004736/1.297, allocations: 4.076 MB / 0.7939 GB, free: 110.9 MB / 0.5606 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.006431/1.303, allocations: 7.843 MB / 0.8015 GB, free: 101.3 MB / 0.5606 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0133/1.316, allocations: 12.88 MB / 0.8141 GB, free: 86.6 MB / 0.5606 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001172/1.316, allocations: 39.94 kB / 0.8142 GB, free: 86.56 MB / 0.5606 GB
Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02836/1.345, allocations: 14.72 MB / 0.8285 GB, free: 71.8 MB / 0.5606 GB
Notification: Performance of prepare postOptimizeDAE: time 7.971e-05/1.345, allocations: 60 kB / 0.8286 GB, free: 71.74 MB / 0.5606 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001197/1.345, allocations: 128 kB / 0.8287 GB, free: 71.61 MB / 0.5606 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.008138/1.353, allocations: 2.932 MB / 0.8316 GB, free: 68.67 MB / 0.5606 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006723/1.36, allocations: 1.805 MB / 0.8333 GB, free: 66.86 MB / 0.5606 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01832/1.378, allocations: 15.77 MB / 0.8487 GB, free: 50.87 MB / 0.5606 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006965/1.385, allocations: 0.4995 MB / 0.8492 GB, free: 50.37 MB / 0.5606 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001675/1.387, allocations: 431.1 kB / 0.8496 GB, free: 49.95 MB / 0.5606 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 583
 * Number of states: 0 ()
 * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1])
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (942):
 * Single equations (assignments): 934
 * Array equations: 6
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 2
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 2 systems
   {(6,32,69.4%), (1,12,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.005355/1.392, allocations: 2.865 MB / 0.8524 GB, free: 47.08 MB / 0.5606 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001024/1.393, allocations: 484.8 kB / 0.8529 GB, free: 46.6 MB / 0.5606 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01692/1.41, allocations: 10.89 MB / 0.8635 GB, free: 35.66 MB / 0.5606 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.95e-05/1.41, allocations: 67.92 kB / 0.8636 GB, free: 35.59 MB / 0.5606 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 2.561e-05/1.41, allocations: 8 kB / 0.8636 GB, free: 35.58 MB / 0.5606 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.772e-05/1.41, allocations: 15.94 kB / 0.8636 GB, free: 35.57 MB / 0.5606 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03893/1.449, allocations: 21.53 MB / 0.8846 GB, free: 13.86 MB / 0.5606 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.351e-05/1.449, allocations: 12 kB / 0.8847 GB, free: 13.84 MB / 0.5606 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003866/1.453, allocations: 0.6825 MB / 0.8853 GB, free: 13.16 MB / 0.5606 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.007979/1.461, allocations: 2.728 MB / 0.888 GB, free: 10.42 MB / 0.5606 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001291/1.462, allocations: 79.52 kB / 0.8881 GB, free: 10.35 MB / 0.5606 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01802/1.48, allocations: 14.35 MB / 0.9021 GB, free: 11.77 MB / 0.5762 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-05/1.48, allocations: 19.88 kB / 0.9021 GB, free: 11.75 MB / 0.5762 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03051/1.511, allocations: 15.56 MB / 0.9173 GB, free: 11.91 MB / 0.5919 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.001809/1.513, allocations: 444.8 kB / 0.9177 GB, free: 11.48 MB / 0.5919 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001954/1.515, allocations: 75.98 kB / 0.9178 GB, free: 11.4 MB / 0.5919 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003721/1.518, allocations: 315.4 kB / 0.9181 GB, free: 11.1 MB / 0.5919 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001137/1.52, allocations: 285.7 kB / 0.9184 GB, free: 10.82 MB / 0.5919 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003521/1.52, allocations: 116 kB / 0.9185 GB, free: 10.7 MB / 0.5919 GB
Notification: Performance of sorting global known variables: time 0.005926/1.526, allocations: 2.685 MB / 0.9211 GB, free: 8.016 MB / 0.5919 GB
Notification: Performance of sort global known variables: time 2.3e-07/1.526, allocations: 0 / 0.9211 GB, free: 8.016 MB / 0.5919 GB
Notification: Performance of remove unused functions: time 0.01048/1.536, allocations: 1.648 MB / 0.9227 GB, free: 6.367 MB / 0.5919 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 49
 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (334):
 * Single equations (assignments): 326
 * Array equations: 6
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 2
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 2 systems
   {(1,9,100.0%), (6,29,69.4%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.001373/1.538, allocations: 237.9 kB / 0.9229 GB, free: 6.133 MB / 0.5919 GB
Notification: Performance of simCode: created initialization part: time 0.01896/1.557, allocations: 9.648 MB / 0.9324 GB, free: 12.47 MB / 0.6075 GB
Notification: Performance of simCode: created event and clocks part: time 1.765e-05/1.557, allocations: 0 / 0.9324 GB, free: 12.47 MB / 0.6075 GB
Notification: Performance of simCode: created simulation system equations: time 0.008646/1.565, allocations: 4.07 MB / 0.9363 GB, free: 8.375 MB / 0.6075 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006809/1.572, allocations: 0.7168 MB / 0.937 GB, free: 7.664 MB / 0.6075 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03371/1.606, allocations: 16.01 MB / 0.9527 GB, free: 7.445 MB / 0.6231 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007719/1.614, allocations: 4.543 MB / 0.9571 GB, free: 2.855 MB / 0.6231 GB
Notification: Performance of simCode: alias equations: time 0.007935/1.621, allocations: 2.723 MB / 0.9598 GB, free: 128 kB / 0.6231 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001812/1.623, allocations: 347.3 kB / 0.9601 GB, free: 15.79 MB / 0.6387 GB
Notification: Performance of SimCode: time 2.184e-06/1.623, allocations: 0 / 0.9601 GB, free: 15.79 MB / 0.6387 GB
Notification: Performance of Templates: time 0.4787/2.102, allocations: 74.96 MB / 1.033 GB, free: 173.8 MB / 0.6387 GB
"
[Timeout remaining time 658]
make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.makefile [Timeout 660]
(rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.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: 9.25576320849359]