Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1.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.CutForceAndTorque1,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.CutForceAndTorque1") translateModel(ModelicaTest.MultiBody.Sensors.CutForceAndTorque1,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.CutForceAndTorque1") [: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.0009431/0.0009431, allocations: 179.4 kB / 8.519 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.172/1.172, allocations: 221.4 MB / 230.3 MB, free: 7.695 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.0009245/0.0009245, allocations: 85.81 kB / 281.2 MB, free: 5.527 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.1635/0.1635, allocations: 44.15 MB / 376.1 MB, free: 3.254 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.46e-06/5.47e-06, allocations: 224 / 444 MB, free: 15.63 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.101, allocations: 61.9 MB / 0.4941 GB, free: 1.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2869/0.3879, allocations: 106.5 MB / 0.5981 GB, free: 6.254 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/0.3882, allocations: 75.95 kB / 0.5982 GB, free: 6.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.5471/0.9352, allocations: 170.3 MB / 0.7646 GB, free: 96.36 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004179/0.9357, allocations: 176.8 kB / 0.7647 GB, free: 96.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.02291/0.9586, allocations: 8.308 MB / 0.7728 GB, free: 92.98 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.9587, allocations: 12.81 kB / 0.7728 GB, free: 92.98 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01776/0.9765, allocations: 3.153 MB / 0.7759 GB, free: 92.27 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02318/0.9997, allocations: 9.528 MB / 0.7852 GB, free: 87.81 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006542/1, allocations: 299.3 kB / 0.7855 GB, free: 87.81 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004303/1.005, allocations: 0.5308 MB / 0.786 GB, free: 87.8 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02226/1.027, allocations: 12.79 MB / 0.7985 GB, free: 75.91 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03479/1.062, allocations: 18.31 MB / 0.8164 GB, free: 56.11 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003373/1.062, allocations: 99.14 kB / 0.8165 GB, free: 56.01 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002277/1.064, allocations: 44 kB / 0.8165 GB, free: 55.96 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002393/1.067, allocations: 1.974 MB / 0.8185 GB, free: 53.99 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2497/1.317, allocations: 85.96 MB / 0.9024 GB, free: 159.9 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003019/1.32, allocations: 2.814 MB / 0.9052 GB, free: 159.3 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001525/1.321, allocations: 1.508 MB / 0.9066 GB, free: 159.2 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0116/1.333, allocations: 7.621 MB / 0.9141 GB, free: 157.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/1.333, allocations: 48.44 kB / 0.9141 GB, free: 157.4 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=164): time 5.3e-06/1.333, allocations: 2.766 kB / 0.9141 GB, free: 157.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=164): time 0.01425/1.347, allocations: 4.799 MB / 0.9188 GB, free: 157.4 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/1.347, allocations: 149 kB / 0.919 GB, free: 157.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007596/1.355, allocations: 5.352 MB / 0.9242 GB, free: 156.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001842/1.355, allocations: 25.7 kB / 0.9242 GB, free: 156.8 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002728/1.358, allocations: 5.671 MB / 0.9298 GB, free: 153.8 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007184/1.358, allocations: 0.6814 MB / 0.9304 GB, free: 153.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002762/1.359, allocations: 0 / 0.9304 GB, free: 153.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003969/1.359, allocations: 0.6763 MB / 0.9311 GB, free: 153.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002961/1.362, allocations: 2.17 MB / 0.9332 GB, free: 153.1 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005023/1.367, allocations: 8.061 MB / 0.9411 GB, free: 145.3 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00498/1.372, allocations: 4.138 MB / 0.9451 GB, free: 145.3 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001192/1.372, allocations: 69.83 kB / 0.9452 GB, free: 145.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1153) (initialization): time 0.01326/1.385, allocations: 8.77 MB / 0.9537 GB, free: 144.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/1.386, allocations: 6.812 kB / 0.9537 GB, free: 144.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000186/1.386, allocations: 213.2 kB / 0.9539 GB, free: 144.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002228/1.386, allocations: 310.2 kB / 0.9542 GB, free: 144.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006224/1.392, allocations: 2.14 MB / 0.9563 GB, free: 144.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001895/1.392, allocations: 423.4 kB / 0.9567 GB, free: 144.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007018/1.399, allocations: 1.136 MB / 0.9578 GB, free: 143.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007854/1.4, allocations: 0.553 MB / 0.9584 GB, free: 143.6 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 (body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],translate1a.color[3],translate1a.color[2],translate1a.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],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],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],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.0009073/1.401, allocations: 0.6339 MB / 0.959 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00075/1.402, allocations: 0.5298 MB / 0.9595 GB, free: 142.9 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001119/1.403, allocations: 0.6235 MB / 0.9601 GB, free: 142.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.103e-05/1.403, allocations: 14.91 kB / 0.9601 GB, free: 142.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.396e-05/1.403, allocations: 0 / 0.9601 GB, free: 142.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/1.403, allocations: 6.844 kB / 0.9602 GB, free: 142.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0243/1.427, allocations: 19.95 MB / 0.9796 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-05/1.427, allocations: 25.5 kB / 0.9797 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00108/1.429, allocations: 280.8 kB / 0.9799 GB, free: 136.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.754e-05/1.429, allocations: 36.59 kB / 0.98 GB, free: 136.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001126/1.429, allocations: 44.66 kB / 0.98 GB, free: 136.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.33e-05/1.429, allocations: 50.27 kB / 0.9801 GB, free: 136.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.691e-05/1.429, allocations: 41.75 kB / 0.9801 GB, free: 136.6 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004023/1.433, allocations: 7.687 MB / 0.9876 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009203/1.434, allocations: 0.5922 MB / 0.9882 GB, free: 129 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006154/1.434, allocations: 33.17 kB / 0.9882 GB, free: 129 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002057/1.436, allocations: 145.3 kB / 0.9884 GB, free: 129 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000175/1.437, allocations: 148.8 kB / 0.9885 GB, free: 128.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001176/1.437, allocations: 84.7 kB / 0.9886 GB, free: 128.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004614/1.441, allocations: 3.583 MB / 0.9921 GB, free: 127.7 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008507/1.45, allocations: 2.062 MB / 0.9941 GB, free: 127.1 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.000457/1.45, allocations: 185.1 kB / 0.9943 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009347/1.46, allocations: 5.103 MB / 0.9992 GB, free: 125.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.679e-05/1.46, allocations: 4 kB / 0.9993 GB, free: 125.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001352/1.461, allocations: 1.04 MB / 1 GB, free: 124.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003892/1.465, allocations: 0.7408 MB / 1.001 GB, free: 123.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02577/1.491, allocations: 13.46 MB / 1.014 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0102/1.501, allocations: 6.578 MB / 1.021 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of SimCode: time 7.92e-07/1.501, allocations: 0 / 1.021 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of Templates: time 0.0931/1.594, allocations: 44.42 MB / 1.064 GB, free: 74.36 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutForceAndTorque1/CutForceAndTorque1.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches