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.0007426/0.0007426, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001001/0.001743, allocations: 449.7 kB / 10.37 MB, free: 328 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.0006881/0.0006881, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008663/0.001554, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9168/0.9168, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08224/0.999, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.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.232e-06/1.232e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.658e-06/1.089e-05, allocations: 10.31 kB / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.007252/0.007263, allocations: 9.985 MB / 254.5 MB, free: 4.281 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005781/0.01304, allocations: 4.048 MB / 258.6 MB, free: 224 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009032/0.01395, allocations: 79.56 kB / 258.6 MB, free: 144 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002247/0.01619, allocations: 2.25 MB / 260.9 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002309/0.0185, allocations: 1.933 MB / 262.8 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000895/0.0194, allocations: 0.7602 MB / 263.6 MB, free: 11.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003472/0.02287, allocations: 5.489 MB / 269.1 MB, free: 5.684 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001671/0.02454, allocations: 2.616 MB / 271.7 MB, free: 3.004 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1228/0.1474, allocations: 3.031 MB / 274.7 MB, free: 5.699 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003557/0.1509, allocations: 2.249 MB / 277 MB, free: 5.699 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009075/0.1518, allocations: 312.3 kB / 277.3 MB, free: 5.699 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001748/0.1536, allocations: 1.171 MB / 278.4 MB, free: 5.699 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001387/0.155, allocations: 1.778 MB / 280.2 MB, free: 5.699 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001411/0.1564, allocations: 0.985 MB / 281.2 MB, free: 5.699 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004073/0.1605, allocations: 4.141 MB / 285.3 MB, free: 5.152 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.527e-05/0.1605, allocations: 0.7969 kB / 285.3 MB, free: 5.152 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1605, allocations: 4.25 kB / 285.3 MB, free: 5.152 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001185/0.1606, allocations: 0 / 285.3 MB, free: 5.152 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.005605/0.1662, allocations: 5.198 MB / 290.5 MB, free: 3.199 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.372e-05/0.1662, allocations: 10.16 kB / 290.6 MB, free: 3.199 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003762/0.17, allocations: 1.232 MB / 291.8 MB, free: 3.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002099/0.1721, allocations: 2.095 MB / 293.9 MB, free: 2.605 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.21e-05/0.1722, allocations: 202.7 kB / 294.1 MB, free: 2.598 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002838/0.1725, allocations: 272.8 kB / 294.3 MB, free: 2.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00355/0.176, allocations: 4.432 MB / 298.8 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.491e-05/0.1761, allocations: 53.81 kB / 298.8 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002126/0.1763, allocations: 127.7 kB / 299 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001093/0.1774, allocations: 1.519 MB / 300.5 MB, free: 15.99 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003224/0.1806, allocations: 2.201 MB / 302.7 MB, free: 14.07 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01754/0.1981, allocations: 28.07 MB / 330.7 MB, free: 1.973 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002507/0.2006, allocations: 1.243 MB / 332 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003543/0.201, allocations: 312.6 kB / 332.3 MB, free: 440 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004078/0.2051, allocations: 3.21 MB / 335.5 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.2051, allocations: 54.12 kB / 335.6 MB, free: 13.18 MB / 314.7 MB Notification: Performance of pre-optimization done (n=121): time 3.016e-06/0.2051, allocations: 0 / 335.6 MB, free: 13.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=132): time 0.01554/0.2207, allocations: 5.248 MB / 340.8 MB, free: 7.996 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.986e-05/0.2207, allocations: 141.2 kB / 340.9 MB, free: 7.828 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00303/0.2237, allocations: 3.126 MB / 344.1 MB, free: 5.262 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.637e-05/0.2238, allocations: 43.34 kB / 344.1 MB, free: 5.215 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001414/0.2252, allocations: 2.771 MB / 346.9 MB, free: 2.605 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000386/0.2256, allocations: 0.5595 MB / 347.4 MB, free: 2.074 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001081/0.2267, allocations: 1.052 MB / 348.5 MB, free: 1.137 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.5e-05/0.2268, allocations: 305.1 kB / 348.8 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00126/0.2281, allocations: 0.6824 MB / 349.5 MB, free: 152 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002947/0.231, allocations: 4.091 MB / 353.6 MB, free: 10.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004405/0.2354, allocations: 5.139 MB / 358.7 MB, free: 4.059 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.52e-05/0.2354, allocations: 32 kB / 358.7 MB, free: 4.027 MB / 330.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.005132/0.2406, allocations: 3.842 MB / 362.6 MB, free: 176 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.23e-05/0.2406, allocations: 56 kB / 362.6 MB, free: 120 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.67e-05/0.2407, allocations: 120 kB / 362.7 MB, free: 0 / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009722/0.2417, allocations: 400.6 kB / 363.1 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002867/0.2446, allocations: 1.38 MB / 364.5 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002238/0.2468, allocations: 2.178 MB / 366.7 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002464/0.2493, allocations: 251.7 kB / 366.9 MB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003331/0.2496, allocations: 289.8 kB / 367.2 MB, free: 11.45 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.001497/0.2511, allocations: 0.5708 MB / 367.8 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003456/0.2515, allocations: 191.8 kB / 368 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001357/0.2528, allocations: 0.7893 MB / 368.8 MB, free: 9.875 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-05/0.2528, allocations: 16 kB / 368.8 MB, free: 9.859 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.2528, allocations: 4 kB / 368.8 MB, free: 9.855 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.2529, allocations: 3.984 kB / 368.8 MB, free: 9.852 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004558/0.2574, allocations: 3.524 MB / 372.3 MB, free: 6.719 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.2574, allocations: 8 kB / 372.3 MB, free: 6.711 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004512/0.2579, allocations: 207.7 kB / 372.5 MB, free: 6.508 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003108/0.2582, allocations: 320.5 kB / 372.8 MB, free: 6.195 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007612/0.2589, allocations: 409.8 kB / 373.2 MB, free: 5.793 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.773e-05/0.259, allocations: 28 kB / 373.3 MB, free: 5.766 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001428/0.2604, allocations: 1.898 MB / 375.2 MB, free: 3.789 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.2604, allocations: 11.88 kB / 375.2 MB, free: 3.777 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001426/0.2619, allocations: 1.679 MB / 376.9 MB, free: 2.008 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001963/0.2621, allocations: 39.94 kB / 376.9 MB, free: 1.969 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005652/0.2626, allocations: 35.98 kB / 376.9 MB, free: 1.934 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.2627, allocations: 92.17 kB / 377 MB, free: 1.844 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.221e-05/0.2628, allocations: 39.98 kB / 377.1 MB, free: 1.805 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009947/0.2638, allocations: 1.164 MB / 378.2 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2638, allocations: 0 / 378.2 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002449/0.2662, allocations: 0.9648 MB / 379.2 MB, free: 15.75 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.0003362/0.2666, allocations: 170.5 kB / 379.4 MB, free: 15.58 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002307/0.2689, allocations: 2.257 MB / 381.6 MB, free: 13.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001639/0.269, allocations: 114.7 kB / 381.7 MB, free: 13.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004709/0.2695, allocations: 487.5 kB / 382.2 MB, free: 12.72 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001922/0.2714, allocations: 0.8259 MB / 383 MB, free: 11.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01033/0.2818, allocations: 6.907 MB / 389.9 MB, free: 4.836 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001152/0.2829, allocations: 1.123 MB / 391.1 MB, free: 3.691 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009124/0.2838, allocations: 461.4 kB / 391.5 MB, free: 3.238 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006889/0.2845, allocations: 0.5206 MB / 392 MB, free: 2.715 MB / 362.7 MB Notification: Performance of SimCode: time 7.42e-07/0.2845, allocations: 0 / 392 MB, free: 2.715 MB / 362.7 MB Notification: Performance of Templates: time 0.04142/0.3259, allocations: 30.75 MB / 422.8 MB, free: 4.266 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 -ignoreHideResult -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.6028178427368402]