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.0009202/0.0009202, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009101/0.0009101, allocations: 165.4 kB / 24.56 MB, free: 16 kB / 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.8832/0.8832, allocations: 177.1 MB / 205 MB, free: 5.285 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 2.044e-06/2.044e-06, allocations: 0 / 273 MB, free: 1.387 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.428e-05/2.632e-05, allocations: 2.312 kB / 273 MB, free: 1.383 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.009713/0.009739, allocations: 10.16 MB / 283.1 MB, free: 7.184 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006163/0.0159, allocations: 3.909 MB / 287.1 MB, free: 3.262 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007708/0.01667, allocations: 83.56 kB / 287.1 MB, free: 3.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002449/0.01912, allocations: 2.367 MB / 289.5 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1196/0.1388, allocations: 1.927 MB / 291.4 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001403/0.1402, allocations: 0.8377 MB / 292.3 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00598/0.1461, allocations: 5.992 MB / 298.3 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002976/0.1491, allocations: 3.016 MB / 301.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003323/0.1524, allocations: 3.27 MB / 304.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001929/0.1544, allocations: 2.373 MB / 306.9 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004074/0.1548, allocations: 319.8 kB / 307.2 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001289/0.1561, allocations: 1.122 MB / 308.4 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001047/0.1571, allocations: 1.987 MB / 310.3 MB, free: 9.766 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001153/0.1583, allocations: 1.21 MB / 311.5 MB, free: 9.105 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003219/0.1615, allocations: 4.508 MB / 316.1 MB, free: 4.879 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.1615, allocations: 0 / 316.1 MB, free: 4.879 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1615, allocations: 0 / 316.1 MB, free: 4.879 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.471e-05/0.1615, allocations: 3.844 kB / 316.1 MB, free: 4.879 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.005115/0.1667, allocations: 5.171 MB / 321.2 MB, free: 15.73 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.1667, allocations: 8.031 kB / 321.2 MB, free: 15.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01176/0.1785, allocations: 3.507 MB / 324.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003567/0.182, allocations: 2.578 MB / 327.3 MB, free: 9.773 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001509/0.1822, allocations: 204.2 kB / 327.5 MB, free: 9.605 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004548/0.1826, allocations: 272 kB / 327.8 MB, free: 9.371 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006891/0.1895, allocations: 5.433 MB / 333.2 MB, free: 3.215 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.646e-05/0.1896, allocations: 44.3 kB / 333.3 MB, free: 3.191 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002506/0.1899, allocations: 127.2 kB / 333.4 MB, free: 3.098 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001475/0.1913, allocations: 1.659 MB / 335 MB, free: 1.461 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005716/0.1971, allocations: 2.77 MB / 337.8 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02712/0.2242, allocations: 39.32 MB / 377.1 MB, free: 6.73 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003455/0.2276, allocations: 1.43 MB / 378.6 MB, free: 5.266 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006259/0.2283, allocations: 456.5 kB / 379 MB, free: 4.801 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005072/0.2333, allocations: 3.688 MB / 382.7 MB, free: 1.121 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.457e-05/0.2334, allocations: 52.67 kB / 382.8 MB, free: 1.062 MB / 330.7 MB Notification: Performance of pre-optimization done (n=121): time 4.929e-06/0.2334, allocations: 0 / 382.8 MB, free: 1.062 MB / 330.7 MB Notification: Performance of matching and sorting (n=132): time 0.01983/0.2532, allocations: 9.308 MB / 392.1 MB, free: 7.715 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/0.2534, allocations: 250.4 kB / 392.3 MB, free: 7.414 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0037/0.2571, allocations: 3.511 MB / 395.8 MB, free: 3.898 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.86e-05/0.2571, allocations: 49.7 kB / 395.9 MB, free: 3.844 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001973/0.2591, allocations: 3.162 MB / 399 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004413/0.2596, allocations: 0.5687 MB / 399.6 MB, free: 140 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000985/0.2605, allocations: 1.214 MB / 400.8 MB, free: 14.92 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.993e-05/0.2606, allocations: 476.8 kB / 401.3 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008931/0.2615, allocations: 0.5807 MB / 401.9 MB, free: 13.86 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00345/0.265, allocations: 5.779 MB / 407.6 MB, free: 5.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005673/0.2706, allocations: 6.844 MB / 414.5 MB, free: 12.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.564e-05/0.2707, allocations: 36 kB / 414.5 MB, free: 12.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.006289/0.277, allocations: 4.883 MB / 419.4 MB, free: 7.656 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.005e-05/0.2771, allocations: 63.92 kB / 419.5 MB, free: 7.594 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001048/0.2772, allocations: 120 kB / 419.6 MB, free: 7.477 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001058/0.2782, allocations: 457.1 kB / 420 MB, free: 7.027 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002659/0.2809, allocations: 1.283 MB / 421.3 MB, free: 5.742 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00247/0.2834, allocations: 2.904 MB / 424.2 MB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002395/0.2857, allocations: 383.5 kB / 424.6 MB, free: 2.348 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002957/0.286, allocations: 336 kB / 424.9 MB, free: 2.02 MB / 378.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.001068/0.2871, allocations: 0.6187 MB / 425.5 MB, free: 1.387 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004593/0.2876, allocations: 349.9 kB / 425.9 MB, free: 1.043 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001499/0.2891, allocations: 0.9989 MB / 426.9 MB, free: 24 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.155e-05/0.2891, allocations: 23.05 kB / 426.9 MB, free: 4 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.2891, allocations: 4 kB / 426.9 MB, free: 0 / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.112e-05/0.2891, allocations: 8.031 kB / 426.9 MB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0063/0.2954, allocations: 4.31 MB / 431.2 MB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.957e-06/0.2954, allocations: 4 kB / 431.2 MB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006487/0.2961, allocations: 227.7 kB / 431.4 MB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008548/0.2969, allocations: 264.4 kB / 431.7 MB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.809e-05/0.297, allocations: 28 kB / 431.7 MB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002332/0.2993, allocations: 2.586 MB / 434.3 MB, free: 8.336 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.856e-06/0.2994, allocations: 11.94 kB / 434.3 MB, free: 8.324 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002884/0.3022, allocations: 2.132 MB / 436.5 MB, free: 6.062 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004885/0.3027, allocations: 341.7 kB / 436.8 MB, free: 5.727 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002792/0.303, allocations: 31.98 kB / 436.8 MB, free: 5.695 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009888/0.304, allocations: 123.8 kB / 436.9 MB, free: 5.574 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/0.3042, allocations: 100.2 kB / 437 MB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.415e-05/0.3042, allocations: 47.94 kB / 437.1 MB, free: 5.43 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002098/0.3063, allocations: 1.551 MB / 438.6 MB, free: 3.891 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3063, allocations: 0 / 438.6 MB, free: 3.891 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003776/0.3101, allocations: 0.9599 MB / 439.6 MB, free: 2.934 MB / 394.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.0003568/0.3105, allocations: 178.4 kB / 439.8 MB, free: 2.75 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004061/0.3145, allocations: 2.658 MB / 442.4 MB, free: 104 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.3145, allocations: 8.125 kB / 442.4 MB, free: 96 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1204/0.4349, allocations: 0.623 MB / 443.1 MB, free: 130.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002219/0.4371, allocations: 422.8 kB / 443.5 MB, free: 130.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009907/0.447, allocations: 6.88 MB / 450.4 MB, free: 127.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001351/0.4484, allocations: 1.123 MB / 451.5 MB, free: 127.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002773/0.4511, allocations: 1.458 MB / 452.9 MB, free: 127.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004424/0.4516, allocations: 212.8 kB / 453.1 MB, free: 127.4 MB / 394.7 MB Notification: Performance of SimCode: time 1.693e-06/0.4516, allocations: 0 / 453.1 MB, free: 127.4 MB / 394.7 MB Notification: Performance of Templates: time 0.04191/0.4935, allocations: 28.37 MB / 481.5 MB, free: 108.4 MB / 394.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 -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.7845359798520803]