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.001402/0.001402, allocations: 78.19 kB / 21.42 MB, free: 3.074 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.001444/0.001444, allocations: 154.2 kB / 24.81 MB, free: 8.945 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 0.9831/0.9831, allocations: 173.4 MB / 201.4 MB, free: 9.199 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.633e-06/1.633e-06, allocations: 0 / 268.4 MB, free: 6.176 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.98e-05/2.143e-05, allocations: 6.25 kB / 268.4 MB, free: 6.168 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.007724/0.007746, allocations: 9.876 MB / 278.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006121/0.01387, allocations: 3.877 MB / 282.2 MB, free: 8.355 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001255/0.01512, allocations: 83.5 kB / 282.3 MB, free: 8.273 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002524/0.01765, allocations: 2.332 MB / 284.6 MB, free: 5.934 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003192/0.02084, allocations: 1.975 MB / 286.6 MB, free: 3.949 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001142/0.02198, allocations: 0.8343 MB / 287.4 MB, free: 3.113 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1142/0.1362, allocations: 5.833 MB / 293.2 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004228/0.1404, allocations: 3.015 MB / 296.2 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004899/0.1453, allocations: 3.308 MB / 299.6 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002975/0.1483, allocations: 2.365 MB / 301.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007966/0.1491, allocations: 313.1 kB / 302.2 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0015/0.1506, allocations: 1.153 MB / 303.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001206/0.1518, allocations: 2.004 MB / 305.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001356/0.1531, allocations: 1.23 MB / 306.6 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003522/0.1566, allocations: 4.547 MB / 311.2 MB, free: 11.76 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1566, allocations: 0 / 311.2 MB, free: 11.76 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1566, allocations: 0 / 311.2 MB, free: 11.76 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001787/0.1568, allocations: 0 / 311.2 MB, free: 11.76 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.005444/0.1623, allocations: 4.894 MB / 316.1 MB, free: 8.039 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.1623, allocations: 12.86 kB / 316.1 MB, free: 8.027 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01031/0.1726, allocations: 2.595 MB / 318.7 MB, free: 5.461 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002917/0.1755, allocations: 2.272 MB / 320.9 MB, free: 3.301 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.731e-05/0.1756, allocations: 199.6 kB / 321.1 MB, free: 3.137 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003957/0.176, allocations: 265.9 kB / 321.4 MB, free: 2.91 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005817/0.1818, allocations: 4.957 MB / 326.3 MB, free: 13.45 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.529e-05/0.1819, allocations: 48.34 kB / 326.4 MB, free: 13.42 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002348/0.1822, allocations: 134.3 kB / 326.5 MB, free: 13.32 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001246/0.1834, allocations: 1.501 MB / 328 MB, free: 11.84 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003958/0.1874, allocations: 2.176 MB / 330.2 MB, free: 9.852 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02605/0.2134, allocations: 38.96 MB / 369.2 MB, free: 2.785 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002837/0.2163, allocations: 1.236 MB / 370.4 MB, free: 1.535 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004674/0.2167, allocations: 387.5 kB / 370.8 MB, free: 1.148 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004171/0.2209, allocations: 3.469 MB / 374.2 MB, free: 13.7 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.2209, allocations: 52.86 kB / 374.3 MB, free: 13.64 MB / 330.7 MB Notification: Performance of pre-optimization done (n=121): time 3.617e-06/0.2209, allocations: 0 / 374.3 MB, free: 13.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=132): time 0.0145/0.2354, allocations: 5.962 MB / 380.3 MB, free: 7.68 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.2355, allocations: 251.3 kB / 380.5 MB, free: 7.379 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003549/0.2391, allocations: 3.498 MB / 384 MB, free: 4.441 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.342e-05/0.2391, allocations: 41.7 kB / 384 MB, free: 4.395 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001541/0.2407, allocations: 3.195 MB / 387.2 MB, free: 1.215 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000411/0.2411, allocations: 0.574 MB / 387.8 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001064/0.2422, allocations: 1.239 MB / 389 MB, free: 15.39 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.2423, allocations: 480.8 kB / 389.5 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001138/0.2434, allocations: 0.5143 MB / 390 MB, free: 14.39 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0032/0.2466, allocations: 5.741 MB / 395.8 MB, free: 6.328 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00461/0.2512, allocations: 6.7 MB / 402.5 MB, free: 13.44 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.935e-05/0.2513, allocations: 32 kB / 402.5 MB, free: 13.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.005504/0.2568, allocations: 4.516 MB / 407 MB, free: 8.891 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.83e-05/0.2568, allocations: 59.94 kB / 407.1 MB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.232e-05/0.2569, allocations: 120 kB / 407.2 MB, free: 8.715 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008192/0.2577, allocations: 409.2 kB / 407.6 MB, free: 8.312 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00193/0.2597, allocations: 1.228 MB / 408.8 MB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002042/0.2617, allocations: 2.753 MB / 411.6 MB, free: 4.215 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002258/0.264, allocations: 243.7 kB / 411.8 MB, free: 3.977 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002763/0.2642, allocations: 292 kB / 412.1 MB, free: 3.691 MB / 362.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.001/0.2652, allocations: 0.6147 MB / 412.7 MB, free: 3.062 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004304/0.2657, allocations: 349.9 kB / 413.1 MB, free: 2.719 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001226/0.2669, allocations: 0.8819 MB / 413.9 MB, free: 1.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-05/0.2669, allocations: 19.98 kB / 414 MB, free: 1.801 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.2669, allocations: 4 kB / 414 MB, free: 1.797 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.2669, allocations: 7.969 kB / 414 MB, free: 1.789 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005782/0.2727, allocations: 4.172 MB / 418.1 MB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/0.2727, allocations: 12 kB / 418.1 MB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004456/0.2732, allocations: 179.7 kB / 418.3 MB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006255/0.2738, allocations: 233.3 kB / 418.6 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.251e-05/0.2739, allocations: 35.92 kB / 418.6 MB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001737/0.2756, allocations: 2.468 MB / 421.1 MB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.2756, allocations: 11.94 kB / 421.1 MB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002505/0.2781, allocations: 1.983 MB / 423.1 MB, free: 8.309 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005613/0.2787, allocations: 337.5 kB / 423.4 MB, free: 7.977 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002127/0.2789, allocations: 28 kB / 423.4 MB, free: 7.949 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006249/0.2795, allocations: 35.98 kB / 423.4 MB, free: 7.914 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.2796, allocations: 92.23 kB / 423.5 MB, free: 7.824 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.185e-05/0.2797, allocations: 35.94 kB / 423.6 MB, free: 7.789 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001519/0.2812, allocations: 1.441 MB / 425 MB, free: 6.359 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2812, allocations: 0 / 425 MB, free: 6.359 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003235/0.2845, allocations: 0.9842 MB / 426 MB, free: 5.375 MB / 378.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.0003205/0.2848, allocations: 191 kB / 426.2 MB, free: 5.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002948/0.2877, allocations: 2.487 MB / 428.7 MB, free: 2.688 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.2877, allocations: 5.688 kB / 428.7 MB, free: 2.684 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005749/0.2883, allocations: 0.5857 MB / 429.3 MB, free: 2.078 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00143/0.2897, allocations: 440.2 kB / 429.7 MB, free: 1.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1114/0.4011, allocations: 6.841 MB / 436.5 MB, free: 107.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001198/0.4023, allocations: 1.127 MB / 437.7 MB, free: 107.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001353/0.4037, allocations: 460.4 kB / 438.1 MB, free: 107.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009083/0.4046, allocations: 0.5674 MB / 438.7 MB, free: 107.3 MB / 378.7 MB Notification: Performance of SimCode: time 1.774e-06/0.4046, allocations: 0 / 438.7 MB, free: 107.3 MB / 378.7 MB Notification: Performance of Templates: time 0.04142/0.446, allocations: 30.19 MB / 468.9 MB, free: 91.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 -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.840086418669671]