Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Sensors.CutForceAndTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutForce1a.force.3.|cutForce1a.torque.3.|cutForce1b.torque.3.|cutForce2a.force.3.|cutForce2a.torque.3.|cutForce2b.force.3.|cutForce2b.torque.3.|cutForce1a.force.2.|cutForce1a.torque.2.|cutForce1b.torque.2.|cutForce2a.force.2.|cutForce2a.torque.2.|cutForce2b.force.2.|cutForce2b.torque.2.|cutForce1a.force.1.|cutForce1a.torque.1.|cutForce1b.torque.1.|cutForce2a.force.1.|cutForce2a.torque.1.|cutForce2b.force.1.|cutForce2b.torque.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2") translateModel(ModelicaTest.MultiBody.Sensors.CutForceAndTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutForce1a.force.3.|cutForce1a.torque.3.|cutForce1b.torque.3.|cutForce2a.force.3.|cutForce2a.torque.3.|cutForce2b.force.3.|cutForce2b.torque.3.|cutForce1a.force.2.|cutForce1a.torque.2.|cutForce1b.torque.2.|cutForce2a.force.2.|cutForce2a.torque.2.|cutForce2b.force.2.|cutForce2b.torque.2.|cutForce1a.force.1.|cutForce1a.torque.1.|cutForce1b.torque.1.|cutForce2a.force.1.|cutForce2a.torque.1.|cutForce2b.force.1.|cutForce2b.torque.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009935/0.0009935, allocations: 176 kB / 8.517 MB, free: 1.859 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.195/1.195, allocations: 221.4 MB / 230.3 MB, free: 7.625 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008762/0.0008762, allocations: 86.47 kB / 281.2 MB, free: 5.441 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2066/0.2066, allocations: 44.15 MB / 376.1 MB, free: 3.207 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.282e-06/6.312e-06, allocations: 0 / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.102, allocations: 61.92 MB / 0.4941 GB, free: 1.602 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2787/0.3807, allocations: 106.5 MB / 0.5981 GB, free: 6.195 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002163/0.3809, allocations: 71.95 kB / 0.5982 GB, free: 6.125 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.5478/0.9287, allocations: 169 MB / 0.7633 GB, free: 99.37 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003821/0.9292, allocations: 178.1 kB / 0.7634 GB, free: 99.36 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3105 * Number of variables: 3105 Notification: Performance of Generate backend data structure: time 0.02326/0.9524, allocations: 8.306 MB / 0.7716 GB, free: 95.36 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.9525, allocations: 13.53 kB / 0.7716 GB, free: 95.36 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01895/0.9715, allocations: 3.145 MB / 0.7746 GB, free: 94.66 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02572/0.9972, allocations: 9.535 MB / 0.784 GB, free: 90.71 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006048/0.9979, allocations: 304.4 kB / 0.7842 GB, free: 90.7 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004005/1.002, allocations: 0.5345 MB / 0.7848 GB, free: 90.69 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02185/1.024, allocations: 12.79 MB / 0.7972 GB, free: 79.24 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03106/1.055, allocations: 18.31 MB / 0.8151 GB, free: 59.44 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002934/1.055, allocations: 91.2 kB / 0.8152 GB, free: 59.35 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001469/1.057, allocations: 48 kB / 0.8153 GB, free: 59.3 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002375/1.059, allocations: 1.974 MB / 0.8172 GB, free: 57.32 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09665/1.156, allocations: 85.98 MB / 0.9012 GB, free: 0.7812 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1783/1.334, allocations: 2.818 MB / 0.9039 GB, free: 167.9 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001623/1.336, allocations: 1.506 MB / 0.9054 GB, free: 167.9 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01203/1.348, allocations: 7.616 MB / 0.9128 GB, free: 166.1 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/1.348, allocations: 57.16 kB / 0.9129 GB, free: 166.1 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=164): time 5.089e-06/1.348, allocations: 0 / 0.9129 GB, free: 166.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=164): time 0.01438/1.362, allocations: 4.79 MB / 0.9176 GB, free: 166.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.147e-05/1.362, allocations: 151.6 kB / 0.9177 GB, free: 165.9 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007513/1.37, allocations: 5.343 MB / 0.9229 GB, free: 165.6 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001996/1.37, allocations: 25.7 kB / 0.9229 GB, free: 165.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003466/1.373, allocations: 5.668 MB / 0.9285 GB, free: 162.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008781/1.374, allocations: 0.6864 MB / 0.9291 GB, free: 162.1 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003097/1.375, allocations: 1.688 kB / 0.9291 GB, free: 162.1 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004046/1.375, allocations: 0.6757 MB / 0.9298 GB, free: 161.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002669/1.378, allocations: 2.165 MB / 0.9319 GB, free: 161.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004927/1.383, allocations: 8.065 MB / 0.9398 GB, free: 154 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004563/1.387, allocations: 4.141 MB / 0.9438 GB, free: 154 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.21e-05/1.387, allocations: 66.19 kB / 0.9439 GB, free: 154 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1153) (initialization): time 0.01163/1.399, allocations: 8.763 MB / 0.9525 GB, free: 153 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/1.399, allocations: 3.812 kB / 0.9525 GB, free: 153 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001702/1.399, allocations: 214.6 kB / 0.9527 GB, free: 153 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002352/1.399, allocations: 310.6 kB / 0.953 GB, free: 153 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006072/1.406, allocations: 2.144 MB / 0.9551 GB, free: 152.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002154/1.406, allocations: 416.4 kB / 0.9555 GB, free: 152.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007664/1.413, allocations: 1.142 MB / 0.9566 GB, free: 152 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001078/1.415, allocations: 0.5532 MB / 0.9571 GB, free: 152 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 975 * Number of states: 0 () * Number of discrete variables: 88 (rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutForce2b.torqueArrow.arrowLine.twoHeadedArrow,cutForce2b.torqueArrow.headAtOrigin,cutForce2b.torqueColor[3],cutForce2b.torqueColor[2],cutForce2b.torqueColor[1],cutForce2b.forceArrow.arrowLine.twoHeadedArrow,cutForce2b.forceArrow.headAtOrigin,cutForce2b.forceColor[3],cutForce2b.forceColor[2],cutForce2b.forceColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutForce1b.torqueArrow.arrowLine.twoHeadedArrow,cutForce1b.torqueArrow.headAtOrigin,cutForce1b.torqueColor[3],cutForce1b.torqueColor[2],cutForce1b.torqueColor[1],cutForce1b.forceArrow.arrowLine.twoHeadedArrow,cutForce1b.forceArrow.headAtOrigin,cutForce1b.forceColor[3],cutForce1b.forceColor[2],cutForce1b.forceColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutForce2a.torqueArrow.arrowLine.twoHeadedArrow,cutForce2a.torqueArrow.headAtOrigin,cutForce2a.torqueColor[3],cutForce2a.torqueColor[2],cutForce2a.torqueColor[1],cutForce2a.forceArrow.arrowLine.twoHeadedArrow,cutForce2a.forceArrow.headAtOrigin,cutForce2a.forceColor[3],cutForce2a.forceColor[2],cutForce2a.forceColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutForce1a.torqueArrow.arrowLine.twoHeadedArrow,cutForce1a.torqueArrow.headAtOrigin,cutForce1a.torqueColor[3],cutForce1a.torqueColor[2],cutForce1a.torqueColor[1],cutForce1a.forceArrow.arrowLine.twoHeadedArrow,cutForce1a.forceArrow.headAtOrigin,cutForce1a.forceColor[3],cutForce1a.forceColor[2],cutForce1a.forceColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1129): * Single equations (assignments): 1126 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001128/1.416, allocations: 0.6309 MB / 0.9577 GB, free: 151.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008448/1.417, allocations: 0.5292 MB / 0.9582 GB, free: 151.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001112/1.418, allocations: 0.6237 MB / 0.9589 GB, free: 150.9 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.211e-05/1.418, allocations: 15.66 kB / 0.9589 GB, free: 150.9 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.346e-05/1.418, allocations: 3.406 kB / 0.9589 GB, free: 150.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/1.418, allocations: 6.281 kB / 0.9589 GB, free: 150.9 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02303/1.441, allocations: 19.08 MB / 0.9775 GB, free: 144 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-05/1.441, allocations: 23.75 kB / 0.9775 GB, free: 144 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001093/1.442, allocations: 286.1 kB / 0.9778 GB, free: 144 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-05/1.442, allocations: 34.56 kB / 0.9778 GB, free: 144 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001183/1.442, allocations: 43.39 kB / 0.9779 GB, free: 144 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.392e-05/1.442, allocations: 44.22 kB / 0.9779 GB, free: 144 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.05e-05/1.442, allocations: 48.12 kB / 0.978 GB, free: 144 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003855/1.446, allocations: 7.682 MB / 0.9855 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/1.447, allocations: 0.5916 MB / 0.986 GB, free: 136.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006639/1.448, allocations: 33.19 kB / 0.9861 GB, free: 136.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002068/1.45, allocations: 152 kB / 0.9862 GB, free: 136.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001806/1.45, allocations: 152 kB / 0.9864 GB, free: 136.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/1.45, allocations: 79.38 kB / 0.9864 GB, free: 136.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.005494/1.456, allocations: 3.581 MB / 0.9899 GB, free: 135 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008271/1.464, allocations: 2.067 MB / 0.992 GB, free: 134.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 113 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (140): * Single equations (assignments): 137 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004765/1.464, allocations: 176.8 kB / 0.9921 GB, free: 134.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007961/1.472, allocations: 5.1 MB / 0.9971 GB, free: 132.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.836e-05/1.472, allocations: 4.156 kB / 0.9971 GB, free: 132.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001313/1.474, allocations: 1.041 MB / 0.9981 GB, free: 131.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003618/1.477, allocations: 0.7441 MB / 0.9989 GB, free: 131.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02482/1.502, allocations: 13.5 MB / 1.012 GB, free: 118.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01035/1.513, allocations: 6.576 MB / 1.018 GB, free: 113.9 MB / 0.5261 GB Notification: Performance of SimCode: time 2.044e-06/1.513, allocations: 0 / 1.018 GB, free: 113.9 MB / 0.5261 GB Notification: Performance of Templates: time 0.08734/1.6, allocations: 44.39 MB / 1.062 GB, free: 84.16 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutForceAndTorque2/CutForceAndTorque2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches