Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007296/0.0007296, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009508/0.00168, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0006645/0.0006645, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008508/0.001515, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9233/0.9233, allocations: 177.4 MB / 189.9 MB, free: 4.848 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08908/1.012, allocations: 53.86 MB / 243.7 MB, free: 14.93 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.607e-05/1.79e-05, allocations: 6.312 kB / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01141/0.01143, allocations: 9.977 MB / 255 MB, free: 3.629 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006876/0.01831, allocations: 4.064 MB / 259.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006807/0.01899, allocations: 79.56 kB / 259.1 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002122/0.02111, allocations: 2.238 MB / 261.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00224/0.02335, allocations: 1.929 MB / 263.3 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008613/0.02421, allocations: 0.7641 MB / 264.1 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003733/0.02794, allocations: 5.497 MB / 269.6 MB, free: 5.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00189/0.02983, allocations: 2.608 MB / 272.2 MB, free: 2.348 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1203/0.1501, allocations: 3.035 MB / 275.2 MB, free: 5.672 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003871/0.154, allocations: 2.244 MB / 277.5 MB, free: 5.672 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000839/0.1548, allocations: 315.2 kB / 277.8 MB, free: 5.672 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001985/0.1568, allocations: 1.169 MB / 278.9 MB, free: 5.672 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001513/0.1583, allocations: 1.777 MB / 280.7 MB, free: 5.672 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001268/0.1596, allocations: 0.9824 MB / 281.7 MB, free: 5.672 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003751/0.1633, allocations: 4.144 MB / 285.8 MB, free: 5.117 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.17e-05/0.1633, allocations: 6.656 kB / 285.8 MB, free: 5.113 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1633, allocations: 0.625 kB / 285.8 MB, free: 5.113 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.399e-05/0.1634, allocations: 0 / 285.8 MB, free: 5.113 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.004493/0.1679, allocations: 5.198 MB / 291 MB, free: 3.16 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.661e-05/0.1679, allocations: 12.88 kB / 291.1 MB, free: 3.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003496/0.1714, allocations: 1.236 MB / 292.3 MB, free: 3.137 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001936/0.1734, allocations: 2.095 MB / 294.4 MB, free: 2.559 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.933e-05/0.1734, allocations: 197.4 kB / 294.6 MB, free: 2.551 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002633/0.1737, allocations: 278.1 kB / 294.8 MB, free: 2.543 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003291/0.177, allocations: 4.426 MB / 299.3 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.153e-05/0.177, allocations: 53.52 kB / 299.3 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000212/0.1773, allocations: 126 kB / 299.4 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001146/0.1784, allocations: 1.519 MB / 301 MB, free: 15.28 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003085/0.1815, allocations: 2.203 MB / 303.2 MB, free: 13.27 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01625/0.1977, allocations: 28.07 MB / 331.2 MB, free: 1.176 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002414/0.2002, allocations: 1.239 MB / 332.5 MB, free: 15.94 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003499/0.2005, allocations: 304.6 kB / 332.8 MB, free: 15.64 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004978/0.2055, allocations: 3.216 MB / 336 MB, free: 12.45 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.2055, allocations: 49.19 kB / 336 MB, free: 12.39 MB / 314.7 MB Notification: Performance of pre-optimization done (n=121): time 2.845e-06/0.2055, allocations: 0 / 336 MB, free: 12.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=132): time 0.01158/0.2171, allocations: 5.252 MB / 341.3 MB, free: 7.199 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.001e-05/0.2171, allocations: 142.7 kB / 341.4 MB, free: 7.031 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002761/0.2199, allocations: 3.121 MB / 344.6 MB, free: 4.469 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.774e-05/0.22, allocations: 45.7 kB / 344.6 MB, free: 4.418 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001133/0.2211, allocations: 2.768 MB / 347.4 MB, free: 1.809 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005137/0.2216, allocations: 0.5563 MB / 347.9 MB, free: 1.281 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00077/0.2224, allocations: 1.056 MB / 349 MB, free: 348 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.84e-05/0.2225, allocations: 307.9 kB / 349.3 MB, free: 40 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000962/0.2234, allocations: 0.6848 MB / 350 MB, free: 15.35 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002478/0.2259, allocations: 4.093 MB / 354.1 MB, free: 9.715 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003491/0.2294, allocations: 5.132 MB / 359.2 MB, free: 3.262 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.569e-05/0.2294, allocations: 36 kB / 359.2 MB, free: 3.227 MB / 330.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.004292/0.2337, allocations: 3.842 MB / 363.1 MB, free: 15.36 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.883e-05/0.2338, allocations: 56 kB / 363.1 MB, free: 15.31 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.277e-05/0.2339, allocations: 120 kB / 363.2 MB, free: 15.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007611/0.2346, allocations: 405.8 kB / 363.6 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002115/0.2367, allocations: 1.369 MB / 365 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001923/0.2387, allocations: 2.175 MB / 367.2 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001849/0.2405, allocations: 255.7 kB / 367.4 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002448/0.2408, allocations: 288 kB / 367.7 MB, free: 10.66 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.0009634/0.2417, allocations: 0.5706 MB / 368.3 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000283/0.242, allocations: 195.8 kB / 368.5 MB, free: 9.883 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00102/0.243, allocations: 0.7864 MB / 369.3 MB, free: 9.082 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.475e-05/0.243, allocations: 16 kB / 369.3 MB, free: 9.066 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.243, allocations: 4 kB / 369.3 MB, free: 9.062 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.243, allocations: 4.094 kB / 369.3 MB, free: 9.059 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003963/0.247, allocations: 3.532 MB / 372.8 MB, free: 5.918 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.247, allocations: 8 kB / 372.8 MB, free: 5.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004593/0.2475, allocations: 208.5 kB / 373 MB, free: 5.707 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003333/0.2478, allocations: 320.4 kB / 373.3 MB, free: 5.395 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007053/0.2485, allocations: 402.6 kB / 373.7 MB, free: 5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.506e-05/0.2486, allocations: 32 kB / 373.8 MB, free: 4.969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001561/0.2501, allocations: 1.903 MB / 375.7 MB, free: 2.988 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.675e-06/0.2501, allocations: 20.8 kB / 375.7 MB, free: 2.969 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/0.2515, allocations: 1.674 MB / 377.4 MB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002159/0.2517, allocations: 31.94 kB / 377.4 MB, free: 1.148 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005711/0.2523, allocations: 35.98 kB / 377.4 MB, free: 1.113 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.2524, allocations: 88.34 kB / 377.5 MB, free: 1.027 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.104e-05/0.2525, allocations: 47.91 kB / 377.6 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009298/0.2534, allocations: 1.162 MB / 378.7 MB, free: 15.82 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2534, allocations: 0 / 378.7 MB, free: 15.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002604/0.256, allocations: 0.9686 MB / 379.7 MB, free: 14.86 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.0003354/0.2563, allocations: 164 kB / 379.8 MB, free: 14.69 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002604/0.259, allocations: 2.253 MB / 382.1 MB, free: 12.44 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001594/0.2591, allocations: 119.5 kB / 382.2 MB, free: 12.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004543/0.2596, allocations: 482.1 kB / 382.7 MB, free: 11.83 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001697/0.2613, allocations: 0.8336 MB / 383.5 MB, free: 11.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01149/0.2728, allocations: 6.908 MB / 390.4 MB, free: 3.953 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001075/0.2738, allocations: 1.123 MB / 391.6 MB, free: 2.809 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00129/0.2751, allocations: 469.3 kB / 392 MB, free: 2.348 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008029/0.2759, allocations: 0.5128 MB / 392.5 MB, free: 1.832 MB / 362.7 MB Notification: Performance of SimCode: time 1.694e-06/0.2759, allocations: 4 kB / 392.5 MB, free: 1.828 MB / 362.7 MB Notification: Performance of Templates: time 0.0425/0.3184, allocations: 30.73 MB / 423.3 MB, free: 3.414 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.5353480065241456]