Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.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.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_3.2.3_cpp_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_3.2.3_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001616/0.001616, allocations: 181.3 kB / 8.15 MB, free: 2.188 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.672/1.672, allocations: 205.2 MB / 213.8 MB, free: 13.92 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.001253/0.001252, allocations: 90.19 kB / 261.8 MB, free: 13.61 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.2494/0.2494, allocations: 43.49 MB / 353.2 MB, free: 2.016 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.825e-06/7.995e-06, allocations: 0 / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2656, allocations: 58.85 MB / 476.5 MB, free: 5.074 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1817/0.4473, allocations: 106.3 MB / 0.5692 GB, free: 8.766 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002869/0.4476, allocations: 75.97 kB / 0.5692 GB, free: 8.691 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.9397/1.387, allocations: 192.9 MB / 0.7576 GB, free: 47.26 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005358/1.388, allocations: 203.9 kB / 0.7578 GB, free: 47.06 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: 3665 * Number of variables: 3665 Notification: Performance of Generate backend data structure: time 0.03571/1.424, allocations: 9.288 MB / 0.7669 GB, free: 37.68 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/1.424, allocations: 8.031 kB / 0.7669 GB, free: 37.67 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0323/1.456, allocations: 3.398 MB / 0.7702 GB, free: 34.25 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03558/1.492, allocations: 10.7 MB / 0.7806 GB, free: 23.47 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006607/1.492, allocations: 348 kB / 0.781 GB, free: 23.13 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005468/1.498, allocations: 0.6093 MB / 0.7816 GB, free: 22.52 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03995/1.538, allocations: 15.06 MB / 0.7963 GB, free: 7.445 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06413/1.602, allocations: 21.22 MB / 0.817 GB, free: 0.5977 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006211/1.603, allocations: 91.16 kB / 0.8171 GB, free: 0.5078 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005031/1.608, allocations: 48 kB / 0.8171 GB, free: 472 kB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006595/1.614, allocations: 2.427 MB / 0.8195 GB, free: 14.03 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3882/2.003, allocations: 95.42 MB / 0.9127 GB, free: 78.69 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009187/2.012, allocations: 4.104 MB / 0.9167 GB, free: 78.01 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005282/2.017, allocations: 2.15 MB / 0.9188 GB, free: 77.95 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03094/2.048, allocations: 9.993 MB / 0.9286 GB, free: 75.91 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.243e-05/2.048, allocations: 64.84 kB / 0.9286 GB, free: 75.88 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=288): time 6.562e-06/2.048, allocations: 0 / 0.9286 GB, free: 75.88 MB / 0.4948 GB Notification: Performance of matching and sorting (n=288): time 0.03263/2.081, allocations: 6.283 MB / 0.9347 GB, free: 74.79 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.957e-05/2.081, allocations: 159.3 kB / 0.9349 GB, free: 74.63 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01546/2.097, allocations: 5.886 MB / 0.9406 GB, free: 72.59 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000695/2.097, allocations: 25.7 kB / 0.9407 GB, free: 72.55 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004783/2.102, allocations: 6.335 MB / 0.9469 GB, free: 68.17 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001965/2.104, allocations: 1.101 MB / 0.9479 GB, free: 67.38 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001294/2.106, allocations: 0 / 0.9479 GB, free: 67.38 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0009377/2.106, allocations: 0.7674 MB / 0.9487 GB, free: 66.87 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008069/2.115, allocations: 2.892 MB / 0.9515 GB, free: 65.88 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01251/2.127, allocations: 9.747 MB / 0.961 GB, free: 55.6 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01262/2.14, allocations: 5.264 MB / 0.9662 GB, free: 53.98 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002554/2.14, allocations: 70.81 kB / 0.9662 GB, free: 53.98 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1429) (initialization): time 0.03136/2.171, allocations: 10.84 MB / 0.9768 GB, free: 50.47 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/2.172, allocations: 7.75 kB / 0.9768 GB, free: 50.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003726/2.172, allocations: 245.6 kB / 0.9771 GB, free: 50.47 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004515/2.172, allocations: 361 kB / 0.9774 GB, free: 50.47 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01789/2.19, allocations: 2.662 MB / 0.98 GB, free: 50.14 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004055/2.191, allocations: 487.3 kB / 0.9805 GB, free: 50.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01202/2.203, allocations: 0.8837 MB / 0.9813 GB, free: 49.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00268/2.205, allocations: 0.6657 MB / 0.982 GB, free: 49.54 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1127 * Number of states: 0 () * Number of discrete variables: 72 (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.torqueColor[3],cutForce2b.torqueColor[2],cutForce2b.torqueColor[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.torqueColor[3],cutForce1b.torqueColor[2],cutForce1b.torqueColor[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.torqueColor[3],cutForce2a.torqueColor[2],cutForce2a.torqueColor[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.torqueColor[3],cutForce1a.torqueColor[2],cutForce1a.torqueColor[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 (1405): * Single equations (assignments): 1402 * 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.003279/2.209, allocations: 0.6424 MB / 0.9826 GB, free: 49.03 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001728/2.211, allocations: 0.6118 MB / 0.9832 GB, free: 48.69 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01113/2.222, allocations: 3.42 MB / 0.9865 GB, free: 47.47 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001481/2.222, allocations: 28.31 kB / 0.9866 GB, free: 47.47 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.557e-05/2.222, allocations: 0 / 0.9866 GB, free: 47.47 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.027e-05/2.222, allocations: 13.81 kB / 0.9866 GB, free: 47.47 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3235/2.546, allocations: 56.78 MB / 1.042 GB, free: 115.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001741/2.546, allocations: 58.44 kB / 1.042 GB, free: 115.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004936/2.551, allocations: 0.553 MB / 1.043 GB, free: 115.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.916e-05/2.551, allocations: 78.34 kB / 1.043 GB, free: 115.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003215/2.551, allocations: 93.8 kB / 1.043 GB, free: 115.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.785e-05/2.551, allocations: 104.6 kB / 1.043 GB, free: 115.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.874e-05/2.551, allocations: 81.38 kB / 1.043 GB, free: 115.7 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01243/2.564, allocations: 15.95 MB / 1.059 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002175/2.566, allocations: 0.9082 MB / 1.059 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001688/2.568, allocations: 85.61 kB / 1.06 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006/2.574, allocations: 191.4 kB / 1.06 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000632/2.574, allocations: 321.4 kB / 1.06 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003591/2.575, allocations: 154.9 kB / 1.06 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.009208/2.584, allocations: 3.938 MB / 1.064 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01409/2.598, allocations: 2.457 MB / 1.066 GB, free: 100.8 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 245 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (272): * Single equations (assignments): 269 * 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.001253/2.599, allocations: 249.3 kB / 1.067 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01649/2.616, allocations: 6.877 MB / 1.073 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.165e-05/2.616, allocations: 10.09 kB / 1.073 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00438/2.62, allocations: 1.787 MB / 1.075 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006868/2.627, allocations: 0.7746 MB / 1.076 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05187/2.679, allocations: 18.29 MB / 1.094 GB, free: 95.59 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02035/2.7, allocations: 7.594 MB / 1.101 GB, free: 94.66 MB / 0.4948 GB Notification: Performance of SimCode: time 1.352e-06/2.7, allocations: 3.344 kB / 1.101 GB, free: 94.66 MB / 0.4948 GB Notification: Performance of Templates: time 0.2122/2.912, allocations: 109.1 MB / 1.208 GB, free: 36.14 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/CutForceAndTorque2/CutForceAndTorque2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches