Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008694/0.0008694, allocations: 81.05 kB / 10.02 MB, free: 0.668 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001186/0.002055, allocations: 453.8 kB / 10.46 MB, free: 232 kB / 10.45 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.0007225/0.0007225, allocations: 165.1 kB / 11.36 MB, free: 2.809 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009308/0.001653, allocations: 483.5 kB / 11.83 MB, free: 2.332 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9192/0.9192, allocations: 158.6 MB / 171.2 MB, free: 2.5 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1944/1.114, allocations: 49.5 MB / 220.7 MB, free: 1.352 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.116e-06/3.116e-06, allocations: 0 / 222 MB, free: 48 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.732e-05/2.044e-05, allocations: 2.312 kB / 222 MB, free: 44 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.007893/0.007913, allocations: 10.04 MB / 232 MB, free: 5.953 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.006154/0.01407, allocations: 4.03 MB / 236.1 MB, free: 1.91 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007212/0.01479, allocations: 79.56 kB / 236.2 MB, free: 1.832 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002338/0.01713, allocations: 2.254 MB / 238.4 MB, free: 15.57 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002721/0.01985, allocations: 1.968 MB / 240.4 MB, free: 13.59 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.02087, allocations: 0.7641 MB / 241.1 MB, free: 12.83 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003672/0.02454, allocations: 5.084 MB / 246.2 MB, free: 7.734 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001916/0.02646, allocations: 2.636 MB / 248.9 MB, free: 5.035 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00235/0.02881, allocations: 2.861 MB / 251.7 MB, free: 2.164 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001858/0.03066, allocations: 2.264 MB / 254 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003307/0.03099, allocations: 316 kB / 254.3 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001375/0.03237, allocations: 1.178 MB / 255.5 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001101/0.03347, allocations: 1.808 MB / 257.3 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008326/0.0343, allocations: 0.9972 MB / 258.3 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003203/0.03751, allocations: 4.18 MB / 262.5 MB, free: 7.398 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.123e-05/0.03752, allocations: 0 / 262.5 MB, free: 7.398 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.03752, allocations: 0 / 262.5 MB, free: 7.398 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.492e-05/0.03756, allocations: 0 / 262.5 MB, free: 7.398 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.005005/0.04257, allocations: 5.216 MB / 267.7 MB, free: 2.109 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.056e-05/0.0426, allocations: 12.02 kB / 267.7 MB, free: 2.098 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003907/0.04651, allocations: 1.238 MB / 268.9 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002497/0.049, allocations: 2.144 MB / 271.1 MB, free: 14.66 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/0.04911, allocations: 205.4 kB / 271.3 MB, free: 14.45 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003207/0.04943, allocations: 267.8 kB / 271.5 MB, free: 14.19 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004298/0.05373, allocations: 4.427 MB / 276 MB, free: 9.086 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.619e-05/0.0538, allocations: 51.58 kB / 276 MB, free: 9.035 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002219/0.05402, allocations: 127.9 kB / 276.1 MB, free: 8.91 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001217/0.05524, allocations: 1.423 MB / 277.5 MB, free: 7.488 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003002/0.05824, allocations: 2.203 MB / 279.8 MB, free: 5.266 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1667/0.225, allocations: 28.06 MB / 307.8 MB, free: 24.11 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002995/0.228, allocations: 1.247 MB / 309.1 MB, free: 23.9 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004188/0.2284, allocations: 303.6 kB / 309.4 MB, free: 23.87 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004388/0.2328, allocations: 3.24 MB / 312.6 MB, free: 23.11 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.451e-05/0.2328, allocations: 45.22 kB / 312.6 MB, free: 23.07 MB / 282.7 MB Notification: Performance of pre-optimization done (n=121): time 3.777e-06/0.2328, allocations: 0 / 312.6 MB, free: 23.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=132): time 0.0124/0.2452, allocations: 5.383 MB / 318 MB, free: 22.21 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.2452, allocations: 145.4 kB / 318.2 MB, free: 22.05 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002613/0.2479, allocations: 3.144 MB / 321.3 MB, free: 21.25 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.542e-05/0.2479, allocations: 47.64 kB / 321.4 MB, free: 21.2 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001158/0.2491, allocations: 2.765 MB / 324.1 MB, free: 19.12 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002846/0.2494, allocations: 0.5555 MB / 324.7 MB, free: 18.65 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000736/0.2501, allocations: 1.059 MB / 325.7 MB, free: 17.98 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.61e-05/0.2501, allocations: 311.5 kB / 326 MB, free: 17.68 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009406/0.2511, allocations: 0.6847 MB / 326.7 MB, free: 17.45 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001878/0.253, allocations: 4.092 MB / 330.8 MB, free: 12.3 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003752/0.2567, allocations: 5.544 MB / 336.4 MB, free: 5.438 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.929e-05/0.2567, allocations: 36 kB / 336.4 MB, free: 5.402 MB / 282.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.004307/0.2611, allocations: 3.837 MB / 340.2 MB, free: 1.547 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.54e-05/0.2611, allocations: 60.25 kB / 340.3 MB, free: 1.488 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001157/0.2612, allocations: 131.9 kB / 340.4 MB, free: 1.359 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008565/0.2621, allocations: 407.2 kB / 340.8 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002085/0.2642, allocations: 1.369 MB / 342.2 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002325/0.2665, allocations: 2.155 MB / 344.3 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002442/0.2689, allocations: 247.7 kB / 344.6 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002894/0.2692, allocations: 288 kB / 344.9 MB, free: 12.83 MB / 298.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.001227/0.2705, allocations: 0.5786 MB / 345.4 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003374/0.2708, allocations: 203.8 kB / 345.6 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001173/0.272, allocations: 0.7807 MB / 346.4 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.688e-05/0.272, allocations: 15.94 kB / 346.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.272, allocations: 4 kB / 346.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.272, allocations: 7.969 kB / 346.5 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005213/0.2772, allocations: 3.556 MB / 350 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.267e-05/0.2772, allocations: 19.97 kB / 350 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005016/0.2777, allocations: 199.7 kB / 350.2 MB, free: 7.312 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005803/0.2783, allocations: 417.6 kB / 350.6 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008448/0.2792, allocations: 417.5 kB / 351 MB, free: 6.492 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.714e-05/0.2792, allocations: 28.88 kB / 351.1 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001961/0.2812, allocations: 1.908 MB / 353 MB, free: 4.473 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.458e-06/0.2812, allocations: 12.64 kB / 353 MB, free: 4.461 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001823/0.283, allocations: 1.682 MB / 354.7 MB, free: 2.656 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002441/0.2833, allocations: 31.98 kB / 354.7 MB, free: 2.625 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006562/0.2839, allocations: 32 kB / 354.7 MB, free: 2.594 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/0.2841, allocations: 104.1 kB / 354.8 MB, free: 2.492 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.626e-05/0.2841, allocations: 35.5 kB / 354.9 MB, free: 2.461 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001204/0.2853, allocations: 1.19 MB / 356.1 MB, free: 1.285 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2853, allocations: 0 / 356.1 MB, free: 1.285 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.003305/0.2886, allocations: 0.9921 MB / 357 MB, free: 300 kB / 298.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.00038/0.289, allocations: 168 kB / 357.2 MB, free: 124 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003145/0.2922, allocations: 2.345 MB / 359.6 MB, free: 13.87 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001958/0.2923, allocations: 111.3 kB / 359.7 MB, free: 13.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006606/0.293, allocations: 0.5537 MB / 360.2 MB, free: 13.19 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002897/0.2959, allocations: 3.121 MB / 363.3 MB, free: 9.641 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01213/0.308, allocations: 6.939 MB / 370.3 MB, free: 2.535 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001006/0.309, allocations: 1.127 MB / 371.4 MB, free: 1.387 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.00108/0.3101, allocations: 465.5 kB / 371.9 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007801/0.3109, allocations: 0.5089 MB / 372.4 MB, free: 428 kB / 314.7 MB Notification: Performance of SimCode: time 2.254e-06/0.3109, allocations: 0 / 372.4 MB, free: 428 kB / 314.7 MB Notification: Performance of Templates: time 0.04878/0.3597, allocations: 30.17 MB / 402.5 MB, free: 2.148 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2829714799299836]