Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_trunk_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_trunk_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 trunk/package.mo): time 0.001201/0.001201, allocations: 203.4 kB / 8.542 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.286/1.286, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008981/0.0008984, allocations: 97.14 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1792/0.1792, allocations: 45.14 MB / 383.3 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.192e-06/6.222e-06, allocations: 0 / 452.6 MB, free: 76.21 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1082, allocations: 63.24 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3298/0.438, allocations: 107.5 MB / 0.6087 GB, free: 11.96 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/0.4383, allocations: 71.22 kB / 0.6088 GB, free: 11.93 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.6303/1.069, allocations: 175.2 MB / 0.7798 GB, free: 95.6 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004021/1.069, allocations: 176.8 kB / 0.78 GB, free: 95.6 MB / 0.5261 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.02106/1.09, allocations: 8.314 MB / 0.7881 GB, free: 92.39 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/1.09, allocations: 6.469 kB / 0.7881 GB, free: 92.39 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01562/1.106, allocations: 3.147 MB / 0.7912 GB, free: 91.8 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01932/1.125, allocations: 8.614 MB / 0.7996 GB, free: 90.78 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000401/1.126, allocations: 296.5 kB / 0.7999 GB, free: 90.78 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003028/1.129, allocations: 0.5357 MB / 0.8004 GB, free: 90.77 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02075/1.149, allocations: 12.79 MB / 0.8129 GB, free: 90.73 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02926/1.179, allocations: 18.31 MB / 0.8308 GB, free: 86.53 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002418/1.179, allocations: 95.03 kB / 0.8309 GB, free: 86.52 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001072/1.18, allocations: 44.31 kB / 0.8309 GB, free: 86.52 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002237/1.182, allocations: 1.977 MB / 0.8329 GB, free: 86.29 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.093/1.275, allocations: 85.98 MB / 0.9168 GB, free: 18.12 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003333/1.279, allocations: 2.815 MB / 0.9196 GB, free: 15.45 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001632/1.28, allocations: 1.513 MB / 0.9211 GB, free: 14.09 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01263/1.293, allocations: 7.614 MB / 0.9285 GB, free: 7.516 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.44e-05/1.293, allocations: 59.39 kB / 0.9286 GB, free: 7.453 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=164): time 4.849e-06/1.293, allocations: 0 / 0.9286 GB, free: 7.453 MB / 0.5261 GB Notification: Performance of matching and sorting (n=164): time 0.01506/1.308, allocations: 4.798 MB / 0.9332 GB, free: 3.957 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.752e-05/1.308, allocations: 145.5 kB / 0.9334 GB, free: 3.785 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00812/1.316, allocations: 5.342 MB / 0.9386 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002745/1.317, allocations: 25.7 kB / 0.9386 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.004292/1.321, allocations: 5.669 MB / 0.9442 GB, free: 10 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001058/1.322, allocations: 0.6853 MB / 0.9448 GB, free: 9.402 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003095/1.322, allocations: 4 kB / 0.9448 GB, free: 9.398 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000563/1.323, allocations: 0.6751 MB / 0.9455 GB, free: 8.82 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003317/1.326, allocations: 2.166 MB / 0.9476 GB, free: 6.883 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1868/1.513, allocations: 8.062 MB / 0.9555 GB, free: 153 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005769/1.519, allocations: 4.149 MB / 0.9595 GB, free: 152.9 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.508e-05/1.519, allocations: 60.34 kB / 0.9596 GB, free: 152.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1153) (initialization): time 0.01392/1.533, allocations: 8.76 MB / 0.9681 GB, free: 152.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/1.533, allocations: 7.531 kB / 0.9681 GB, free: 152.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001882/1.533, allocations: 212 kB / 0.9684 GB, free: 152.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002385/1.533, allocations: 308.5 kB / 0.9686 GB, free: 152.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006289/1.54, allocations: 2.143 MB / 0.9707 GB, free: 152.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001857/1.54, allocations: 412.4 kB / 0.9711 GB, free: 152.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007847/1.548, allocations: 1.136 MB / 0.9722 GB, free: 152.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008956/1.549, allocations: 0.5567 MB / 0.9728 GB, free: 152.6 MB / 0.5417 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.001021/1.55, allocations: 0.6368 MB / 0.9734 GB, free: 152.3 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007103/1.55, allocations: 0.5334 MB / 0.9739 GB, free: 152.3 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001085/1.552, allocations: 0.6228 MB / 0.9745 GB, free: 152.2 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.082e-05/1.552, allocations: 14.22 kB / 0.9745 GB, free: 152.2 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/1.552, allocations: 7.312 kB / 0.9746 GB, free: 152.2 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/1.552, allocations: 9.469 kB / 0.9746 GB, free: 152.2 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02308/1.575, allocations: 19.07 MB / 0.9932 GB, free: 150.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.681e-05/1.575, allocations: 30.69 kB / 0.9932 GB, free: 150.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/1.576, allocations: 288.9 kB / 0.9935 GB, free: 150.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.829e-05/1.576, allocations: 37.91 kB / 0.9935 GB, free: 150.8 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001119/1.576, allocations: 40.61 kB / 0.9936 GB, free: 150.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.296e-05/1.576, allocations: 52.47 kB / 0.9936 GB, free: 150.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.68e-05/1.576, allocations: 34.16 kB / 0.9937 GB, free: 150.8 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003848/1.58, allocations: 7.688 MB / 1.001 GB, free: 144.3 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009143/1.581, allocations: 0.5852 MB / 1.002 GB, free: 143.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006169/1.582, allocations: 38.94 kB / 1.002 GB, free: 143.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002057/1.584, allocations: 144.1 kB / 1.002 GB, free: 143.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/1.584, allocations: 157.8 kB / 1.002 GB, free: 143.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001134/1.584, allocations: 82.75 kB / 1.002 GB, free: 143.9 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.004538/1.588, allocations: 3.579 MB / 1.006 GB, free: 143.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008174/1.597, allocations: 2.066 MB / 1.008 GB, free: 143.4 MB / 0.5417 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.0004835/1.597, allocations: 194 kB / 1.008 GB, free: 143.2 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.007049/1.604, allocations: 5.097 MB / 1.013 GB, free: 142.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-05/1.604, allocations: 3.938 kB / 1.013 GB, free: 142.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001195/1.605, allocations: 1.034 MB / 1.014 GB, free: 142.7 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003583/1.609, allocations: 0.7432 MB / 1.015 GB, free: 142.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02687/1.636, allocations: 13.51 MB / 1.028 GB, free: 139 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009874/1.646, allocations: 6.57 MB / 1.034 GB, free: 138.1 MB / 0.5417 GB Notification: Performance of SimCode: time 6.31e-07/1.646, allocations: 0 / 1.034 GB, free: 138.1 MB / 0.5417 GB Notification: Performance of Templates: time 0.08732/1.733, allocations: 44.39 MB / 1.078 GB, free: 123.4 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches