Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.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.CutTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque.torque.3.|cutTorque.torque.2.|cutTorque.torque.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2") translateModel(ModelicaTest.MultiBody.Sensors.CutTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque.torque.3.|cutTorque.torque.2.|cutTorque.torque.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2") [: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.00162/0.00162, allocations: 179.7 kB / 8.517 MB, free: 1.852 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.221/1.221, allocations: 221.4 MB / 230.3 MB, free: 7.676 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.0009224/0.0009223, allocations: 93.8 kB / 281.2 MB, free: 5.492 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.1586/0.1586, allocations: 44.15 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.744e-06/7.774e-06, allocations: 4.219 kB / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1061, allocations: 61.91 MB / 0.4941 GB, free: 1.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2876/0.3937, allocations: 102.1 MB / 0.5938 GB, free: 10.7 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002015/0.394, allocations: 71.95 kB / 0.5938 GB, free: 10.63 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.1495/0.5435, allocations: 51.76 MB / 0.6444 GB, free: 6.488 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001276/0.5436, allocations: 56 kB / 0.6444 GB, free: 6.434 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1004 * Number of variables: 1004 Notification: Performance of Generate backend data structure: time 0.007345/0.551, allocations: 2.511 MB / 0.6469 GB, free: 3.867 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.5511, allocations: 19.91 kB / 0.6469 GB, free: 3.848 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01415/0.5652, allocations: 1.47 MB / 0.6483 GB, free: 2.371 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00616/0.5714, allocations: 1.672 MB / 0.65 GB, free: 0.6484 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001502/0.5716, allocations: 88 kB / 0.6501 GB, free: 0.5625 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009242/0.5726, allocations: 156 kB / 0.6502 GB, free: 420 kB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01163/0.5842, allocations: 4.219 MB / 0.6543 GB, free: 12.18 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01004/0.5943, allocations: 5.845 MB / 0.66 GB, free: 5.996 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.964e-05/0.5944, allocations: 15.88 kB / 0.66 GB, free: 5.98 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003202/0.5947, allocations: 8 kB / 0.6601 GB, free: 5.973 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007749/0.5955, allocations: 0.669 MB / 0.6607 GB, free: 5.301 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02604/0.6215, allocations: 22.23 MB / 0.6824 GB, free: 14.31 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001471/0.623, allocations: 1.382 MB / 0.6838 GB, free: 12.81 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005993/0.6237, allocations: 0.4911 MB / 0.6842 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 5.753e-05/0.6237, allocations: 20.62 kB / 0.6843 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.6238, allocations: 39.12 kB / 0.6843 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=90): time 3.076e-06/0.6238, allocations: 4 kB / 0.6843 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of matching and sorting (n=90): time 0.00298/0.6267, allocations: 1.39 MB / 0.6857 GB, free: 10.85 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.045e-05/0.6268, allocations: 60.06 kB / 0.6857 GB, free: 10.78 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001979/0.6288, allocations: 1.6 MB / 0.6873 GB, free: 9.176 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.69e-05/0.6288, allocations: 25.7 kB / 0.6873 GB, free: 9.145 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001011/0.6299, allocations: 1.824 MB / 0.6891 GB, free: 7.289 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002499/0.6301, allocations: 351.5 kB / 0.6894 GB, free: 6.941 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.557e-05/0.6302, allocations: 0 / 0.6894 GB, free: 6.941 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002493/0.6305, allocations: 493.6 kB / 0.6899 GB, free: 6.449 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001088/0.6316, allocations: 0.8652 MB / 0.6907 GB, free: 5.582 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002139/0.6337, allocations: 2.867 MB / 0.6935 GB, free: 1.695 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001849/0.6356, allocations: 1.626 MB / 0.6951 GB, free: 68 kB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.702e-05/0.6356, allocations: 27.91 kB / 0.6952 GB, free: 40 kB / 0.4948 GB Notification: Performance of matching and sorting (n=417) (initialization): time 0.004498/0.6401, allocations: 3.262 MB / 0.6983 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.6401, allocations: 5.094 kB / 0.6983 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.23e-05/0.6402, allocations: 72.05 kB / 0.6984 GB, free: 12.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001017/0.6403, allocations: 115.9 kB / 0.6985 GB, free: 12.59 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00189/0.6422, allocations: 0.7057 MB / 0.6992 GB, free: 11.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.487e-05/0.6423, allocations: 143.4 kB / 0.6993 GB, free: 11.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00173/0.6441, allocations: 367.7 kB / 0.6997 GB, free: 11.38 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002627/0.6443, allocations: 200 kB / 0.6999 GB, free: 11.18 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 331 * Number of states: 0 () * Number of discrete variables: 26 (worldTorque.color[3],worldTorque.color[2],worldTorque.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutTorque.torqueArrow.arrowLine.twoHeadedArrow,cutTorque.torqueArrow.headAtOrigin,cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (393): * Single equations (assignments): 390 * 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.0003076/0.6446, allocations: 285.8 kB / 0.7002 GB, free: 10.89 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001864/0.6448, allocations: 161.8 kB / 0.7003 GB, free: 10.73 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001627/0.6465, allocations: 1.177 MB / 0.7015 GB, free: 9.535 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.626e-05/0.6465, allocations: 4 kB / 0.7015 GB, free: 9.531 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.6465, allocations: 0 / 0.7015 GB, free: 9.531 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.6465, allocations: 3.906 kB / 0.7015 GB, free: 9.527 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005523/0.6521, allocations: 3.911 MB / 0.7053 GB, free: 5.438 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.846e-06/0.6521, allocations: 4 kB / 0.7053 GB, free: 5.434 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000519/0.6526, allocations: 119.8 kB / 0.7054 GB, free: 5.316 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-05/0.6526, allocations: 12 kB / 0.7054 GB, free: 5.305 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.896e-05/0.6527, allocations: 8 kB / 0.7054 GB, free: 5.297 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.702e-05/0.6527, allocations: 19.92 kB / 0.7054 GB, free: 5.277 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.408e-06/0.6527, allocations: 11.94 kB / 0.7055 GB, free: 5.266 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001818/0.6546, allocations: 1.845 MB / 0.7073 GB, free: 3.129 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004347/0.655, allocations: 230.8 kB / 0.7075 GB, free: 2.883 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001966/0.6552, allocations: 8 kB / 0.7075 GB, free: 2.875 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004852/0.6557, allocations: 15.98 kB / 0.7075 GB, free: 2.859 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.6558, allocations: 51.77 kB / 0.7076 GB, free: 2.809 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.655e-05/0.6559, allocations: 35.98 kB / 0.7076 GB, free: 2.773 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001488/0.6574, allocations: 1.066 MB / 0.7086 GB, free: 1.715 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002541/0.6599, allocations: 0.6645 MB / 0.7093 GB, free: 1.047 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 62 * 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.0003344/0.6603, allocations: 154.9 kB / 0.7094 GB, free: 0.8828 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.1914/0.8517, allocations: 2.04 MB / 0.7114 GB, free: 131.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/0.8518, allocations: 0 / 0.7114 GB, free: 131.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0005673/0.8523, allocations: 0.5179 MB / 0.7119 GB, free: 131.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009142/0.8533, allocations: 173.5 kB / 0.7121 GB, free: 131.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007513/0.8608, allocations: 4.357 MB / 0.7163 GB, free: 130.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002447/0.8633, allocations: 2.527 MB / 0.7188 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of SimCode: time 8.72e-07/0.8633, allocations: 0 / 0.7188 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of Templates: time 0.02687/0.8902, allocations: 14.42 MB / 0.7329 GB, free: 129 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches