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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009541/0.0009542, allocations: 88.81 kB / 16.65 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 181.4 kB / 17.56 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 223.2 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002832/0.0002833, allocations: 11.94 kB / 301.4 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08851/0.08881, allocations: 50.42 MB / 351.8 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.2008/0.2896, allocations: 49.05 MB / 400.9 MB, free: 14.04 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02393/0.3136, allocations: 10.77 MB / 411.7 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008056/0.3217, allocations: 222.6 kB / 411.9 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001476/0.3232, allocations: 476.8 kB / 412.3 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004541/0.3278, allocations: 1.867 MB / 414.2 MB, free: 4.855 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001562/0.3293, allocations: 0.738 MB / 414.9 MB, free: 4.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009285/0.3386, allocations: 7.836 MB / 422.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007645/0.3463, allocations: 5.367 MB / 428.1 MB, free: 7.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002087/0.3484, allocations: 1.264 MB / 429.4 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002676/0.3511, allocations: 2.149 MB / 431.6 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004012/0.3515, allocations: 148 kB / 431.7 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001884/0.3534, allocations: 1.104 MB / 432.8 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001668/0.3551, allocations: 1.893 MB / 434.7 MB, free: 1.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0018/0.3569, allocations: 2.121 MB / 436.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006907/0.3638, allocations: 7.167 MB / 444 MB, free: 8.008 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.3639, allocations: 3.984 kB / 444 MB, free: 8.004 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3639, allocations: 3.938 kB / 444 MB, free: 8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002032/0.3641, allocations: 0 / 444 MB, free: 8 MB / 350.1 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.008854/0.373, allocations: 4.328 MB / 448.3 MB, free: 3.602 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.373, allocations: 8.031 kB / 448.3 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02865/0.4017, allocations: 3.256 MB / 451.6 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007871/0.4096, allocations: 3.52 MB / 455.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001743/0.4098, allocations: 246.1 kB / 455.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007327/0.4105, allocations: 327.7 kB / 455.7 MB, free: 12.19 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01511/0.4256, allocations: 10.04 MB / 465.7 MB, free: 1.504 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001198/0.4258, allocations: 51.55 kB / 465.8 MB, free: 1.453 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004023/0.4262, allocations: 155.9 kB / 465.9 MB, free: 1.301 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003409/0.4296, allocations: 1.959 MB / 467.9 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01525/0.4449, allocations: 8.606 MB / 476.5 MB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04328/0.4882, allocations: 38.87 MB / 0.5033 GB, free: 14.73 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008723/0.4969, allocations: 3.943 MB / 0.5071 GB, free: 10.64 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002743/0.4997, allocations: 2.194 MB / 0.5093 GB, free: 8.434 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006548/0.5004, allocations: 0.6516 MB / 0.5099 GB, free: 7.672 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.681e-05/0.5004, allocations: 47.56 kB / 0.5099 GB, free: 7.617 MB / 430.1 MB Notification: Performance of pre-optimization done (n=166): time 5.33e-06/0.5004, allocations: 4 kB / 0.5099 GB, free: 7.613 MB / 430.1 MB Notification: Performance of matching and sorting (n=201): time 0.06312/0.5636, allocations: 22.58 MB / 0.532 GB, free: 0.8906 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/0.5637, allocations: 252.6 kB / 0.5322 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1754/0.7392, allocations: 4.174 MB / 0.5363 GB, free: 151.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005831/0.7398, allocations: 55.5 kB / 0.5364 GB, free: 151.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002395/0.7422, allocations: 3.117 MB / 0.5394 GB, free: 149.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001064/0.7433, allocations: 0.7691 MB / 0.5402 GB, free: 149.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00079/0.7441, allocations: 0.531 MB / 0.5407 GB, free: 148.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.49e-05/0.7441, allocations: 306.7 kB / 0.541 GB, free: 148.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00412/0.7482, allocations: 2.49 MB / 0.5434 GB, free: 147.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005512/0.7538, allocations: 5.975 MB / 0.5492 GB, free: 142.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009696/0.7635, allocations: 9.068 MB / 0.5581 GB, free: 135.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001375/0.7636, allocations: 39.34 kB / 0.5581 GB, free: 135.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=797) (initialization): time 0.01831/0.782, allocations: 10.54 MB / 0.5684 GB, free: 131.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001009/0.7821, allocations: 58.31 kB / 0.5685 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001237/0.7822, allocations: 125.9 kB / 0.5686 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006753/0.789, allocations: 2.588 MB / 0.5711 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003625/0.7926, allocations: 1.305 MB / 0.5724 GB, free: 128.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01834/0.811, allocations: 17.27 MB / 0.5893 GB, free: 111.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004346/0.8153, allocations: 364 kB / 0.5896 GB, free: 111.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004251/0.8158, allocations: 364.6 kB / 0.59 GB, free: 110.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (709): * Single equations (assignments): 703 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,35,100.0%), (3,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,13)} Notification: Performance of prepare postOptimizeDAE: time 0.002509/0.8183, allocations: 2.171 MB / 0.5921 GB, free: 108.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004655/0.8188, allocations: 371.2 kB / 0.5924 GB, free: 108.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008201/0.827, allocations: 5.022 MB / 0.5973 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.212e-05/0.827, allocations: 22.89 kB / 0.5974 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.827, allocations: 8 kB / 0.5974 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/0.8271, allocations: 11.97 kB / 0.5974 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01436/0.8414, allocations: 10.84 MB / 0.608 GB, free: 92.22 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/0.8415, allocations: 3.188 kB / 0.608 GB, free: 92.22 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/0.8427, allocations: 287.6 kB / 0.6082 GB, free: 91.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004615/0.8473, allocations: 1.848 MB / 0.6101 GB, free: 90.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001591/0.8475, allocations: 33.25 kB / 0.6101 GB, free: 90.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01032/0.8578, allocations: 9.71 MB / 0.6196 GB, free: 80.21 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.8578, allocations: 3.938 kB / 0.6196 GB, free: 80.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0106/0.8684, allocations: 8.178 MB / 0.6276 GB, free: 72 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001161/0.8696, allocations: 436.1 kB / 0.628 GB, free: 71.55 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003972/0.87, allocations: 28.33 kB / 0.628 GB, free: 71.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001579/0.8716, allocations: 147.8 kB / 0.6281 GB, free: 71.38 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003449/0.872, allocations: 117.1 kB / 0.6283 GB, free: 71.26 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001299/0.8721, allocations: 49.48 kB / 0.6283 GB, free: 71.21 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002994/0.8751, allocations: 2.623 MB / 0.6309 GB, free: 68.58 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.11e-07/0.8751, allocations: 4 kB / 0.6309 GB, free: 68.58 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004213/0.8793, allocations: 1.185 MB / 0.632 GB, free: 67.4 MB / 446.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (147): * Single equations (assignments): 143 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,33,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003441/0.8797, allocations: 171.8 kB / 0.6322 GB, free: 67.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007449/0.8871, allocations: 6.49 MB / 0.6385 GB, free: 60.72 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.8872, allocations: 3.938 kB / 0.6385 GB, free: 60.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00226/0.8894, allocations: 2.148 MB / 0.6406 GB, free: 58.55 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003317/0.8928, allocations: 0.5308 MB / 0.6411 GB, free: 58.03 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01309/0.9059, allocations: 12.65 MB / 0.6535 GB, free: 45.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002789/0.9087, allocations: 3.438 MB / 0.6569 GB, free: 41.87 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003878/0.9126, allocations: 1.888 MB / 0.6587 GB, free: 39.97 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006447/0.9132, allocations: 243.4 kB / 0.6589 GB, free: 39.73 MB / 446.1 MB Notification: Performance of SimCode: time 6.11e-07/0.9132, allocations: 0 / 0.6589 GB, free: 39.73 MB / 446.1 MB Notification: Performance of Templates: time 0.2318/1.145, allocations: 48.86 MB / 0.7066 GB, free: 130.8 MB / 446.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches