Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.001223/0.001223, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001092/0.001092, allocations: 171.9 kB / 24.92 MB, free: 8.723 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.993/0.993, allocations: 177.1 MB / 205.3 MB, free: 5.105 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.DoublePendulum,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.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 273.5 MB, free: 1.117 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.344e-05/1.498e-05, allocations: 2.312 kB / 273.5 MB, free: 1.113 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.007009/0.007024, allocations: 9.914 MB / 283.4 MB, free: 7.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005186/0.01221, allocations: 4.021 MB / 287.4 MB, free: 3.125 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006064/0.01282, allocations: 79.56 kB / 287.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002053/0.01487, allocations: 2.32 MB / 289.8 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1216/0.1365, allocations: 1.934 MB / 291.8 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001323/0.1378, allocations: 0.8404 MB / 292.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005032/0.1429, allocations: 5.967 MB / 298.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001911/0.1448, allocations: 2.863 MB / 301.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002541/0.1473, allocations: 3.193 MB / 304.6 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001598/0.1489, allocations: 2.269 MB / 306.9 MB, free: 11.31 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002696/0.1492, allocations: 310.2 kB / 307.2 MB, free: 11.31 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001112/0.1503, allocations: 1.172 MB / 308.4 MB, free: 10.97 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008575/0.1511, allocations: 1.986 MB / 310.4 MB, free: 9.844 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006711/0.1518, allocations: 1.207 MB / 311.6 MB, free: 8.887 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002486/0.1543, allocations: 4.504 MB / 316.1 MB, free: 4.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1543, allocations: 0 / 316.1 MB, free: 4.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1543, allocations: 0 / 316.1 MB, free: 4.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.634e-05/0.1543, allocations: 0 / 316.1 MB, free: 4.66 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.00368/0.158, allocations: 4.333 MB / 320.4 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.209e-05/0.1581, allocations: 8.031 kB / 320.4 MB, free: 0.625 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003373/0.1614, allocations: 1.207 MB / 321.6 MB, free: 15.46 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002218/0.1636, allocations: 2.107 MB / 323.7 MB, free: 13.45 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.1637, allocations: 200.3 kB / 323.9 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002874/0.164, allocations: 269.1 kB / 324.2 MB, free: 13.06 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004015/0.1681, allocations: 4.435 MB / 328.6 MB, free: 8.348 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.616e-05/0.1681, allocations: 44.94 kB / 328.7 MB, free: 8.324 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001999/0.1683, allocations: 129.4 kB / 328.8 MB, free: 8.23 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001208/0.1695, allocations: 1.506 MB / 330.3 MB, free: 6.75 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003207/0.1727, allocations: 2.213 MB / 332.5 MB, free: 4.73 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01876/0.1915, allocations: 28.07 MB / 360.6 MB, free: 8.633 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002629/0.1941, allocations: 1.273 MB / 361.8 MB, free: 7.359 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003637/0.1945, allocations: 307.9 kB / 362.1 MB, free: 7.055 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003963/0.1985, allocations: 3.232 MB / 365.4 MB, free: 3.844 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.1985, allocations: 42.5 kB / 365.4 MB, free: 3.797 MB / 314.7 MB Notification: Performance of pre-optimization done (n=121): time 1.993e-06/0.1985, allocations: 0 / 365.4 MB, free: 3.797 MB / 314.7 MB Notification: Performance of matching and sorting (n=132): time 0.01361/0.2121, allocations: 5.371 MB / 370.8 MB, free: 14.48 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.11e-05/0.2122, allocations: 244 kB / 371 MB, free: 14.18 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002895/0.2151, allocations: 3.122 MB / 374.2 MB, free: 11.17 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00017/0.2152, allocations: 45.7 kB / 374.2 MB, free: 11.12 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001206/0.2165, allocations: 2.773 MB / 377 MB, free: 8.32 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005129/0.217, allocations: 0.5544 MB / 377.5 MB, free: 7.762 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009122/0.2179, allocations: 1.057 MB / 378.6 MB, free: 6.695 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.292e-05/0.218, allocations: 301.1 kB / 378.9 MB, free: 6.398 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001052/0.219, allocations: 0.6863 MB / 379.6 MB, free: 5.707 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002755/0.2218, allocations: 4.088 MB / 383.6 MB, free: 15.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005159/0.2269, allocations: 5.137 MB / 388.8 MB, free: 9.082 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.213e-05/0.227, allocations: 36 kB / 388.8 MB, free: 9.047 MB / 346.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.005365/0.2324, allocations: 3.831 MB / 392.7 MB, free: 5.191 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.375e-05/0.2324, allocations: 63.98 kB / 392.7 MB, free: 5.129 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-05/0.2325, allocations: 120 kB / 392.8 MB, free: 5.012 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008607/0.2334, allocations: 401.1 kB / 393.2 MB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002327/0.2357, allocations: 1.294 MB / 394.5 MB, free: 3.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002228/0.2379, allocations: 2.167 MB / 396.7 MB, free: 1.055 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002468/0.2404, allocations: 243.7 kB / 396.9 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003122/0.2407, allocations: 296 kB / 397.2 MB, free: 0.5273 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.2418, allocations: 0.5641 MB / 397.8 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004216/0.2422, allocations: 195.8 kB / 398 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001157/0.2434, allocations: 0.7881 MB / 398.8 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.258e-05/0.2434, allocations: 16 kB / 398.8 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.2434, allocations: 8 kB / 398.8 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.2434, allocations: 11.95 kB / 398.8 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00467/0.2481, allocations: 3.537 MB / 402.3 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.908e-06/0.2481, allocations: 4.781 kB / 402.3 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005053/0.2486, allocations: 191.7 kB / 402.5 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009601/0.2496, allocations: 410.9 kB / 402.9 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.817e-05/0.2497, allocations: 35.98 kB / 403 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001637/0.2513, allocations: 1.909 MB / 404.9 MB, free: 8.617 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.89e-06/0.2513, allocations: 7.938 kB / 404.9 MB, free: 8.609 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002018/0.2533, allocations: 1.678 MB / 406.5 MB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006718/0.254, allocations: 313.7 kB / 406.9 MB, free: 6.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003065/0.2543, allocations: 35.94 kB / 406.9 MB, free: 6.465 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000665/0.255, allocations: 31.97 kB / 406.9 MB, free: 6.434 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/0.2551, allocations: 96.17 kB / 407 MB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.076e-05/0.2552, allocations: 43.98 kB / 407.1 MB, free: 6.297 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001519/0.2567, allocations: 1.166 MB / 408.2 MB, free: 5.141 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2567, allocations: 112 / 408.2 MB, free: 5.141 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003911/0.2606, allocations: 0.9608 MB / 409.2 MB, free: 4.18 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.0004285/0.261, allocations: 164 kB / 409.3 MB, free: 4.012 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004015/0.2651, allocations: 2.245 MB / 411.6 MB, free: 1.773 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002134/0.2653, allocations: 96.16 kB / 411.7 MB, free: 1.672 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000747/0.266, allocations: 490.4 kB / 412.2 MB, free: 1.18 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002776/0.2688, allocations: 0.5937 MB / 412.8 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01189/0.2807, allocations: 6.729 MB / 419.5 MB, free: 9.703 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001389/0.2821, allocations: 1.121 MB / 420.6 MB, free: 8.566 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001587/0.2837, allocations: 469.3 kB / 421.1 MB, free: 8.105 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001062/0.2847, allocations: 0.5206 MB / 421.6 MB, free: 7.582 MB / 378.7 MB Notification: Performance of SimCode: time 1.543e-06/0.2847, allocations: 0 / 421.6 MB, free: 7.582 MB / 378.7 MB Notification: Performance of Templates: time 0.1562/0.4409, allocations: 29.96 MB / 451.5 MB, free: 106.8 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.643934373278171]