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.000916/0.000916, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001453/0.001453, allocations: 164.4 kB / 24.82 MB, free: 9.266 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.914/0.914, allocations: 177.1 MB / 205.3 MB, free: 5.473 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.783e-06/1.783e-06, allocations: 0 / 273.4 MB, free: 1.273 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.168e-05/1.347e-05, allocations: 2.312 kB / 273.4 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.007681/0.007695, allocations: 9.848 MB / 283.2 MB, free: 7.379 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00586/0.01355, allocations: 3.884 MB / 287.1 MB, free: 3.484 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007652/0.01432, allocations: 83.56 kB / 287.2 MB, free: 3.402 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002298/0.01662, allocations: 2.328 MB / 289.5 MB, free: 1.066 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1217/0.1383, allocations: 1.933 MB / 291.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001607/0.1399, allocations: 0.8361 MB / 292.3 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006347/0.1462, allocations: 5.998 MB / 298.3 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003227/0.1494, allocations: 3.016 MB / 301.3 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003277/0.1527, allocations: 3.29 MB / 304.6 MB, free: 12.33 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002199/0.1549, allocations: 2.367 MB / 307 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005181/0.1554, allocations: 313 kB / 307.3 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001166/0.1566, allocations: 1.136 MB / 308.4 MB, free: 11.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008393/0.1574, allocations: 1.982 MB / 310.4 MB, free: 10.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007657/0.1582, allocations: 1.222 MB / 311.6 MB, free: 9.07 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002454/0.1607, allocations: 4.498 MB / 316.1 MB, free: 4.855 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1607, allocations: 0 / 316.1 MB, free: 4.855 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.81e-07/0.1607, allocations: 0 / 316.1 MB, free: 4.855 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.155e-05/0.1607, allocations: 0 / 316.1 MB, free: 4.855 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.004237/0.1649, allocations: 4.885 MB / 321 MB, free: 260 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.165, allocations: 12.03 kB / 321 MB, free: 248 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01061/0.1756, allocations: 2.595 MB / 323.6 MB, free: 13.68 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002816/0.1784, allocations: 2.254 MB / 325.9 MB, free: 11.53 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.818e-05/0.1785, allocations: 197.1 kB / 326.1 MB, free: 11.36 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003245/0.1788, allocations: 283.5 kB / 326.3 MB, free: 11.12 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005283/0.1841, allocations: 4.947 MB / 331.3 MB, free: 5.664 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.639e-05/0.1842, allocations: 43.33 kB / 331.3 MB, free: 5.641 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002282/0.1844, allocations: 125.3 kB / 331.4 MB, free: 5.551 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001246/0.1857, allocations: 1.513 MB / 333 MB, free: 4.062 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003561/0.1892, allocations: 2.178 MB / 335.1 MB, free: 2.062 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02267/0.2119, allocations: 38.96 MB / 374.1 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002938/0.2148, allocations: 1.243 MB / 375.3 MB, free: 9.742 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004226/0.2153, allocations: 385.7 kB / 375.7 MB, free: 9.359 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003815/0.2191, allocations: 3.475 MB / 379.2 MB, free: 5.91 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.2191, allocations: 53.42 kB / 379.2 MB, free: 5.852 MB / 330.7 MB Notification: Performance of pre-optimization done (n=121): time 2.345e-06/0.2191, allocations: 4 kB / 379.2 MB, free: 5.848 MB / 330.7 MB Notification: Performance of matching and sorting (n=132): time 0.01307/0.2322, allocations: 5.953 MB / 385.2 MB, free: 15.89 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.71e-05/0.2323, allocations: 251.5 kB / 385.4 MB, free: 15.59 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003078/0.2353, allocations: 3.489 MB / 388.9 MB, free: 12.11 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.979e-05/0.2354, allocations: 41.7 kB / 389 MB, free: 12.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001463/0.2369, allocations: 3.192 MB / 392.2 MB, free: 8.848 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003537/0.2372, allocations: 0.5779 MB / 392.7 MB, free: 8.266 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009492/0.2382, allocations: 1.243 MB / 394 MB, free: 7.012 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.997e-05/0.2383, allocations: 476.8 kB / 394.4 MB, free: 6.543 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007443/0.239, allocations: 0.5143 MB / 395 MB, free: 6.023 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003133/0.2421, allocations: 5.737 MB / 400.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0049/0.247, allocations: 6.705 MB / 407.4 MB, free: 4.965 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.393e-05/0.2471, allocations: 36 kB / 407.4 MB, free: 4.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.004758/0.2518, allocations: 4.517 MB / 412 MB, free: 416 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.806e-05/0.2519, allocations: 56 kB / 412 MB, free: 360 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.022e-05/0.252, allocations: 120 kB / 412.1 MB, free: 240 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008011/0.2528, allocations: 409.2 kB / 412.5 MB, free: 15.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002102/0.2549, allocations: 1.232 MB / 413.8 MB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001977/0.2568, allocations: 2.759 MB / 416.5 MB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001883/0.2587, allocations: 243.9 kB / 416.8 MB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002308/0.259, allocations: 291.9 kB / 417 MB, free: 11.2 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.0008639/0.2598, allocations: 0.6031 MB / 417.6 MB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003276/0.2601, allocations: 353.8 kB / 418 MB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001141/0.2613, allocations: 0.8819 MB / 418.9 MB, free: 9.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.595e-05/0.2613, allocations: 16 kB / 418.9 MB, free: 9.324 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.2613, allocations: 3.984 kB / 418.9 MB, free: 9.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.2613, allocations: 11.98 kB / 418.9 MB, free: 9.309 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004976/0.2663, allocations: 4.148 MB / 423.1 MB, free: 5.008 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/0.2663, allocations: 8.781 kB / 423.1 MB, free: 5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004011/0.2667, allocations: 191.6 kB / 423.2 MB, free: 4.812 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000567/0.2673, allocations: 236.2 kB / 423.5 MB, free: 4.578 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.619e-05/0.2673, allocations: 31.98 kB / 423.5 MB, free: 4.547 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001516/0.2688, allocations: 2.467 MB / 426 MB, free: 1.977 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/0.2688, allocations: 15.88 kB / 426 MB, free: 1.961 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001892/0.2707, allocations: 1.977 MB / 428 MB, free: 15.85 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003199/0.2711, allocations: 345.5 kB / 428.3 MB, free: 15.51 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000184/0.2712, allocations: 28 kB / 428.3 MB, free: 15.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005701/0.2718, allocations: 31.98 kB / 428.4 MB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.2719, allocations: 92.23 kB / 428.5 MB, free: 15.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-05/0.272, allocations: 36 kB / 428.5 MB, free: 15.32 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001119/0.2731, allocations: 1.437 MB / 429.9 MB, free: 13.9 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2731, allocations: 4 kB / 429.9 MB, free: 13.89 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002458/0.2755, allocations: 0.9686 MB / 430.9 MB, free: 12.93 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.0002535/0.2758, allocations: 166.9 kB / 431.1 MB, free: 12.75 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002318/0.2781, allocations: 2.492 MB / 433.6 MB, free: 10.26 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.2781, allocations: 0 / 433.6 MB, free: 10.26 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005109/0.2786, allocations: 0.5847 MB / 434.1 MB, free: 9.652 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00128/0.2799, allocations: 434.4 kB / 434.6 MB, free: 9.242 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006761/0.2867, allocations: 6.86 MB / 441.4 MB, free: 2.199 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001103/0.2878, allocations: 1.125 MB / 442.5 MB, free: 1.059 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009431/0.2887, allocations: 465.3 kB / 443 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007087/0.2894, allocations: 0.5645 MB / 443.6 MB, free: 36 kB / 394.7 MB Notification: Performance of SimCode: time 8.01e-07/0.2894, allocations: 0 / 443.6 MB, free: 36 kB / 394.7 MB Notification: Performance of Templates: time 0.1477/0.4371, allocations: 30.04 MB / 473.6 MB, free: 114.7 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.715851695742458]