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.001299/0.001304, allocations: 102.4 kB / 16.5 MB, free: 6.652 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.001355/0.001355, allocations: 195.1 kB / 17.42 MB, free: 6.062 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.342/1.342, allocations: 222.9 MB / 241.1 MB, free: 15.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009671/0.0009671, allocations: 43.59 kB / 299.9 MB, free: 6.289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08189/0.08287, allocations: 49.45 MB / 349.4 MB, free: 4.836 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.1983/0.2812, allocations: 50.37 MB / 399.8 MB, free: 13.26 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02527/0.3065, allocations: 10.82 MB / 410.6 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01023/0.3168, allocations: 230.6 kB / 410.8 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005583/0.3224, allocations: 2.865 MB / 413.7 MB, free: 3.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005575/0.328, allocations: 1.856 MB / 415.5 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002288/0.3303, allocations: 0.9812 MB / 416.5 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009758/0.3401, allocations: 7.837 MB / 424.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004824/0.345, allocations: 3.928 MB / 428.3 MB, free: 5.965 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002599/0.3476, allocations: 1.51 MB / 429.8 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00283/0.3504, allocations: 2.477 MB / 432.3 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005129/0.351, allocations: 248 kB / 432.5 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002025/0.353, allocations: 1.197 MB / 433.7 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001688/0.3547, allocations: 2.041 MB / 435.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001934/0.3566, allocations: 2.291 MB / 438 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006813/0.3635, allocations: 7.383 MB / 445.4 MB, free: 4.766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.3635, allocations: 0 / 445.4 MB, free: 4.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3635, allocations: 0 / 445.4 MB, free: 4.766 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001873/0.3637, allocations: 0 / 445.4 MB, free: 4.766 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.01159/0.3753, allocations: 5.244 MB / 450.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.3754, allocations: 8.031 kB / 450.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02311/0.3985, allocations: 3.17 MB / 453.8 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008114/0.4066, allocations: 3.524 MB / 457.4 MB, free: 8.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000212/0.4069, allocations: 246.1 kB / 457.6 MB, free: 8.438 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009057/0.4078, allocations: 331.7 kB / 457.9 MB, free: 8.113 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01647/0.4243, allocations: 10.02 MB / 468 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001259/0.4245, allocations: 51.55 kB / 468 MB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003894/0.4249, allocations: 151.9 kB / 468.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003173/0.428, allocations: 1.963 MB / 470.1 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01648/0.4445, allocations: 8.582 MB / 478.7 MB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04874/0.4933, allocations: 38.84 MB / 0.5054 GB, free: 10.72 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008163/0.5015, allocations: 3.947 MB / 0.5093 GB, free: 6.629 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002561/0.5041, allocations: 2.187 MB / 0.5114 GB, free: 4.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006091/0.5047, allocations: 0.6516 MB / 0.512 GB, free: 3.668 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.049e-05/0.5048, allocations: 51.78 kB / 0.5121 GB, free: 3.609 MB / 430.1 MB Notification: Performance of pre-optimization done (n=166): time 3.547e-06/0.5048, allocations: 3.938 kB / 0.5121 GB, free: 3.605 MB / 430.1 MB Notification: Performance of matching and sorting (n=201): time 0.2272/0.732, allocations: 22.57 MB / 0.5341 GB, free: 151.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.32e-05/0.7321, allocations: 250.9 kB / 0.5344 GB, free: 151.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005269/0.7374, allocations: 4.172 MB / 0.5384 GB, free: 150.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002944/0.7377, allocations: 60.23 kB / 0.5385 GB, free: 150.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001507/0.7392, allocations: 3.117 MB / 0.5415 GB, free: 148.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006243/0.7398, allocations: 0.7685 MB / 0.5423 GB, free: 147.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001468/0.7413, allocations: 1.254 MB / 0.5435 GB, free: 147.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.371e-05/0.7413, allocations: 301.1 kB / 0.5438 GB, free: 146.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003211/0.7446, allocations: 2.494 MB / 0.5462 GB, free: 146 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004088/0.7487, allocations: 5.98 MB / 0.5521 GB, free: 140.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007462/0.7561, allocations: 9.069 MB / 0.5609 GB, free: 133.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.411e-05/0.7562, allocations: 33.72 kB / 0.561 GB, free: 133.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=797) (initialization): time 0.01648/0.7727, allocations: 10.54 MB / 0.5713 GB, free: 129.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.579e-05/0.7728, allocations: 59.94 kB / 0.5713 GB, free: 129.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.449e-05/0.7729, allocations: 124.9 kB / 0.5714 GB, free: 129.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006581/0.7795, allocations: 2.598 MB / 0.574 GB, free: 126.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004036/0.7836, allocations: 1.302 MB / 0.5752 GB, free: 125.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01805/0.8016, allocations: 17.25 MB / 0.5921 GB, free: 107.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004369/0.806, allocations: 371.2 kB / 0.5924 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004748/0.8065, allocations: 363.5 kB / 0.5928 GB, free: 106.8 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.002461/0.809, allocations: 2.166 MB / 0.5949 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005465/0.8095, allocations: 371.2 kB / 0.5953 GB, free: 104.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007954/0.8175, allocations: 5.026 MB / 0.6002 GB, free: 99.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.467e-05/0.8176, allocations: 24 kB / 0.6002 GB, free: 99.23 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.605e-05/0.8176, allocations: 19.86 kB / 0.6002 GB, free: 99.21 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.532e-05/0.8176, allocations: 7.969 kB / 0.6002 GB, free: 99.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01482/0.8324, allocations: 10.83 MB / 0.6108 GB, free: 88.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.8325, allocations: 4 kB / 0.6108 GB, free: 88.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001222/0.8337, allocations: 283.5 kB / 0.6111 GB, free: 88.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004645/0.8383, allocations: 1.846 MB / 0.6129 GB, free: 86.19 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001716/0.8385, allocations: 32 kB / 0.6129 GB, free: 86.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01038/0.8489, allocations: 9.726 MB / 0.6224 GB, free: 76.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.8489, allocations: 64 / 0.6224 GB, free: 76.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0107/0.8596, allocations: 8.167 MB / 0.6304 GB, free: 68.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009276/0.8606, allocations: 434 kB / 0.6308 GB, free: 67.66 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004522/0.8611, allocations: 32 kB / 0.6308 GB, free: 67.63 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001558/0.8626, allocations: 135.8 kB / 0.6309 GB, free: 67.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003766/0.863, allocations: 121.1 kB / 0.6311 GB, free: 67.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001443/0.8632, allocations: 55.58 kB / 0.6311 GB, free: 67.33 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002979/0.8661, allocations: 2.62 MB / 0.6337 GB, free: 64.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.8662, allocations: 0 / 0.6337 GB, free: 64.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004212/0.8704, allocations: 1.185 MB / 0.6348 GB, free: 63.52 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.0003481/0.8707, allocations: 173.6 kB / 0.635 GB, free: 63.35 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007409/0.8781, allocations: 6.48 MB / 0.6413 GB, free: 56.85 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.8782, allocations: 4 kB / 0.6413 GB, free: 56.84 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002362/0.8805, allocations: 2.159 MB / 0.6434 GB, free: 54.67 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002923/0.8835, allocations: 0.5399 MB / 0.644 GB, free: 54.15 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01426/0.8977, allocations: 12.56 MB / 0.6562 GB, free: 41.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002762/0.9006, allocations: 3.446 MB / 0.6596 GB, free: 38.09 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003947/0.9045, allocations: 1.88 MB / 0.6614 GB, free: 36.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007255/0.9053, allocations: 255.4 kB / 0.6617 GB, free: 35.95 MB / 446.1 MB Notification: Performance of SimCode: time 8.52e-07/0.9053, allocations: 0 / 0.6617 GB, free: 35.95 MB / 446.1 MB Notification: Performance of Templates: time 0.2319/1.137, allocations: 49.81 MB / 0.7103 GB, free: 126.9 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