Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.CutForce,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutForce1a.force.3.|cutForce2a.force.3.|cutForce2b.force.3.|cutForce1a.force.2.|cutForce2a.force.2.|cutForce2b.force.2.|cutForce1a.force.1.|cutForce2a.force.1.|cutForce2b.force.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce") translateModel(ModelicaTest.MultiBody.Sensors.CutForce,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutForce1a.force.3.|cutForce2a.force.3.|cutForce2b.force.3.|cutForce1a.force.2.|cutForce2a.force.2.|cutForce2b.force.2.|cutForce1a.force.1.|cutForce2a.force.1.|cutForce2b.force.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002351/0.002351, allocations: 170.2 kB / 8.144 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.661/1.661, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001268/0.001268, allocations: 88.78 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2568/0.2568, allocations: 43.5 MB / 353.2 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.943e-06/6.983e-06, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2603, allocations: 58.85 MB / 476.5 MB, free: 5.082 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.186/0.4464, allocations: 104.1 MB / 0.5671 GB, free: 10.91 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.4467, allocations: 75.95 kB / 0.5671 GB, free: 10.83 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.8212/1.268, allocations: 153.6 MB / 0.7172 GB, free: 89.26 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004271/1.268, allocations: 152 kB / 0.7173 GB, free: 89.11 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2799 * Number of variables: 2799 Notification: Performance of Generate backend data structure: time 0.02872/1.297, allocations: 7.614 MB / 0.7247 GB, free: 81.43 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/1.297, allocations: 8.031 kB / 0.7247 GB, free: 81.42 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02694/1.324, allocations: 3.007 MB / 0.7277 GB, free: 78.4 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03225/1.357, allocations: 9.674 MB / 0.7371 GB, free: 68.74 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005135/1.357, allocations: 264 kB / 0.7374 GB, free: 68.48 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004234/1.361, allocations: 479.8 kB / 0.7378 GB, free: 68.01 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02992/1.391, allocations: 11.61 MB / 0.7492 GB, free: 56.39 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04439/1.436, allocations: 16.74 MB / 0.7655 GB, free: 38.16 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003981/1.436, allocations: 87.2 kB / 0.7656 GB, free: 38.07 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003265/1.439, allocations: 48 kB / 0.7657 GB, free: 38.03 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004692/1.444, allocations: 1.898 MB / 0.7675 GB, free: 36.13 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3222/1.766, allocations: 81.22 MB / 0.8468 GB, free: 113.9 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006408/1.773, allocations: 3.02 MB / 0.8498 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003629/1.777, allocations: 1.612 MB / 0.8514 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0223/1.799, allocations: 7.77 MB / 0.8589 GB, free: 111.4 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.338e-05/1.799, allocations: 52.09 kB / 0.859 GB, free: 111.4 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=190): time 6.532e-06/1.799, allocations: 0 / 0.859 GB, free: 111.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=190): time 0.02476/1.824, allocations: 4.675 MB / 0.8636 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.147e-05/1.824, allocations: 150.5 kB / 0.8637 GB, free: 111.2 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01421/1.838, allocations: 5.241 MB / 0.8688 GB, free: 110.7 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004757/1.839, allocations: 25.7 kB / 0.8688 GB, free: 110.7 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004241/1.843, allocations: 5.113 MB / 0.8738 GB, free: 107.6 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001332/1.844, allocations: 0.7595 MB / 0.8746 GB, free: 107.2 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009464/1.845, allocations: 0 / 0.8746 GB, free: 107.2 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005732/1.846, allocations: 0.6954 MB / 0.8753 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006017/1.852, allocations: 2.255 MB / 0.8775 GB, free: 106.8 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01012/1.862, allocations: 8.081 MB / 0.8854 GB, free: 99.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01006/1.872, allocations: 4.228 MB / 0.8895 GB, free: 99.17 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000208/1.872, allocations: 62.75 kB / 0.8895 GB, free: 99.17 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1167) (initialization): time 0.02372/1.896, allocations: 8.729 MB / 0.8981 GB, free: 98.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/1.896, allocations: 5.125 kB / 0.8981 GB, free: 98.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003475/1.897, allocations: 210.7 kB / 0.8983 GB, free: 98.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003424/1.897, allocations: 309.6 kB / 0.8986 GB, free: 98.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01437/1.911, allocations: 2.187 MB / 0.9007 GB, free: 98.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003936/1.912, allocations: 412.8 kB / 0.9011 GB, free: 97.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01012/1.922, allocations: 0.7464 MB / 0.9018 GB, free: 97.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002354/1.924, allocations: 0.5542 MB / 0.9024 GB, free: 97.55 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 963 * Number of states: 0 () * Number of discrete variables: 60 (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.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.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.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.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 (1143): * Single equations (assignments): 1140 * 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.003234/1.928, allocations: 0.5438 MB / 0.9029 GB, free: 97.12 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001552/1.929, allocations: 0.5214 MB / 0.9034 GB, free: 96.83 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007104/1.936, allocations: 2.191 MB / 0.9055 GB, free: 96.06 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001042/1.937, allocations: 17.94 kB / 0.9056 GB, free: 96.06 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/1.937, allocations: 0 / 0.9056 GB, free: 96.06 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.378e-05/1.937, allocations: 11.3 kB / 0.9056 GB, free: 96.06 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05976/1.996, allocations: 24.81 MB / 0.9298 GB, free: 86.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001274/1.997, allocations: 31.94 kB / 0.9298 GB, free: 86.96 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003273/2, allocations: 347.1 kB / 0.9302 GB, free: 86.77 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.022e-05/2, allocations: 48 kB / 0.9302 GB, free: 86.73 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004661/2, allocations: 53.81 kB / 0.9303 GB, free: 86.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-05/2, allocations: 61.75 kB / 0.9303 GB, free: 86.63 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.861e-05/2.001, allocations: 47.81 kB / 0.9304 GB, free: 86.58 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008031/2.009, allocations: 9.21 MB / 0.9394 GB, free: 76.24 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001939/2.011, allocations: 0.761 MB / 0.9401 GB, free: 75.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001699/2.012, allocations: 47.31 kB / 0.9402 GB, free: 75.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005355/2.018, allocations: 143.5 kB / 0.9403 GB, free: 75.33 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006783/2.018, allocations: 187.8 kB / 0.9405 GB, free: 75.18 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002365/2.019, allocations: 91.75 kB / 0.9406 GB, free: 75.09 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.009277/2.028, allocations: 3.537 MB / 0.944 GB, free: 72.02 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01173/2.04, allocations: 1.889 MB / 0.9459 GB, free: 70.13 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 143 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (170): * Single equations (assignments): 167 * 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.0007426/2.041, allocations: 200 kB / 0.946 GB, free: 69.94 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01564/2.056, allocations: 5.313 MB / 0.9512 GB, free: 65.15 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.309e-05/2.056, allocations: 8 kB / 0.9512 GB, free: 65.14 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003754/2.06, allocations: 1.172 MB / 0.9524 GB, free: 64.12 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007246/2.067, allocations: 0.6562 MB / 0.953 GB, free: 63.57 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05115/2.119, allocations: 13.83 MB / 0.9665 GB, free: 50.71 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.04022/2.159, allocations: 6.091 MB / 0.9725 GB, free: 46.19 MB / 0.4948 GB Notification: Performance of SimCode: time 1.633e-06/2.159, allocations: 0 / 0.9725 GB, free: 46.19 MB / 0.4948 GB Notification: Performance of Templates: time 0.3817/2.541, allocations: 87.5 MB / 1.058 GB, free: 137.5 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/CutForce/CutForce.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches