Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009682/0.0009682, allocations: 172.4 kB / 24.91 MB, free: 8.266 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9445/0.9445, allocations: 177.1 MB / 205.3 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 273.5 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.023e-05/2.137e-05, allocations: 5.125 kB / 273.5 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.009435/0.009457, allocations: 11.19 MB / 284.7 MB, free: 6.012 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006673/0.01613, allocations: 4.412 MB / 289.1 MB, free: 1.582 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001174/0.0173, allocations: 95.44 kB / 289.2 MB, free: 1.488 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1211/0.1384, allocations: 3.014 MB / 292.2 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00494/0.1434, allocations: 2.062 MB / 294.3 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001789/0.1451, allocations: 1.145 MB / 295.4 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006432/0.1516, allocations: 6.317 MB / 301.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00371/0.1553, allocations: 3.561 MB / 305.3 MB, free: 11.92 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003418/0.1587, allocations: 3.531 MB / 308.8 MB, free: 10.02 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00266/0.1614, allocations: 2.502 MB / 311.3 MB, free: 8.809 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005047/0.1619, allocations: 372.6 kB / 311.7 MB, free: 8.809 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001357/0.1632, allocations: 1.226 MB / 312.9 MB, free: 7.707 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009884/0.1642, allocations: 2.251 MB / 315.2 MB, free: 5.531 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001014/0.1652, allocations: 1.392 MB / 316.6 MB, free: 4.199 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003537/0.1688, allocations: 5.017 MB / 321.6 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1688, allocations: 4 kB / 321.6 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1688, allocations: 4 kB / 321.6 MB, free: 15.49 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.368e-05/0.1688, allocations: 0 / 321.6 MB, free: 15.49 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1479 * Number of variables: 1479 Notification: Performance of Generate backend data structure: time 0.004666/0.1735, allocations: 4.853 MB / 326.4 MB, free: 10.99 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.188e-05/0.1735, allocations: 12.03 kB / 326.4 MB, free: 10.98 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0036/0.1771, allocations: 1.306 MB / 327.8 MB, free: 9.723 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002755/0.1799, allocations: 2.314 MB / 330.1 MB, free: 7.523 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.18, allocations: 242 kB / 330.3 MB, free: 7.32 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003348/0.1803, allocations: 322.5 kB / 330.6 MB, free: 7.043 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004602/0.1849, allocations: 4.9 MB / 335.5 MB, free: 1.906 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-05/0.185, allocations: 54.28 kB / 335.6 MB, free: 1.875 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002465/0.1852, allocations: 151.9 kB / 335.7 MB, free: 1.762 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001577/0.1868, allocations: 1.631 MB / 337.4 MB, free: 156 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003547/0.1904, allocations: 2.408 MB / 339.8 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02118/0.2115, allocations: 29.68 MB / 369.4 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002677/0.2142, allocations: 1.347 MB / 370.8 MB, free: 14.51 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003637/0.2146, allocations: 328 kB / 371.1 MB, free: 14.18 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004097/0.2187, allocations: 3.426 MB / 374.5 MB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.776e-05/0.2187, allocations: 51.16 kB / 374.6 MB, free: 10.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=127): time 2.344e-06/0.2187, allocations: 0 / 374.6 MB, free: 10.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=143): time 0.01318/0.2319, allocations: 5.959 MB / 380.5 MB, free: 4.664 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8e-05/0.232, allocations: 248.3 kB / 380.8 MB, free: 4.367 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00262/0.2346, allocations: 3.322 MB / 384.1 MB, free: 1.055 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.312e-05/0.2347, allocations: 45.7 kB / 384.1 MB, free: 1.004 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001203/0.2359, allocations: 3.074 MB / 387.2 MB, free: 13.89 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003173/0.2362, allocations: 0.5932 MB / 387.8 MB, free: 13.3 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001082/0.2373, allocations: 1.136 MB / 389 MB, free: 12.15 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.011e-05/0.2373, allocations: 301.1 kB / 389.2 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009764/0.2383, allocations: 0.7227 MB / 390 MB, free: 11.12 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002674/0.241, allocations: 4.352 MB / 394.3 MB, free: 4.906 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003742/0.2447, allocations: 5.512 MB / 399.8 MB, free: 13.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.291e-05/0.2447, allocations: 36 kB / 399.9 MB, free: 13.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.00423/0.249, allocations: 4.234 MB / 404.1 MB, free: 9.277 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.865e-05/0.249, allocations: 60 kB / 404.2 MB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.105e-05/0.2491, allocations: 132 kB / 404.3 MB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001253/0.2503, allocations: 0.6528 MB / 404.9 MB, free: 8.426 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002164/0.2525, allocations: 1.341 MB / 406.3 MB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00405/0.2566, allocations: 5.391 MB / 411.7 MB, free: 1.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00181/0.2584, allocations: 271.7 kB / 411.9 MB, free: 1.145 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002535/0.2586, allocations: 304 kB / 412.2 MB, free: 0.8477 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 35 (freeMotionScalarInit.arrow.arrow.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 (723): * Single equations (assignments): 717 * 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 {(2,9,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0009317/0.2596, allocations: 0.603 MB / 412.8 MB, free: 236 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002635/0.2598, allocations: 215.8 kB / 413.1 MB, free: 20 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001407/0.2612, allocations: 0.8477 MB / 413.9 MB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/0.2612, allocations: 16 kB / 413.9 MB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.2612, allocations: 4 kB / 413.9 MB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.2613, allocations: 7.969 kB / 413.9 MB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004442/0.2657, allocations: 3.984 MB / 417.9 MB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.2657, allocations: 7.938 kB / 417.9 MB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004846/0.2662, allocations: 219.7 kB / 418.1 MB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007153/0.2669, allocations: 407.5 kB / 418.5 MB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.479e-05/0.267, allocations: 35.98 kB / 418.6 MB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001936/0.2689, allocations: 1.906 MB / 420.5 MB, free: 8.324 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.2689, allocations: 8 kB / 420.5 MB, free: 8.316 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001621/0.2705, allocations: 1.787 MB / 422.3 MB, free: 6.398 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003335/0.2709, allocations: 341.5 kB / 422.6 MB, free: 6.062 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002003/0.2711, allocations: 35.98 kB / 422.6 MB, free: 6.027 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005696/0.2716, allocations: 36 kB / 422.7 MB, free: 5.992 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.2718, allocations: 108.2 kB / 422.8 MB, free: 5.887 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.314e-05/0.2718, allocations: 40 kB / 422.8 MB, free: 5.848 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009796/0.2728, allocations: 1.248 MB / 424.1 MB, free: 4.617 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2728, allocations: 0 / 424.1 MB, free: 4.617 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00346/0.2762, allocations: 1.062 MB / 425.1 MB, free: 3.555 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 4 (revolute1.w,damper.phi_rel,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 (116): * Single equations (assignments): 112 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003146/0.2766, allocations: 172 kB / 425.3 MB, free: 3.379 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003499/0.2801, allocations: 2.726 MB / 428 MB, free: 0.6289 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001752/0.2802, allocations: 100.2 kB / 428.1 MB, free: 0.5234 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006172/0.2809, allocations: 0.504 MB / 428.6 MB, free: 4 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002235/0.2831, allocations: 0.7262 MB / 429.3 MB, free: 15.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009481/0.2926, allocations: 7.605 MB / 437 MB, free: 7.508 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001327/0.2939, allocations: 1.255 MB / 438.2 MB, free: 6.23 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001315/0.2952, allocations: 499.9 kB / 438.7 MB, free: 5.734 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001018/0.2962, allocations: 0.5791 MB / 439.3 MB, free: 5.156 MB / 394.7 MB Notification: Performance of SimCode: time 1.132e-06/0.2962, allocations: 0 / 439.3 MB, free: 5.156 MB / 394.7 MB Notification: Performance of Templates: time 0.1711/0.4673, allocations: 35.21 MB / 474.5 MB, free: 114.8 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulumInitTip/DoublePendulumInitTip.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.6418137471191585]