Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/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_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008655/0.0008655, allocations: 189.7 kB / 7.805 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9752/0.9752, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007984/0.0007985, allocations: 87.36 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1487/0.1487, allocations: 43.49 MB / 352.8 MB, free: 1.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.129e-06/5.149e-06, allocations: 4 kB / 417.7 MB, free: 40.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1949/0.1949, allocations: 58.83 MB / 476.5 MB, free: 5.211 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1159/0.3109, allocations: 104.3 MB / 0.5672 GB, free: 10.62 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002073/0.3111, allocations: 75.95 kB / 0.5673 GB, free: 10.55 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.5007/0.8119, allocations: 160.7 MB / 0.7242 GB, free: 82.05 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004886/0.8124, allocations: 159.9 kB / 0.7243 GB, free: 81.9 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.02236/0.8348, allocations: 7.854 MB / 0.732 GB, free: 73.98 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.8348, allocations: 8.031 kB / 0.732 GB, free: 73.97 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01611/0.8509, allocations: 3.054 MB / 0.735 GB, free: 70.9 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02097/0.8719, allocations: 9.808 MB / 0.7446 GB, free: 61.1 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004211/0.8724, allocations: 272 kB / 0.7448 GB, free: 60.84 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003477/0.8759, allocations: 499.9 kB / 0.7453 GB, free: 60.35 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0192/0.8951, allocations: 12.04 MB / 0.7571 GB, free: 48.3 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03094/0.926, allocations: 17.4 MB / 0.7741 GB, free: 29.38 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003473/0.9264, allocations: 99.05 kB / 0.7742 GB, free: 29.28 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002506/0.9289, allocations: 55.94 kB / 0.7742 GB, free: 29.23 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002528/0.9315, allocations: 1.989 MB / 0.7762 GB, free: 27.24 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2333/1.165, allocations: 83.66 MB / 0.8579 GB, free: 108.8 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003437/1.168, allocations: 3.106 MB / 0.8609 GB, free: 108.1 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001734/1.17, allocations: 1.698 MB / 0.8625 GB, free: 108.1 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0118/1.182, allocations: 8.102 MB / 0.8705 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/1.182, allocations: 54.41 kB / 0.8705 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=202): time 3.707e-06/1.182, allocations: 3.844 kB / 0.8705 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=202): time 0.0129/1.195, allocations: 4.75 MB / 0.8752 GB, free: 106 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/1.195, allocations: 154.6 kB / 0.8753 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007048/1.202, allocations: 5.378 MB / 0.8806 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002159/1.202, allocations: 25.7 kB / 0.8806 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002531/1.205, allocations: 5.501 MB / 0.886 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006186/1.205, allocations: 0.8085 MB / 0.8867 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002584/1.206, allocations: 0 / 0.8867 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003638/1.206, allocations: 0.6999 MB / 0.8874 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002682/1.209, allocations: 2.378 MB / 0.8897 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004553/1.213, allocations: 8.454 MB / 0.898 GB, free: 93.43 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004436/1.218, allocations: 4.451 MB / 0.9023 GB, free: 93.39 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.981e-05/1.218, allocations: 63.69 kB / 0.9024 GB, free: 93.39 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1219) (initialization): time 0.01192/1.23, allocations: 9.348 MB / 0.9115 GB, free: 91.24 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/1.23, allocations: 7.531 kB / 0.9115 GB, free: 91.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002124/1.23, allocations: 220.1 kB / 0.9118 GB, free: 91.23 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002319/1.23, allocations: 319 kB / 0.9121 GB, free: 91.23 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007015/1.237, allocations: 2.279 MB / 0.9143 GB, free: 90.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000234/1.237, allocations: 430.8 kB / 0.9147 GB, free: 90.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007748/1.245, allocations: 1.207 MB / 0.9159 GB, free: 90.23 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008164/1.246, allocations: 0.5736 MB / 0.9164 GB, free: 90.16 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.0009438/1.247, allocations: 0.6331 MB / 0.9171 GB, free: 89.63 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007058/1.248, allocations: 0.5439 MB / 0.9176 GB, free: 89.33 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003751/1.251, allocations: 2.373 MB / 0.9199 GB, free: 88.48 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-05/1.251, allocations: 18.38 kB / 0.9199 GB, free: 88.48 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/1.252, allocations: 7.219 kB / 0.9199 GB, free: 88.48 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.66e-05/1.252, allocations: 11.89 kB / 0.9199 GB, free: 88.48 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02954/1.281, allocations: 28.11 MB / 0.9474 GB, free: 74.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.087e-05/1.281, allocations: 35.94 kB / 0.9474 GB, free: 74.93 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001485/1.283, allocations: 360.3 kB / 0.9478 GB, free: 74.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.211e-05/1.283, allocations: 51.75 kB / 0.9478 GB, free: 74.58 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000144/1.283, allocations: 55.61 kB / 0.9479 GB, free: 74.53 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-05/1.283, allocations: 70.17 kB / 0.9479 GB, free: 74.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.051e-05/1.283, allocations: 51.75 kB / 0.948 GB, free: 74.41 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004473/1.287, allocations: 10.07 MB / 0.9578 GB, free: 63.14 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/1.288, allocations: 0.6211 MB / 0.9584 GB, free: 62.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006194/1.289, allocations: 54.31 kB / 0.9585 GB, free: 62.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002205/1.291, allocations: 139.3 kB / 0.9586 GB, free: 62.36 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000215/1.291, allocations: 206.9 kB / 0.9588 GB, free: 62.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001419/1.292, allocations: 99.66 kB / 0.9589 GB, free: 62.11 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.004384/1.296, allocations: 3.63 MB / 0.9625 GB, free: 58.96 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007262/1.303, allocations: 1.971 MB / 0.9644 GB, free: 56.98 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.0004727/1.304, allocations: 198.3 kB / 0.9646 GB, free: 56.79 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006743/1.311, allocations: 5.603 MB / 0.97 GB, free: 51.73 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.175e-05/1.311, allocations: 6.562 kB / 0.97 GB, free: 51.73 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001361/1.312, allocations: 1.262 MB / 0.9713 GB, free: 50.62 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002974/1.315, allocations: 0.6713 MB / 0.9719 GB, free: 50.05 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02495/1.34, allocations: 13.67 MB / 0.9853 GB, free: 37.22 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008764/1.349, allocations: 6.303 MB / 0.9914 GB, free: 32.54 MB / 0.4948 GB Notification: Performance of SimCode: time 9.12e-07/1.349, allocations: 0 / 0.9914 GB, free: 32.54 MB / 0.4948 GB Notification: Performance of Templates: time 0.2325/1.581, allocations: 46.35 MB / 1.037 GB, free: 120.6 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.MultiBody.Sensors.CutTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches