Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 85.17 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001791/0.001791, allocations: 149.3 kB / 24.89 MB, free: 8.742 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.016/1.016, allocations: 173.4 MB / 201.5 MB, free: 9.168 MB / 186.7 MB " [Timeout remaining time 179] 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.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 3.938 kB / 268.5 MB, free: 6.113 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.763e-05/1.918e-05, allocations: 6.312 kB / 268.5 MB, free: 6.105 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.00756/0.007579, allocations: 9.939 MB / 278.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006314/0.01389, allocations: 4.009 MB / 282.5 MB, free: 8.094 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001147/0.01504, allocations: 79.56 kB / 282.5 MB, free: 8.016 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00239/0.01743, allocations: 2.32 MB / 284.9 MB, free: 5.688 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002947/0.02038, allocations: 1.991 MB / 286.9 MB, free: 3.688 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.02144, allocations: 0.8265 MB / 287.7 MB, free: 2.859 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1277/0.1492, allocations: 5.819 MB / 293.5 MB, free: 16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005006/0.1542, allocations: 2.862 MB / 296.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005951/0.1601, allocations: 3.203 MB / 299.6 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00326/0.1634, allocations: 2.267 MB / 301.8 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009712/0.1644, allocations: 312.1 kB / 302.1 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001973/0.1664, allocations: 1.18 MB / 303.3 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001528/0.1679, allocations: 2.011 MB / 305.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001803/0.1697, allocations: 1.224 MB / 306.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004744/0.1744, allocations: 4.552 MB / 311.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.1744, allocations: 0 / 311.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1744, allocations: 0 / 311.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001879/0.1746, allocations: 0 / 311.1 MB, free: 11.87 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.006485/0.1811, allocations: 4.331 MB / 315.4 MB, free: 8.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.1811, allocations: 8.922 kB / 315.4 MB, free: 8.562 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00372/0.1849, allocations: 1.208 MB / 316.7 MB, free: 7.402 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002701/0.1876, allocations: 2.112 MB / 318.8 MB, free: 5.387 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.005e-05/0.1877, allocations: 200 kB / 319 MB, free: 5.223 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003366/0.188, allocations: 274.3 kB / 319.2 MB, free: 4.988 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004309/0.1923, allocations: 4.432 MB / 323.7 MB, free: 288 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.983e-05/0.1924, allocations: 50.38 kB / 323.7 MB, free: 260 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002166/0.1926, allocations: 134.3 kB / 323.8 MB, free: 160 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001381/0.194, allocations: 1.502 MB / 325.3 MB, free: 14.68 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004083/0.1981, allocations: 2.201 MB / 327.5 MB, free: 12.67 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02315/0.2212, allocations: 28.07 MB / 355.6 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002964/0.2242, allocations: 1.272 MB / 356.9 MB, free: 15.3 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004246/0.2246, allocations: 311.4 kB / 357.2 MB, free: 15 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004797/0.2294, allocations: 3.225 MB / 360.4 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.132e-05/0.2294, allocations: 50.12 kB / 360.5 MB, free: 11.74 MB / 314.7 MB Notification: Performance of pre-optimization done (n=121): time 4.629e-06/0.2294, allocations: 0 / 360.5 MB, free: 11.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=132): time 0.0124/0.2418, allocations: 5.358 MB / 365.8 MB, free: 6.426 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.234e-05/0.2419, allocations: 247.3 kB / 366.1 MB, free: 6.129 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002614/0.2445, allocations: 3.132 MB / 369.2 MB, free: 3.559 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.969e-05/0.2446, allocations: 45.7 kB / 369.2 MB, free: 3.508 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00123/0.2459, allocations: 2.761 MB / 372 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003652/0.2462, allocations: 0.5622 MB / 372.6 MB, free: 328 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008555/0.2471, allocations: 1.061 MB / 373.6 MB, free: 15.25 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.989e-05/0.2472, allocations: 301.1 kB / 373.9 MB, free: 14.95 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001078/0.2482, allocations: 0.6863 MB / 374.6 MB, free: 14.26 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002392/0.2506, allocations: 4.085 MB / 378.7 MB, free: 8.477 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003637/0.2543, allocations: 5.136 MB / 383.8 MB, free: 1.812 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.428e-05/0.2543, allocations: 36 kB / 383.9 MB, free: 1.777 MB / 330.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.004505/0.2588, allocations: 3.843 MB / 387.7 MB, free: 13.92 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.238e-05/0.2589, allocations: 56 kB / 387.8 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-05/0.259, allocations: 120 kB / 387.9 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008379/0.2598, allocations: 416.2 kB / 388.3 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002069/0.2619, allocations: 1.287 MB / 389.6 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001905/0.2638, allocations: 2.169 MB / 391.7 MB, free: 9.789 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002251/0.266, allocations: 247.8 kB / 392 MB, free: 9.547 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002946/0.2663, allocations: 296 kB / 392.3 MB, free: 9.258 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 551 * Number of states: 0 () * Number of discrete variables: 30 (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 (688): * Single equations (assignments): 684 * 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 prepare postOptimizeDAE: time 0.001117/0.2674, allocations: 0.5603 MB / 392.8 MB, free: 8.684 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003976/0.2678, allocations: 199.7 kB / 393 MB, free: 8.488 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001131/0.269, allocations: 0.7843 MB / 393.8 MB, free: 7.688 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-05/0.269, allocations: 16 kB / 393.8 MB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.269, allocations: 0 / 393.8 MB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.269, allocations: 11.97 kB / 393.8 MB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004445/0.2734, allocations: 3.534 MB / 397.4 MB, free: 3.988 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.2735, allocations: 8.109 kB / 397.4 MB, free: 3.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004532/0.2739, allocations: 195.7 kB / 397.6 MB, free: 3.789 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007344/0.2746, allocations: 415.8 kB / 398 MB, free: 3.379 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.024e-05/0.2747, allocations: 28 kB / 398 MB, free: 3.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001542/0.2763, allocations: 1.898 MB / 399.9 MB, free: 1.355 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.2763, allocations: 15.92 kB / 399.9 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001722/0.278, allocations: 1.674 MB / 401.6 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005062/0.2785, allocations: 321.6 kB / 401.9 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002559/0.2787, allocations: 35.92 kB / 401.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006132/0.2794, allocations: 31.94 kB / 402 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.2795, allocations: 92.22 kB / 402.1 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.564e-05/0.2795, allocations: 36 kB / 402.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001261/0.2808, allocations: 1.17 MB / 403.3 MB, free: 13.88 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2808, allocations: 0 / 403.3 MB, free: 13.88 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003063/0.2839, allocations: 0.9803 MB / 404.2 MB, free: 12.9 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (105): * Single equations (assignments): 101 * 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.000357/0.2842, allocations: 176 kB / 404.4 MB, free: 12.72 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002726/0.287, allocations: 2.25 MB / 406.7 MB, free: 10.47 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001496/0.2871, allocations: 96.16 kB / 406.8 MB, free: 10.37 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005257/0.2876, allocations: 487.8 kB / 407.2 MB, free: 9.879 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001825/0.2895, allocations: 0.5997 MB / 407.8 MB, free: 9.289 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008318/0.2978, allocations: 6.74 MB / 414.6 MB, free: 2.391 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001083/0.2989, allocations: 1.114 MB / 415.7 MB, free: 1.262 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001207/0.3001, allocations: 469.4 kB / 416.2 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007947/0.3009, allocations: 0.5206 MB / 416.7 MB, free: 284 kB / 362.7 MB Notification: Performance of SimCode: time 1.934e-06/0.3009, allocations: 0 / 416.7 MB, free: 284 kB / 362.7 MB Notification: Performance of Templates: time 0.151/0.4518, allocations: 30.12 MB / 446.8 MB, free: 116.8 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.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.7400062498636544]