Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.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.CutTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque1a.torque.3.|cutTorque2a.torque.3.|cutTorque1b.torque.3.|cutTorque2b.torque.3.|cutTorque1a.torque.2.|cutTorque2a.torque.2.|cutTorque1b.torque.2.|cutTorque2b.torque.2.|cutTorque1a.torque.1.|cutTorque2a.torque.1.|cutTorque1b.torque.1.|cutTorque2b.torque.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque") translateModel(ModelicaTest.MultiBody.Sensors.CutTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque1a.torque.3.|cutTorque2a.torque.3.|cutTorque1b.torque.3.|cutTorque2b.torque.3.|cutTorque1a.torque.2.|cutTorque2a.torque.2.|cutTorque1b.torque.2.|cutTorque2b.torque.2.|cutTorque1a.torque.1.|cutTorque2a.torque.1.|cutTorque1b.torque.1.|cutTorque2b.torque.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque") [: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.00264/0.00264, allocations: 175.8 kB / 8.148 MB, free: 2.211 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.736/1.736, allocations: 205.2 MB / 213.7 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.001243/0.001243, allocations: 89.52 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.2546/0.2546, allocations: 43.49 MB / 353.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.923e-06/7.053e-06, allocations: 0 / 417.7 MB, free: 40.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2802, allocations: 58.85 MB / 476.5 MB, free: 5.094 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1857/0.4659, allocations: 104.3 MB / 0.5672 GB, free: 10.8 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003001/0.4663, allocations: 87.45 kB / 0.5673 GB, free: 10.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.8778/1.344, allocations: 160.7 MB / 0.7242 GB, free: 82.35 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.00053/1.345, allocations: 160 kB / 0.7243 GB, free: 82.2 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: 2935 * Number of variables: 2935 Notification: Performance of Generate backend data structure: time 0.03651/1.381, allocations: 7.85 MB / 0.732 GB, free: 74.28 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/1.381, allocations: 12.03 kB / 0.732 GB, free: 74.27 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0282/1.409, allocations: 3.05 MB / 0.735 GB, free: 71.2 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03292/1.442, allocations: 9.815 MB / 0.7446 GB, free: 61.39 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005579/1.443, allocations: 272 kB / 0.7448 GB, free: 61.12 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004367/1.447, allocations: 0.496 MB / 0.7453 GB, free: 60.63 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03165/1.479, allocations: 12.04 MB / 0.7571 GB, free: 48.59 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04652/1.526, allocations: 17.4 MB / 0.7741 GB, free: 29.67 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004801/1.526, allocations: 95.06 kB / 0.7742 GB, free: 29.57 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004066/1.53, allocations: 47.94 kB / 0.7742 GB, free: 29.53 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004841/1.535, allocations: 1.985 MB / 0.7761 GB, free: 27.54 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3355/1.871, allocations: 83.67 MB / 0.8578 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006726/1.878, allocations: 3.097 MB / 0.8609 GB, free: 108 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003984/1.882, allocations: 1.694 MB / 0.8625 GB, free: 107.9 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02396/1.906, allocations: 8.11 MB / 0.8704 GB, free: 106.1 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.52e-05/1.906, allocations: 58.3 kB / 0.8705 GB, free: 106.1 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=202): time 6.552e-06/1.906, allocations: 0 / 0.8705 GB, free: 106.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=202): time 0.02464/1.93, allocations: 4.749 MB / 0.8751 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.951e-05/1.93, allocations: 148 kB / 0.8753 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01428/1.945, allocations: 5.385 MB / 0.8805 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000547/1.945, allocations: 25.7 kB / 0.8806 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004162/1.95, allocations: 5.333 MB / 0.8858 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001497/1.951, allocations: 0.8044 MB / 0.8866 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001021/1.952, allocations: 0 / 0.8866 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006494/1.953, allocations: 0.7038 MB / 0.8872 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006775/1.96, allocations: 2.379 MB / 0.8896 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0111/1.971, allocations: 8.454 MB / 0.8978 GB, free: 93.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01048/1.981, allocations: 4.45 MB / 0.9022 GB, free: 93.16 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002306/1.982, allocations: 62.09 kB / 0.9022 GB, free: 93.16 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1219) (initialization): time 0.02655/2.008, allocations: 9.157 MB / 0.9112 GB, free: 91.07 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/2.008, allocations: 5.219 kB / 0.9112 GB, free: 91.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000346/2.009, allocations: 219.8 kB / 0.9114 GB, free: 91.07 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003662/2.009, allocations: 323.5 kB / 0.9117 GB, free: 91.07 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01508/2.024, allocations: 2.277 MB / 0.9139 GB, free: 90.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003434/2.024, allocations: 433.9 kB / 0.9143 GB, free: 90.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0103/2.035, allocations: 0.7698 MB / 0.9151 GB, free: 90.36 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002183/2.037, allocations: 0.5757 MB / 0.9156 GB, free: 90.29 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1003 * 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],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[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],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[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],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[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 (1195): * Single equations (assignments): 1192 * 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.002272/2.039, allocations: 0.5681 MB / 0.9162 GB, free: 89.83 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00152/2.041, allocations: 0.5439 MB / 0.9167 GB, free: 89.53 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007633/2.048, allocations: 2.371 MB / 0.919 GB, free: 88.68 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001115/2.049, allocations: 18.31 kB / 0.9191 GB, free: 88.68 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.677e-05/2.049, allocations: 6.938 kB / 0.9191 GB, free: 88.68 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.849e-05/2.049, allocations: 11.42 kB / 0.9191 GB, free: 88.68 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06514/2.114, allocations: 28.48 MB / 0.9469 GB, free: 74.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001187/2.114, allocations: 32 kB / 0.9469 GB, free: 74.93 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003551/2.118, allocations: 363.8 kB / 0.9473 GB, free: 74.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.232e-05/2.118, allocations: 55.89 kB / 0.9473 GB, free: 74.57 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00058/2.118, allocations: 51.89 kB / 0.9474 GB, free: 74.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.209e-05/2.118, allocations: 65.56 kB / 0.9474 GB, free: 74.47 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.223e-05/2.118, allocations: 59.72 kB / 0.9475 GB, free: 74.41 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00975/2.128, allocations: 10.06 MB / 0.9573 GB, free: 63.14 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002323/2.131, allocations: 0.7848 MB / 0.9581 GB, free: 62.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002409/2.133, allocations: 53.94 kB / 0.9581 GB, free: 62.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005705/2.139, allocations: 148.8 kB / 0.9583 GB, free: 62.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007185/2.14, allocations: 199.8 kB / 0.9585 GB, free: 62.04 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003038/2.14, allocations: 99.09 kB / 0.9586 GB, free: 61.94 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.01012/2.15, allocations: 3.626 MB / 0.9621 GB, free: 58.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01245/2.163, allocations: 1.977 MB / 0.964 GB, free: 56.82 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 155 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 179 * 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.001076/2.164, allocations: 200.5 kB / 0.9642 GB, free: 56.62 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01393/2.178, allocations: 5.61 MB / 0.9697 GB, free: 51.56 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-05/2.178, allocations: 9.688 kB / 0.9697 GB, free: 51.55 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003316/2.181, allocations: 1.251 MB / 0.9709 GB, free: 50.46 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006547/2.188, allocations: 0.6674 MB / 0.9716 GB, free: 49.89 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04543/2.233, allocations: 14.58 MB / 0.9858 GB, free: 36.32 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0173/2.25, allocations: 6.309 MB / 0.992 GB, free: 31.64 MB / 0.4948 GB Notification: Performance of SimCode: time 1.653e-06/2.251, allocations: 4 kB / 0.992 GB, free: 31.63 MB / 0.4948 GB Notification: Performance of Templates: time 0.3672/2.618, allocations: 91.06 MB / 1.081 GB, free: 113.8 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/CutTorque/CutTorque.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches