Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.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.Forces.Torque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2") translateModel(ModelicaTest.MultiBody.Forces.Torque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2") [: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.001562/0.001562, allocations: 170.2 kB / 8.147 MB, free: 2.223 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.866/1.866, 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.001753/0.001752, allocations: 97.52 kB / 261.8 MB, free: 13.62 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.2594/0.2594, allocations: 43.49 MB / 353.2 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.398e-06/9.618e-06, allocations: 4 kB / 417.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2868/0.2869, allocations: 58.84 MB / 476.5 MB, free: 5.09 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2176/0.5045, allocations: 110.7 MB / 0.5735 GB, free: 4.285 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002936/0.5049, allocations: 79.45 kB / 0.5736 GB, free: 4.211 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.137/1.642, allocations: 233.4 MB / 0.8015 GB, free: 4.051 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0008853/1.643, allocations: 252 kB / 0.8017 GB, free: 3.805 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: 4457 * Number of variables: 4457 Notification: Performance of Generate backend data structure: time 0.05522/1.699, allocations: 12.31 MB / 0.8137 GB, free: 7.379 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/1.699, allocations: 8.031 kB / 0.8137 GB, free: 7.371 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2923/1.991, allocations: 12.38 MB / 0.8258 GB, free: 89.28 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04774/2.039, allocations: 13.42 MB / 0.8389 GB, free: 88.68 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000831/2.04, allocations: 416.7 kB / 0.8393 GB, free: 88.68 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00661/2.046, allocations: 0.7529 MB / 0.8401 GB, free: 88.67 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04904/2.095, allocations: 18.1 MB / 0.8577 GB, free: 88.61 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0736/2.169, allocations: 26.58 MB / 0.8837 GB, free: 82.58 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009343/2.17, allocations: 147.3 kB / 0.8838 GB, free: 82.57 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005927/2.176, allocations: 68.78 kB / 0.8839 GB, free: 82.57 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0062/2.182, allocations: 3.047 MB / 0.8869 GB, free: 82.54 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4475/2.63, allocations: 124.1 MB / 1.008 GB, free: 40.27 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02253/2.652, allocations: 11.47 MB / 1.019 GB, free: 38.97 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01616/2.669, allocations: 8.183 MB / 1.027 GB, free: 38.89 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06347/2.732, allocations: 22.24 MB / 1.049 GB, free: 35.28 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001236/2.732, allocations: 97.14 kB / 1.049 GB, free: 35.23 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=510): time 1.533e-05/2.732, allocations: 2.969 kB / 1.049 GB, free: 35.23 MB / 0.4948 GB Notification: Performance of matching and sorting (n=596): time 0.2296/2.962, allocations: 56.84 MB / 1.105 GB, free: 18.99 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001414/2.962, allocations: 375.9 kB / 1.105 GB, free: 18.61 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02459/2.987, allocations: 8.327 MB / 1.113 GB, free: 15.62 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001779/2.989, allocations: 25.7 kB / 1.113 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005928/2.994, allocations: 7.569 MB / 1.121 GB, free: 9.703 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004421/2.999, allocations: 2.15 MB / 1.123 GB, free: 8.098 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003276/3.002, allocations: 0 / 1.123 GB, free: 8.098 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.00234/3.005, allocations: 0.9865 MB / 1.124 GB, free: 7.473 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01988/3.025, allocations: 6.606 MB / 1.13 GB, free: 1.551 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0617/3.086, allocations: 17.04 MB / 1.147 GB, free: 3.676 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02802/3.114, allocations: 9.984 MB / 1.156 GB, free: 11.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003764/3.115, allocations: 88 kB / 1.157 GB, free: 11.61 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2070) (initialization): time 0.07962/3.194, allocations: 22.57 MB / 1.179 GB, free: 9.582 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.059e-05/3.195, allocations: 8 kB / 1.179 GB, free: 9.574 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006454/3.195, allocations: 307.9 kB / 1.179 GB, free: 9.273 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01563/3.211, allocations: 3.038 MB / 1.182 GB, free: 6.945 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02908/3.24, allocations: 3.746 MB / 1.185 GB, free: 3.73 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2711/3.511, allocations: 20.82 MB / 1.206 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01763/3.529, allocations: 0.4965 MB / 1.206 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004754/3.534, allocations: 0.9183 MB / 1.207 GB, free: 124 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1400 * Number of states: 0 () * Number of discrete variables: 120 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (1950): * Single equations (assignments): 1943 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00719/3.541, allocations: 0.8259 MB / 1.208 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004259/3.545, allocations: 0.9041 MB / 1.209 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0465/3.592, allocations: 13.45 MB / 1.222 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001782/3.592, allocations: 63.56 kB / 1.222 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.971e-05/3.592, allocations: 17.91 kB / 1.222 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001535/3.592, allocations: 26.16 kB / 1.222 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09348/3.686, allocations: 27.37 MB / 1.249 GB, free: 122.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.86e-05/3.686, allocations: 9.875 kB / 1.249 GB, free: 122.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01268/3.698, allocations: 1.041 MB / 1.25 GB, free: 122.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01413/3.713, allocations: 2.628 MB / 1.252 GB, free: 122.8 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001886/3.715, allocations: 14.89 kB / 1.252 GB, free: 122.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04478/3.759, allocations: 19.25 MB / 1.271 GB, free: 115.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/3.759, allocations: 2.625 kB / 1.271 GB, free: 115.8 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06096/3.82, allocations: 21.68 MB / 1.292 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00849/3.829, allocations: 1.886 MB / 1.294 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004838/3.834, allocations: 7.469 kB / 1.294 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01146/3.845, allocations: 226 kB / 1.295 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00243/3.848, allocations: 283 kB / 1.295 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001982/3.85, allocations: 148.2 kB / 1.295 GB, free: 107 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.01789/3.868, allocations: 5.644 MB / 1.3 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02308/3.891, allocations: 2.632 MB / 1.303 GB, free: 105.1 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (507): * Single equations (assignments): 500 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002498/3.893, allocations: 187.8 kB / 1.303 GB, free: 105 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.03928/3.933, allocations: 15.97 MB / 1.319 GB, free: 96.52 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.746e-06/3.933, allocations: 0 / 1.319 GB, free: 96.52 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01915/3.952, allocations: 6.583 MB / 1.325 GB, free: 90.7 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01073/3.963, allocations: 0.9327 MB / 1.326 GB, free: 89.91 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08688/4.05, allocations: 26.5 MB / 1.352 GB, free: 66.81 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03236/4.082, allocations: 9.651 MB / 1.361 GB, free: 59.74 MB / 0.5417 GB Notification: Performance of SimCode: time 1.492e-06/4.082, allocations: 2.953 kB / 1.361 GB, free: 59.74 MB / 0.5417 GB Notification: Performance of Templates: time 1.157/5.239, allocations: 368.3 MB / 1.721 GB, free: 58.23 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Torque2/Torque2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches