Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.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.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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 169.7 kB / 8.519 MB, free: 1.844 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.217/1.217, allocations: 221.4 MB / 230.3 MB, free: 7.625 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.00105/0.00105, allocations: 90.05 kB / 281.2 MB, free: 5.445 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.1697/0.1697, allocations: 44.14 MB / 376.1 MB, free: 3.219 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.491e-06/5.531e-06, allocations: 224 / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1088, allocations: 61.91 MB / 0.4941 GB, free: 1.625 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2736/0.3825, allocations: 105.2 MB / 0.5968 GB, free: 7.574 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002044/0.3827, allocations: 79.95 kB / 0.5969 GB, free: 7.496 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.5246/0.9073, allocations: 146 MB / 0.7395 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002345/0.9076, allocations: 142.9 kB / 0.7396 GB, free: 102.5 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2587 * Number of variables: 2587 Notification: Performance of Generate backend data structure: time 0.01756/0.9252, allocations: 7.244 MB / 0.7467 GB, free: 99.63 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.9252, allocations: 13.62 kB / 0.7467 GB, free: 99.62 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01537/0.9406, allocations: 2.895 MB / 0.7495 GB, free: 99.07 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0193/0.96, allocations: 8.862 MB / 0.7582 GB, free: 98.07 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002966/0.9603, allocations: 245.5 kB / 0.7584 GB, free: 98.06 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002358/0.9627, allocations: 455.5 kB / 0.7588 GB, free: 98.05 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01871/0.9814, allocations: 10.69 MB / 0.7693 GB, free: 95.46 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03394/1.015, allocations: 15.62 MB / 0.7845 GB, free: 86.48 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002936/1.016, allocations: 91.12 kB / 0.7846 GB, free: 86.39 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001869/1.018, allocations: 44 kB / 0.7847 GB, free: 86.35 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00224/1.02, allocations: 1.721 MB / 0.7863 GB, free: 84.95 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07963/1.099, allocations: 77.67 MB / 0.8622 GB, free: 8.312 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002957/1.102, allocations: 2.452 MB / 0.8646 GB, free: 5.711 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001454/1.104, allocations: 1.33 MB / 0.8659 GB, free: 4.371 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01247/1.116, allocations: 6.729 MB / 0.8725 GB, free: 13.43 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.865e-05/1.117, allocations: 51.16 kB / 0.8725 GB, free: 13.37 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=134): time 4.659e-06/1.117, allocations: 0 / 0.8725 GB, free: 13.37 MB / 0.5105 GB Notification: Performance of matching and sorting (n=134): time 0.01269/1.129, allocations: 3.808 MB / 0.8762 GB, free: 9.547 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/1.129, allocations: 141.2 kB / 0.8764 GB, free: 9.379 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008661/1.138, allocations: 5.022 MB / 0.8813 GB, free: 4.352 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002679/1.138, allocations: 25.7 kB / 0.8813 GB, free: 4.32 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00337/1.142, allocations: 4.965 MB / 0.8861 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007645/1.142, allocations: 0.5716 MB / 0.8867 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002878/1.143, allocations: 0 / 0.8867 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004258/1.143, allocations: 0.6451 MB / 0.8873 GB, free: 14.05 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002763/1.146, allocations: 1.96 MB / 0.8892 GB, free: 12.08 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005761/1.152, allocations: 7.426 MB / 0.8965 GB, free: 1.859 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1712/1.323, allocations: 3.776 MB / 0.9002 GB, free: 173.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.891e-05/1.323, allocations: 59.44 kB / 0.9002 GB, free: 173.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1055) (initialization): time 0.0141/1.337, allocations: 7.991 MB / 0.908 GB, free: 173.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/1.337, allocations: 3.281 kB / 0.908 GB, free: 173.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000201/1.337, allocations: 199.8 kB / 0.9082 GB, free: 173.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002451/1.338, allocations: 288.3 kB / 0.9085 GB, free: 173.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006191/1.344, allocations: 1.976 MB / 0.9104 GB, free: 173.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001933/1.344, allocations: 385.6 kB / 0.9108 GB, free: 173 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007251/1.351, allocations: 1.078 MB / 0.9119 GB, free: 173 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001134/1.353, allocations: 0.507 MB / 0.9124 GB, free: 173 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 907 * Number of states: 0 () * Number of discrete variables: 68 (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.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2b.torqueArrow.headAtOrigin,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.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1b.torqueArrow.headAtOrigin,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.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2a.torqueArrow.headAtOrigin,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.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1a.torqueArrow.headAtOrigin,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 (1031): * Single equations (assignments): 1028 * 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.001387/1.354, allocations: 0.5836 MB / 0.9129 GB, free: 172.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008478/1.355, allocations: 0.4902 MB / 0.9134 GB, free: 172.7 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001223/1.356, allocations: 0.5727 MB / 0.914 GB, free: 172.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.394e-05/1.356, allocations: 15.22 kB / 0.914 GB, free: 172.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.467e-06/1.356, allocations: 10.5 kB / 0.914 GB, free: 172.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/1.356, allocations: 3.938 kB / 0.914 GB, free: 172.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01777/1.374, allocations: 12.94 MB / 0.9266 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.329e-05/1.374, allocations: 15 kB / 0.9266 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009259/1.375, allocations: 214.3 kB / 0.9268 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.343e-05/1.375, allocations: 25.75 kB / 0.9269 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.511e-05/1.375, allocations: 34.05 kB / 0.9269 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-05/1.375, allocations: 44.47 kB / 0.9269 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.466e-05/1.375, allocations: 27.75 kB / 0.927 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003364/1.378, allocations: 5.777 MB / 0.9326 GB, free: 166.6 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001112/1.38, allocations: 0.5404 MB / 0.9331 GB, free: 166.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007049/1.38, allocations: 26.62 kB / 0.9332 GB, free: 166.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001909/1.382, allocations: 120.5 kB / 0.9333 GB, free: 166.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001612/1.382, allocations: 108.8 kB / 0.9334 GB, free: 166.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001086/1.382, allocations: 62.8 kB / 0.9334 GB, free: 166.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.005404/1.388, allocations: 3.384 MB / 0.9367 GB, free: 166 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008349/1.396, allocations: 1.73 MB / 0.9384 GB, free: 165.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 83 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 107 * 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.0005267/1.397, allocations: 173.3 kB / 0.9386 GB, free: 165.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00647/1.403, allocations: 4.562 MB / 0.9431 GB, free: 165.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.371e-05/1.403, allocations: 3.25 kB / 0.9431 GB, free: 165.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009561/1.404, allocations: 0.8411 MB / 0.9439 GB, free: 165.2 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003226/1.408, allocations: 0.6538 MB / 0.9445 GB, free: 165.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02156/1.429, allocations: 11.49 MB / 0.9557 GB, free: 161 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006528/1.436, allocations: 5.679 MB / 0.9613 GB, free: 159.3 MB / 0.5261 GB Notification: Performance of SimCode: time 1.573e-06/1.436, allocations: 0 / 0.9613 GB, free: 159.3 MB / 0.5261 GB Notification: Performance of Templates: time 0.08201/1.518, allocations: 39.38 MB / 0.9997 GB, free: 141.6 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque/CutTorque.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches