Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.0008277/0.0008278, allocations: 94.48 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008416/0.0008416, allocations: 180.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 223.3 MB / 241.9 MB, free: 232 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2295/0.2295, allocations: 44.25 MB / 337.3 MB, free: 2.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003805/0.0003805, allocations: 8.75 kB / 409.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1726/0.173, allocations: 61.93 MB / 471.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.4017/0.5747, allocations: 57.58 MB / 0.5168 GB, free: 9.852 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03544/0.6103, allocations: 12.15 MB / 0.5286 GB, free: 8.621 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01962/0.6299, allocations: 273 kB / 0.5289 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0144/0.6444, allocations: 2.873 MB / 0.5317 GB, free: 7.961 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03377/0.6782, allocations: 8.589 MB / 0.5401 GB, free: 4.055 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00599/0.6842, allocations: 0.9128 MB / 0.541 GB, free: 3.797 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.04912/0.7334, allocations: 35.52 MB / 0.5757 GB, free: 10.12 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01153/0.745, allocations: 4.96 MB / 0.5805 GB, free: 5.117 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005786/0.7508, allocations: 1.868 MB / 0.5823 GB, free: 3.242 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006366/0.7572, allocations: 3.085 MB / 0.5854 GB, free: 152 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002103/0.7593, allocations: 220 kB / 0.5856 GB, free: 15.93 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004099/0.7634, allocations: 0.9909 MB / 0.5865 GB, free: 14.94 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004629/0.7681, allocations: 2.544 MB / 0.589 GB, free: 12.39 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00302/0.7711, allocations: 1.166 MB / 0.5902 GB, free: 11.21 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01116/0.7823, allocations: 7.614 MB / 0.5976 GB, free: 3.582 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.7824, allocations: 4 kB / 0.5976 GB, free: 3.578 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.7824, allocations: 0 / 0.5976 GB, free: 3.578 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000434/0.7828, allocations: 0 / 0.5976 GB, free: 3.578 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: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.01588/0.7987, allocations: 6.019 MB / 0.6035 GB, free: 13.48 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.7988, allocations: 8.031 kB / 0.6035 GB, free: 13.47 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01532/0.8141, allocations: 3.938 MB / 0.6073 GB, free: 9.52 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0093/0.8234, allocations: 3.983 MB / 0.6112 GB, free: 5.477 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002831/0.8237, allocations: 324 kB / 0.6115 GB, free: 5.156 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001748/0.8255, allocations: 427.6 kB / 0.6119 GB, free: 4.738 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03056/0.8561, allocations: 15.6 MB / 0.6272 GB, free: 4.41 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002036/0.8563, allocations: 59.48 kB / 0.6272 GB, free: 4.352 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006757/0.857, allocations: 195.8 kB / 0.6274 GB, free: 4.16 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005886/0.8629, allocations: 3.388 MB / 0.6307 GB, free: 0.7695 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03218/0.8951, allocations: 14.8 MB / 0.6452 GB, free: 1.953 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08539/0.9805, allocations: 55.22 MB / 0.6991 GB, free: 9.543 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01841/0.999, allocations: 8.186 MB / 0.7071 GB, free: 1.129 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3959/1.395, allocations: 4.82 MB / 0.7118 GB, free: 188.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003726/1.399, allocations: 2.21 MB / 0.7139 GB, free: 186.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001304/1.399, allocations: 64.61 kB / 0.714 GB, free: 186.8 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=367): time 2.288e-05/1.399, allocations: 0 / 0.714 GB, free: 186.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=419): time 0.1751/1.574, allocations: 40.08 MB / 0.7532 GB, free: 167.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.78e-05/1.574, allocations: 120 kB / 0.7533 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008514/1.583, allocations: 4.257 MB / 0.7574 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001222/1.584, allocations: 91.02 kB / 0.7575 GB, free: 163 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002511/1.587, allocations: 3.796 MB / 0.7612 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002539/1.589, allocations: 1.486 MB / 0.7627 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001214/1.59, allocations: 152 kB / 0.7628 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0005428/1.591, allocations: 0.6486 MB / 0.7634 GB, free: 156.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005624/1.596, allocations: 4.044 MB / 0.7674 GB, free: 152.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007193/1.604, allocations: 7.81 MB / 0.775 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007358/1.611, allocations: 5.594 MB / 0.7805 GB, free: 137.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.303e-05/1.611, allocations: 40 kB / 0.7805 GB, free: 137.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02557/1.637, allocations: 14.67 MB / 0.7948 GB, free: 123 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.082e-05/1.637, allocations: 60 kB / 0.7949 GB, free: 123 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001498/1.637, allocations: 128.5 kB / 0.795 GB, free: 122.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00729/1.644, allocations: 2.952 MB / 0.7979 GB, free: 119.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006865/1.651, allocations: 1.813 MB / 0.7997 GB, free: 118.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0183/1.67, allocations: 14.81 MB / 0.8141 GB, free: 103 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007161/1.677, allocations: 0.5047 MB / 0.8146 GB, free: 102.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00195/1.679, allocations: 429.2 kB / 0.815 GB, free: 102.1 MB / 0.5294 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 (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.007102/1.686, allocations: 2.875 MB / 0.8179 GB, free: 99.21 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001589/1.687, allocations: 458.1 kB / 0.8183 GB, free: 98.76 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0176/1.705, allocations: 10.9 MB / 0.8289 GB, free: 87.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.218e-05/1.705, allocations: 60.58 kB / 0.829 GB, free: 87.74 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.541e-05/1.705, allocations: 12 kB / 0.829 GB, free: 87.73 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.424e-05/1.705, allocations: 19.92 kB / 0.829 GB, free: 87.71 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03395/1.739, allocations: 21.66 MB / 0.8502 GB, free: 65.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.48e-05/1.739, allocations: 12 kB / 0.8502 GB, free: 65.82 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002984/1.742, allocations: 0.6794 MB / 0.8508 GB, free: 65.14 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006601/1.749, allocations: 2.736 MB / 0.8535 GB, free: 62.39 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000743/1.75, allocations: 83.94 kB / 0.8536 GB, free: 62.31 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01512/1.765, allocations: 13.58 MB / 0.8669 GB, free: 48.46 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/1.765, allocations: 15.94 kB / 0.8669 GB, free: 48.44 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02131/1.786, allocations: 15.52 MB / 0.882 GB, free: 32.65 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00152/1.788, allocations: 0.4913 MB / 0.8825 GB, free: 32.13 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000833/1.789, allocations: 79.08 kB / 0.8826 GB, free: 32.06 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002301/1.791, allocations: 320.8 kB / 0.8829 GB, free: 31.75 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006091/1.791, allocations: 258 kB / 0.8831 GB, free: 31.49 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002739/1.792, allocations: 117.1 kB / 0.8833 GB, free: 31.38 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003489/1.795, allocations: 2.645 MB / 0.8858 GB, free: 28.73 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.1e-07/1.795, allocations: 0 / 0.8858 GB, free: 28.73 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007017/1.802, allocations: 1.677 MB / 0.8875 GB, free: 27.06 MB / 0.5294 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.0007032/1.803, allocations: 243.1 kB / 0.8877 GB, free: 26.82 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01373/1.817, allocations: 10.02 MB / 0.8975 GB, free: 16.79 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.52e-05/1.817, allocations: 0 / 0.8975 GB, free: 16.79 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006474/1.823, allocations: 4.357 MB / 0.9017 GB, free: 12.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005409/1.829, allocations: 0.6742 MB / 0.9024 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.337/2.166, allocations: 18.37 MB / 0.9203 GB, free: 169.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009333/2.175, allocations: 4.552 MB / 0.9248 GB, free: 168.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007709/2.183, allocations: 2.724 MB / 0.9275 GB, free: 168.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001604/2.185, allocations: 348.8 kB / 0.9278 GB, free: 168.6 MB / 0.5294 GB Notification: Performance of SimCode: time 2.094e-06/2.185, allocations: 0 / 0.9278 GB, free: 168.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.1137/2.298, allocations: 66.37 MB / 0.9926 GB, free: 114 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches