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.001426/0.001426, allocations: 80.06 kB / 21.19 MB, free: 3.383 MB / 18.57 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.001376/0.001376, allocations: 141.1 kB / 24.54 MB, free: 32 kB / 18.57 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.9347/0.9347, allocations: 173.3 MB / 201.1 MB, free: 8.996 MB / 186.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.724e-06/1.724e-06, allocations: 3.938 kB / 268 MB, free: 6.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.326e-05/3.499e-05, allocations: 2.312 kB / 268 MB, free: 6.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.00878/0.008815, allocations: 10.19 MB / 278.2 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006838/0.01565, allocations: 3.909 MB / 282.1 MB, free: 8.109 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001561/0.01721, allocations: 79.56 kB / 282.2 MB, free: 8.031 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00301/0.02022, allocations: 2.355 MB / 284.5 MB, free: 5.668 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004302/0.02453, allocations: 1.983 MB / 286.5 MB, free: 3.676 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001466/0.02599, allocations: 0.8421 MB / 287.4 MB, free: 2.832 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1438/0.1698, allocations: 5.828 MB / 293.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005864/0.1757, allocations: 3.008 MB / 296.2 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00619/0.1819, allocations: 2.326 MB / 298.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003706/0.1856, allocations: 2.399 MB / 300.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001039/0.1866, allocations: 314.8 kB / 301.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00258/0.1892, allocations: 1.15 MB / 302.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001663/0.1909, allocations: 1.998 MB / 304.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002199/0.1931, allocations: 1.228 MB / 305.6 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006352/0.1994, allocations: 4.551 MB / 310.2 MB, free: 11.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.1994, allocations: 0 / 310.2 MB, free: 11.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1994, allocations: 0 / 310.2 MB, free: 11.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002497/0.1997, allocations: 0 / 310.2 MB, free: 11.8 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.008562/0.2082, allocations: 5.128 MB / 315.3 MB, free: 8.137 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.2083, allocations: 8.922 kB / 315.3 MB, free: 8.129 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01483/0.2231, allocations: 3.586 MB / 318.9 MB, free: 4.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005317/0.2284, allocations: 2.937 MB / 321.8 MB, free: 1.734 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001224/0.2286, allocations: 199.1 kB / 322 MB, free: 1.57 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008836/0.2294, allocations: 275.8 kB / 322.3 MB, free: 1.332 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007835/0.2373, allocations: 5.442 MB / 327.7 MB, free: 11.17 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001152/0.2374, allocations: 36.92 kB / 327.8 MB, free: 11.15 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002951/0.2377, allocations: 127.5 kB / 327.9 MB, free: 11.06 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001985/0.2397, allocations: 1.766 MB / 329.6 MB, free: 9.316 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007752/0.2474, allocations: 2.961 MB / 332.6 MB, free: 6.531 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03214/0.2796, allocations: 39.01 MB / 371.6 MB, free: 14.78 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003511/0.2831, allocations: 1.662 MB / 373.3 MB, free: 13.09 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007885/0.2839, allocations: 0.6476 MB / 373.9 MB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002082/0.2841, allocations: 100.9 kB / 374 MB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.652e-05/0.2841, allocations: 50.5 kB / 374.1 MB, free: 12.27 MB / 330.7 MB Notification: Performance of pre-optimization done (n=160): time 3.687e-06/0.2841, allocations: 7.219 kB / 374.1 MB, free: 12.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=190): time 0.03146/0.3156, allocations: 14.91 MB / 389 MB, free: 13.38 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00024/0.3158, allocations: 255.3 kB / 389.2 MB, free: 13.07 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004231/0.32, allocations: 3.384 MB / 392.6 MB, free: 9.68 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005193/0.3206, allocations: 57.7 kB / 392.7 MB, free: 9.617 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002015/0.3226, allocations: 3.041 MB / 395.7 MB, free: 6.59 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001217/0.3238, allocations: 0.7813 MB / 396.5 MB, free: 5.816 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00133/0.3251, allocations: 1.25 MB / 397.8 MB, free: 4.551 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.3252, allocations: 476.8 kB / 398.2 MB, free: 4.082 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/0.3266, allocations: 0.7686 MB / 399 MB, free: 3.309 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003477/0.3301, allocations: 5.681 MB / 404.7 MB, free: 11.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006368/0.3364, allocations: 6.993 MB / 411.7 MB, free: 2.438 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001083/0.3365, allocations: 40 kB / 411.7 MB, free: 2.398 MB / 362.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01169/0.3482, allocations: 6.112 MB / 417.8 MB, free: 12.28 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.399e-05/0.3483, allocations: 52 kB / 417.9 MB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001133/0.3484, allocations: 116.1 kB / 418 MB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00331/0.3517, allocations: 1.377 MB / 419.4 MB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00284/0.3546, allocations: 1.283 MB / 420.6 MB, free: 9.445 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0065/0.3611, allocations: 4.99 MB / 425.6 MB, free: 4.336 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003407/0.3645, allocations: 415.3 kB / 426 MB, free: 3.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006915/0.3652, allocations: 338.4 kB / 426.4 MB, free: 3.602 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * 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 {(3,35,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001643/0.3668, allocations: 0.6071 MB / 427 MB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008388/0.3677, allocations: 385.7 kB / 427.3 MB, free: 2.602 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006133/0.3738, allocations: 2.568 MB / 429.9 MB, free: 16 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1471/0.5209, allocations: 18.8 kB / 429.9 MB, free: 114.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.052e-05/0.5209, allocations: 8.953 kB / 429.9 MB, free: 114.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.31e-05/0.521, allocations: 9.641 kB / 430 MB, free: 114.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01285/0.5338, allocations: 6.381 MB / 436.3 MB, free: 113.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.147e-05/0.5338, allocations: 1.969 kB / 436.3 MB, free: 113.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007419/0.5346, allocations: 266.1 kB / 436.6 MB, free: 113.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003113/0.5377, allocations: 1.224 MB / 437.8 MB, free: 113.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001233/0.5378, allocations: 32.36 kB / 437.9 MB, free: 113.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004974/0.5428, allocations: 4.233 MB / 442.1 MB, free: 111.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.5428, allocations: 1.906 kB / 442.1 MB, free: 111.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005653/0.5485, allocations: 3.691 MB / 445.8 MB, free: 111.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008694/0.5493, allocations: 350.2 kB / 446.1 MB, free: 111.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000273/0.5496, allocations: 28.5 kB / 446.1 MB, free: 111.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009567/0.5505, allocations: 197.6 kB / 446.3 MB, free: 111.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00024/0.5508, allocations: 119.3 kB / 446.5 MB, free: 111.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.119e-05/0.5509, allocations: 47.59 kB / 446.5 MB, free: 111.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002049/0.5529, allocations: 1.507 MB / 448 MB, free: 110.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5529, allocations: 0 / 448 MB, free: 110.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003385/0.5563, allocations: 1.215 MB / 449.2 MB, free: 110.9 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,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 (136): * Single equations (assignments): 132 * 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,33,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004179/0.5567, allocations: 186.3 kB / 449.4 MB, free: 110.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004388/0.5611, allocations: 3.336 MB / 452.7 MB, free: 110 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.5611, allocations: 0 / 452.7 MB, free: 110 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001332/0.5625, allocations: 1.083 MB / 453.8 MB, free: 109.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001558/0.564, allocations: 456.9 kB / 454.3 MB, free: 109.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009965/0.574, allocations: 7.428 MB / 461.7 MB, free: 104.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/0.575, allocations: 1.169 MB / 462.9 MB, free: 103.6 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002744/0.5778, allocations: 1.515 MB / 464.4 MB, free: 102.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006155/0.5784, allocations: 234.5 kB / 464.6 MB, free: 102.5 MB / 378.7 MB Notification: Performance of SimCode: time 1.603e-06/0.5784, allocations: 0 / 464.6 MB, free: 102.5 MB / 378.7 MB Notification: Performance of Templates: time 0.06254/0.6409, allocations: 42.39 MB / 0.4951 GB, free: 60.78 MB / 378.7 MB " [Timeout remaining time 659] 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 -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: 4.219736734870821]