Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") [: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.0009923/0.0009924, allocations: 180.6 kB / 8.132 MB, free: 2.191 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.125/1.125, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0009096/0.0009096, allocations: 108.9 kB / 280.8 MB, free: 1.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.244e-06/7.274e-06, allocations: 0 / 336.5 MB, free: 9.484 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1925, allocations: 50.4 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1008/0.2934, allocations: 97.77 MB / 484.7 MB, free: 4.984 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002058/0.2936, allocations: 87.95 kB / 484.8 MB, free: 4.898 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.3436/0.6372, allocations: 90.6 MB / 0.5619 GB, free: 46.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002315/0.6375, allocations: 88 kB / 0.562 GB, free: 46.82 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1508 * Number of variables: 1508 Notification: Performance of Generate backend data structure: time 0.01051/0.648, allocations: 4.358 MB / 0.5662 GB, free: 42.4 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.6481, allocations: 12.03 kB / 0.5662 GB, free: 42.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02331/0.6714, allocations: 6.327 MB / 0.5724 GB, free: 36.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0143/0.6857, allocations: 5.86 MB / 0.5781 GB, free: 30.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001319/0.6859, allocations: 136 kB / 0.5783 GB, free: 29.99 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001122/0.687, allocations: 255.9 kB / 0.5785 GB, free: 29.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008058/0.6951, allocations: 6.197 MB / 0.5846 GB, free: 23.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01009/0.7052, allocations: 9.383 MB / 0.5937 GB, free: 13.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001295/0.7054, allocations: 63.36 kB / 0.5938 GB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004531/0.7058, allocations: 28 kB / 0.5938 GB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000938/0.7068, allocations: 1.049 MB / 0.5948 GB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04422/0.751, allocations: 44.45 MB / 0.6382 GB, free: 14.29 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003875/0.7549, allocations: 3.272 MB / 0.6414 GB, free: 10.87 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002421/0.7574, allocations: 2.212 MB / 0.6436 GB, free: 8.652 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01002/0.7674, allocations: 6.87 MB / 0.6503 GB, free: 1.461 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.814e-05/0.7675, allocations: 51.56 kB / 0.6504 GB, free: 1.402 MB / 426.7 MB Notification: Performance of pre-optimization done (n=160): time 3.737e-06/0.7675, allocations: 3.938 kB / 0.6504 GB, free: 1.398 MB / 426.7 MB Notification: Performance of matching and sorting (n=199): time 0.1824/0.9499, allocations: 18.97 MB / 0.6689 GB, free: 129.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.665e-05/0.95, allocations: 259.5 kB / 0.6691 GB, free: 129.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004131/0.9542, allocations: 3.234 MB / 0.6723 GB, free: 128.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003118/0.9545, allocations: 25.7 kB / 0.6723 GB, free: 128.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001251/0.9558, allocations: 2.916 MB / 0.6752 GB, free: 127.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006797/0.9565, allocations: 0.7421 MB / 0.6759 GB, free: 126.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002391/0.9567, allocations: 0 / 0.6759 GB, free: 126.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002475/0.957, allocations: 0.5587 MB / 0.6764 GB, free: 126.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002471/0.9594, allocations: 2.167 MB / 0.6786 GB, free: 126.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003742/0.9632, allocations: 5.738 MB / 0.6842 GB, free: 121.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004127/0.9673, allocations: 3.512 MB / 0.6876 GB, free: 121.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.844e-05/0.9674, allocations: 38.88 kB / 0.6876 GB, free: 121.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=785) (initialization): time 0.01527/0.9827, allocations: 8.634 MB / 0.6961 GB, free: 121.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.9827, allocations: 10.5 kB / 0.6961 GB, free: 121.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001283/0.9829, allocations: 125.3 kB / 0.6962 GB, free: 121.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005403/0.9883, allocations: 1.9 MB / 0.698 GB, free: 121.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004022/0.9923, allocations: 1.286 MB / 0.6993 GB, free: 121.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0172/1.01, allocations: 13.63 MB / 0.7126 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004736/1.014, allocations: 194.4 kB / 0.7128 GB, free: 114.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001069/1.015, allocations: 369.3 kB / 0.7131 GB, free: 114.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 35 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.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 (697): * Single equations (assignments): 691 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,72.0%) 33,(3,88.9%) 11} * Non-linear torn systems: 1 {2 13} Notification: Performance of prepare postOptimizeDAE: time 0.000939/1.016, allocations: 416.5 kB / 0.7135 GB, free: 114.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006978/1.017, allocations: 348.7 kB / 0.7139 GB, free: 114.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007117/1.024, allocations: 4.009 MB / 0.7178 GB, free: 112.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.411e-05/1.024, allocations: 18.25 kB / 0.7178 GB, free: 112.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.56e-05/1.024, allocations: 11.12 kB / 0.7178 GB, free: 112.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.89e-05/1.024, allocations: 13.55 kB / 0.7178 GB, free: 112.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01425/1.039, allocations: 8.645 MB / 0.7263 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.121e-05/1.039, allocations: 0 / 0.7263 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001384/1.04, allocations: 266 kB / 0.7265 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003376/1.043, allocations: 1.153 MB / 0.7277 GB, free: 106.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002135/1.044, allocations: 15.81 kB / 0.7277 GB, free: 106.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008277/1.052, allocations: 6.782 MB / 0.7343 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/1.052, allocations: 6.953 kB / 0.7343 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009176/1.061, allocations: 7.015 MB / 0.7411 GB, free: 94.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/1.062, allocations: 381 kB / 0.7415 GB, free: 94.41 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005904/1.063, allocations: 0 / 0.7415 GB, free: 94.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001454/1.064, allocations: 64.61 kB / 0.7416 GB, free: 94.37 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002218/1.065, allocations: 86.81 kB / 0.7417 GB, free: 94.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001478/1.065, allocations: 59.06 kB / 0.7417 GB, free: 94.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002938/1.068, allocations: 2.197 MB / 0.7439 GB, free: 92.37 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004987/1.073, allocations: 0.9467 MB / 0.7448 GB, free: 91.43 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 141 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,72.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004416/1.073, allocations: 145.8 kB / 0.7449 GB, free: 91.29 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00811/1.081, allocations: 5.729 MB / 0.7505 GB, free: 86.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/1.081, allocations: 0 / 0.7505 GB, free: 86.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003209/1.084, allocations: 2.011 MB / 0.7525 GB, free: 84.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0026/1.087, allocations: 448.2 kB / 0.7529 GB, free: 83.94 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01539/1.102, allocations: 8.447 MB / 0.7612 GB, free: 76.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004493/1.107, allocations: 3.791 MB / 0.7649 GB, free: 73.43 MB / 426.7 MB Notification: Performance of SimCode: time 9.52e-07/1.107, allocations: 0 / 0.7649 GB, free: 73.43 MB / 426.7 MB Notification: Performance of Templates: time 0.07064/1.178, allocations: 45.08 MB / 0.8089 GB, free: 33.37 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulumInitTip/DoublePendulumInitTip.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches