Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2") translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009564/0.0009564, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 171.7 kB / 16.58 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.757/1.757, allocations: 205.4 MB / 222.8 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4449/0.4449, allocations: 43.57 MB / 314.6 MB, free: 8.758 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006631/0.0006634, allocations: 24 kB / 384 MB, free: 7.984 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1788/0.1795, allocations: 58.87 MB / 442.8 MB, free: 13.01 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3994/0.5789, allocations: 57.96 MB / 0.489 GB, free: 13.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03852/0.6175, allocations: 12.19 MB / 0.501 GB, free: 5.383 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01965/0.6372, allocations: 272.5 kB / 0.5012 GB, free: 5.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01229/0.6496, allocations: 2.888 MB / 0.504 GB, free: 4.316 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04296/0.6926, allocations: 8.639 MB / 0.5125 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006074/0.6987, allocations: 0.9038 MB / 0.5133 GB, free: 388 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0356/0.7343, allocations: 22.04 MB / 0.5349 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01223/0.7466, allocations: 5.035 MB / 0.5398 GB, free: 12.83 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006808/0.7534, allocations: 1.903 MB / 0.5417 GB, free: 10.92 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007654/0.7611, allocations: 3.131 MB / 0.5447 GB, free: 7.781 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002129/0.7633, allocations: 220 kB / 0.5449 GB, free: 7.566 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0046/0.7679, allocations: 0.987 MB / 0.5459 GB, free: 6.578 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005162/0.7731, allocations: 2.595 MB / 0.5484 GB, free: 3.977 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003792/0.7769, allocations: 1.189 MB / 0.5496 GB, free: 2.777 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01306/0.79, allocations: 7.708 MB / 0.5571 GB, free: 11.05 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.13e-05/0.7901, allocations: 3.938 kB / 0.5571 GB, free: 11.05 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.018e-06/0.7901, allocations: 0 / 0.5571 GB, free: 11.05 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005332/0.7906, allocations: 0 / 0.5571 GB, free: 11.05 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2212 * Number of variables: 2212 Notification: Performance of Generate backend data structure: time 0.02052/0.8112, allocations: 6.111 MB / 0.5631 GB, free: 4.855 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.721e-05/0.8112, allocations: 8.031 kB / 0.5631 GB, free: 4.848 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01643/0.8277, allocations: 3.938 MB / 0.5669 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01353/0.8413, allocations: 4.196 MB / 0.571 GB, free: 12.64 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005099/0.8419, allocations: 324.2 kB / 0.5713 GB, free: 12.32 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003449/0.8454, allocations: 439.6 kB / 0.5718 GB, free: 11.89 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04018/0.8856, allocations: 15.81 MB / 0.5872 GB, free: 11.35 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005148/0.8861, allocations: 63.39 kB / 0.5873 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002861/0.889, allocations: 199.8 kB / 0.5874 GB, free: 11.09 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007573/0.8966, allocations: 3.474 MB / 0.5908 GB, free: 7.617 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03963/0.9363, allocations: 14.9 MB / 0.6054 GB, free: 8.699 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4786/1.415, allocations: 56.03 MB / 0.6601 GB, free: 103.4 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01907/1.434, allocations: 8.185 MB / 0.6681 GB, free: 101.7 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008299/1.443, allocations: 4.817 MB / 0.6728 GB, free: 99.82 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002289/1.445, allocations: 2.208 MB / 0.675 GB, free: 97.77 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.314e-05/1.445, allocations: 75.11 kB / 0.675 GB, free: 97.7 MB / 494.1 MB Notification: Performance of pre-optimization done (n=367): time 1.263e-05/1.445, allocations: 0 / 0.675 GB, free: 97.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=419): time 0.1238/1.569, allocations: 40.2 MB / 0.7143 GB, free: 86.15 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.602e-05/1.569, allocations: 115.6 kB / 0.7144 GB, free: 86.05 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01029/1.579, allocations: 4.335 MB / 0.7186 GB, free: 83.77 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00136/1.581, allocations: 86.83 kB / 0.7187 GB, free: 83.7 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003124/1.584, allocations: 3.866 MB / 0.7225 GB, free: 79.97 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003116/1.587, allocations: 1.489 MB / 0.7239 GB, free: 78.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001477/1.588, allocations: 162.8 kB / 0.7241 GB, free: 78.34 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0008089/1.589, allocations: 0.6449 MB / 0.7247 GB, free: 77.69 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007019/1.596, allocations: 4.064 MB / 0.7287 GB, free: 73.62 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009333/1.606, allocations: 7.88 MB / 0.7364 GB, free: 63.93 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008833/1.615, allocations: 5.615 MB / 0.7419 GB, free: 58.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001748/1.615, allocations: 36 kB / 0.7419 GB, free: 58.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.03259/1.647, allocations: 14.73 MB / 0.7563 GB, free: 43.49 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002042/1.648, allocations: 62.97 kB / 0.7564 GB, free: 43.43 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002642/1.648, allocations: 132 kB / 0.7565 GB, free: 43.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007668/1.656, allocations: 2.963 MB / 0.7594 GB, free: 40.33 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007206/1.663, allocations: 1.829 MB / 0.7612 GB, free: 38.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01917/1.682, allocations: 14.81 MB / 0.7756 GB, free: 23.44 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008637/1.691, allocations: 0.5112 MB / 0.7761 GB, free: 22.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00271/1.693, allocations: 436.5 kB / 0.7765 GB, free: 22.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 592 * Number of states: 0 () * Number of discrete variables: 48 (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 (951): * Single equations (assignments): 943 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0103/1.704, allocations: 2.916 MB / 0.7794 GB, free: 19.57 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002111/1.706, allocations: 462.1 kB / 0.7798 GB, free: 19.12 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02095/1.727, allocations: 10.91 MB / 0.7905 GB, free: 8.152 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.166e-05/1.727, allocations: 67.34 kB / 0.7905 GB, free: 8.09 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.856e-05/1.727, allocations: 8 kB / 0.7906 GB, free: 8.082 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.105e-05/1.727, allocations: 19.92 kB / 0.7906 GB, free: 8.062 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04871/1.776, allocations: 21.74 MB / 0.8118 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.652e-05/1.776, allocations: 12 kB / 0.8118 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003994/1.78, allocations: 0.6864 MB / 0.8125 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008577/1.789, allocations: 2.736 MB / 0.8152 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001607/1.79, allocations: 75.98 kB / 0.8152 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0224/1.813, allocations: 13.57 MB / 0.8285 GB, free: 0.7305 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.382e-05/1.813, allocations: 19.88 kB / 0.8285 GB, free: 0.7109 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3831/2.196, allocations: 15.51 MB / 0.8437 GB, free: 153.3 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003993/2.2, allocations: 1.19 MB / 0.8448 GB, free: 153 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001425/2.201, allocations: 73.02 kB / 0.8449 GB, free: 152.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003174/2.204, allocations: 319.1 kB / 0.8452 GB, free: 152.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000707/2.205, allocations: 256.3 kB / 0.8454 GB, free: 152.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003333/2.206, allocations: 118 kB / 0.8455 GB, free: 152.8 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006109/2.212, allocations: 2.705 MB / 0.8482 GB, free: 151.9 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.615e-06/2.212, allocations: 0 / 0.8482 GB, free: 151.9 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0139/2.226, allocations: 1.69 MB / 0.8498 GB, free: 151.7 MB / 0.5137 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001816/2.227, allocations: 232.8 kB / 0.8501 GB, free: 151.6 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.02167/2.249, allocations: 10.04 MB / 0.8599 GB, free: 148.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-05/2.249, allocations: 2.344 kB / 0.8599 GB, free: 148.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.01051/2.26, allocations: 4.364 MB / 0.8641 GB, free: 146.4 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009677/2.269, allocations: 0.6838 MB / 0.8648 GB, free: 146.1 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04503/2.315, allocations: 18.65 MB / 0.883 GB, free: 137 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01113/2.326, allocations: 4.622 MB / 0.8875 GB, free: 135.5 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.009466/2.335, allocations: 2.735 MB / 0.8902 GB, free: 135.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002668/2.338, allocations: 353 kB / 0.8905 GB, free: 135.2 MB / 0.5137 GB Notification: Performance of SimCode: time 2.695e-06/2.338, allocations: 3.844 kB / 0.8905 GB, free: 135.2 MB / 0.5137 GB Notification: Performance of Templates: time 0.1162/2.454, allocations: 66.67 MB / 0.9556 GB, free: 73.34 MB / 0.5137 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches