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.0007775/0.0007775, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001029/0.001806, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0006223/0.0006223, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009777/0.0016, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.9013/0.9013, allocations: 173.4 MB / 185.8 MB, free: 8.988 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07466/0.976, allocations: 52.5 MB / 238.3 MB, free: 4.43 MB / 234.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.272e-06/1.272e-06, allocations: 0 / 239.6 MB, free: 3.168 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.082e-05/1.209e-05, allocations: 2.312 kB / 239.6 MB, free: 3.164 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.006954/0.006966, allocations: 10 MB / 249.6 MB, free: 9.117 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005209/0.01217, allocations: 4.032 MB / 253.6 MB, free: 5.07 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007/0.01287, allocations: 79.56 kB / 253.7 MB, free: 4.992 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002069/0.01494, allocations: 2.262 MB / 255.9 MB, free: 2.723 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002446/0.01739, allocations: 1.948 MB / 257.9 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009421/0.01833, allocations: 0.7719 MB / 258.6 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003736/0.02207, allocations: 5.271 MB / 263.9 MB, free: 10.71 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001989/0.02406, allocations: 2.624 MB / 266.5 MB, free: 8.023 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002634/0.02669, allocations: 3.04 MB / 269.6 MB, free: 4.98 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001861/0.02855, allocations: 2.249 MB / 271.8 MB, free: 2.727 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003544/0.02891, allocations: 312 kB / 272.1 MB, free: 2.422 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001257/0.03016, allocations: 1.19 MB / 273.3 MB, free: 1.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.105/0.1352, allocations: 1.792 MB / 275.1 MB, free: 9.508 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001864/0.1371, allocations: 0.9978 MB / 276.1 MB, free: 9.508 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004618/0.1417, allocations: 4.187 MB / 280.3 MB, free: 9.184 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.548e-05/0.1417, allocations: 0 / 280.3 MB, free: 9.184 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1417, allocations: 0 / 280.3 MB, free: 9.184 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001753/0.1419, allocations: 3.281 kB / 280.3 MB, free: 9.184 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.007016/0.1489, allocations: 5.201 MB / 285.5 MB, free: 7.238 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.1489, allocations: 9.625 kB / 285.5 MB, free: 7.238 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004136/0.1531, allocations: 1.226 MB / 286.7 MB, free: 7.219 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002543/0.1556, allocations: 2.111 MB / 288.9 MB, free: 6.652 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.45e-05/0.1557, allocations: 196.5 kB / 289 MB, free: 6.645 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003103/0.156, allocations: 278 kB / 289.3 MB, free: 6.637 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003838/0.1598, allocations: 4.432 MB / 293.8 MB, free: 4.758 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.28e-05/0.1599, allocations: 42.02 kB / 293.8 MB, free: 4.754 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002263/0.1601, allocations: 128.7 kB / 293.9 MB, free: 4.754 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001089/0.1612, allocations: 1.521 MB / 295.4 MB, free: 4.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002767/0.164, allocations: 2.202 MB / 297.6 MB, free: 4.629 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01722/0.1812, allocations: 28.07 MB / 325.7 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002788/0.184, allocations: 1.24 MB / 327 MB, free: 10.15 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003597/0.1844, allocations: 301.6 kB / 327.2 MB, free: 9.855 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003794/0.1881, allocations: 3.214 MB / 330.5 MB, free: 6.672 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.1882, allocations: 47.2 kB / 330.5 MB, free: 6.617 MB / 298.7 MB Notification: Performance of pre-optimization done (n=121): time 3.416e-06/0.1882, allocations: 0 / 330.5 MB, free: 6.617 MB / 298.7 MB Notification: Performance of matching and sorting (n=132): time 0.01181/0.2, allocations: 5.262 MB / 335.8 MB, free: 1.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.749e-05/0.2, allocations: 145.2 kB / 335.9 MB, free: 1.238 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002219/0.2023, allocations: 3.125 MB / 339 MB, free: 14.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.421e-05/0.2023, allocations: 41.7 kB / 339.1 MB, free: 14.64 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00127/0.2036, allocations: 2.778 MB / 341.9 MB, free: 12.03 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002879/0.2039, allocations: 0.5539 MB / 342.4 MB, free: 11.5 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008072/0.2047, allocations: 1.059 MB / 343.5 MB, free: 10.56 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.539e-05/0.2047, allocations: 305.1 kB / 343.8 MB, free: 10.26 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009323/0.2057, allocations: 0.6854 MB / 344.5 MB, free: 9.574 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00241/0.2081, allocations: 4.087 MB / 348.5 MB, free: 3.945 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003227/0.2113, allocations: 5.142 MB / 353.7 MB, free: 13.52 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-05/0.2113, allocations: 36 kB / 353.7 MB, free: 13.49 MB / 330.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.003682/0.215, allocations: 3.836 MB / 357.6 MB, free: 9.633 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.632e-05/0.2151, allocations: 56 kB / 357.6 MB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.684e-05/0.2151, allocations: 120 kB / 357.7 MB, free: 9.461 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007567/0.2159, allocations: 405 kB / 358.1 MB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002035/0.2179, allocations: 1.365 MB / 359.5 MB, free: 7.699 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002019/0.2199, allocations: 2.179 MB / 361.7 MB, free: 5.453 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001813/0.2218, allocations: 250.8 kB / 361.9 MB, free: 5.211 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002455/0.222, allocations: 288 kB / 362.2 MB, free: 4.93 MB / 330.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.001097/0.2231, allocations: 0.568 MB / 362.8 MB, free: 4.352 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002468/0.2234, allocations: 203.8 kB / 363 MB, free: 4.152 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001035/0.2244, allocations: 0.7886 MB / 363.7 MB, free: 3.352 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.311e-05/0.2244, allocations: 12 kB / 363.8 MB, free: 3.34 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.2244, allocations: 4 kB / 363.8 MB, free: 3.336 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.2244, allocations: 11.97 kB / 363.8 MB, free: 3.324 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003746/0.2282, allocations: 3.523 MB / 367.3 MB, free: 192 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-06/0.2282, allocations: 4 kB / 367.3 MB, free: 188 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004753/0.2286, allocations: 212.5 kB / 367.5 MB, free: 15.98 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002892/0.2289, allocations: 321.5 kB / 367.8 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009547/0.2299, allocations: 413.7 kB / 368.2 MB, free: 15.26 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.164e-05/0.2299, allocations: 29.88 kB / 368.3 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001372/0.2313, allocations: 1.905 MB / 370.2 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.2313, allocations: 15.88 kB / 370.2 MB, free: 13.24 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001392/0.2327, allocations: 1.68 MB / 371.9 MB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002188/0.2329, allocations: 31.92 kB / 371.9 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005976/0.2335, allocations: 35.98 kB / 371.9 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.2336, allocations: 99.53 kB / 372 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.026e-05/0.2337, allocations: 32 kB / 372 MB, free: 11.27 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009244/0.2346, allocations: 1.171 MB / 373.2 MB, free: 10.25 MB / 346.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2346, allocations: 3.062 kB / 373.2 MB, free: 10.25 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002492/0.2371, allocations: 0.9842 MB / 374.2 MB, free: 9.27 MB / 346.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.0003506/0.2374, allocations: 171.7 kB / 374.4 MB, free: 9.098 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002394/0.2398, allocations: 2.25 MB / 376.6 MB, free: 6.918 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001609/0.24, allocations: 107.1 kB / 376.7 MB, free: 6.809 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000471/0.2405, allocations: 489 kB / 377.2 MB, free: 6.328 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001733/0.2422, allocations: 0.8341 MB / 378 MB, free: 5.5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01054/0.2527, allocations: 6.922 MB / 385 MB, free: 14.44 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009339/0.2537, allocations: 1.115 MB / 386.1 MB, free: 13.3 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001017/0.2547, allocations: 461.5 kB / 386.5 MB, free: 12.85 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007455/0.2554, allocations: 0.5245 MB / 387.1 MB, free: 12.32 MB / 362.7 MB Notification: Performance of SimCode: time 1.563e-06/0.2554, allocations: 4 kB / 387.1 MB, free: 12.32 MB / 362.7 MB Notification: Performance of Templates: time 0.1446/0.4001, allocations: 30.86 MB / 417.9 MB, free: 119.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 -ignoreHideResult -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.565434632822871]