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.002135/0.002135, allocations: 99.86 kB / 20.96 MB, free: 3.453 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.001927/0.001927, allocations: 145.1 kB / 24.26 MB, free: 164 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 1.521/1.521, allocations: 173.4 MB / 200.8 MB, free: 9.32 MB / 186.7 MB " [Timeout remaining time 178] 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.593e-06/1.593e-06, allocations: 0 / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.635e-05/2.794e-05, allocations: 2.312 kB / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01457/0.0146, allocations: 10.13 MB / 277.5 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008989/0.02359, allocations: 3.882 MB / 281.3 MB, free: 8.664 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001698/0.02528, allocations: 79.56 kB / 281.4 MB, free: 8.586 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00523/0.03051, allocations: 2.363 MB / 283.8 MB, free: 6.215 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005366/0.03588, allocations: 1.975 MB / 285.8 MB, free: 4.23 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002013/0.03789, allocations: 0.8381 MB / 286.6 MB, free: 3.391 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1268/0.1647, allocations: 5.822 MB / 292.4 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004573/0.1692, allocations: 3.011 MB / 295.4 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005026/0.1743, allocations: 2.33 MB / 297.8 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003816/0.1781, allocations: 2.401 MB / 300.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008254/0.1789, allocations: 311.8 kB / 300.5 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002323/0.1812, allocations: 1.144 MB / 301.6 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001589/0.1828, allocations: 2.001 MB / 303.6 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001533/0.1843, allocations: 1.229 MB / 304.8 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006074/0.1904, allocations: 6.852 MB / 311.7 MB, free: 10.31 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.1904, allocations: 3.984 kB / 311.7 MB, free: 10.31 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1904, allocations: 0 / 311.7 MB, free: 10.31 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001423/0.1906, allocations: 0 / 311.7 MB, free: 10.31 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.0111/0.2017, allocations: 5.528 MB / 317.2 MB, free: 6.105 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.2017, allocations: 12.92 kB / 317.2 MB, free: 6.094 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02782/0.2295, allocations: 3.586 MB / 320.8 MB, free: 2.543 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008211/0.2377, allocations: 3.029 MB / 323.8 MB, free: 15.61 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002202/0.238, allocations: 199.6 kB / 324 MB, free: 15.45 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001007/0.239, allocations: 270.6 kB / 324.3 MB, free: 15.21 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01388/0.2529, allocations: 5.83 MB / 330.1 MB, free: 8.668 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001471/0.253, allocations: 41.09 kB / 330.2 MB, free: 8.645 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000403/0.2534, allocations: 133.1 kB / 330.3 MB, free: 8.551 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003722/0.2571, allocations: 1.77 MB / 332.1 MB, free: 6.805 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01112/0.2682, allocations: 3.248 MB / 335.3 MB, free: 3.723 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0596/0.3278, allocations: 42.4 MB / 377.7 MB, free: 8.52 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006991/0.3348, allocations: 1.728 MB / 379.5 MB, free: 6.75 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001573/0.3364, allocations: 0.661 MB / 380.1 MB, free: 6.078 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003659/0.3368, allocations: 107.3 kB / 380.2 MB, free: 5.977 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.412e-05/0.3368, allocations: 54.39 kB / 380.3 MB, free: 5.91 MB / 330.7 MB Notification: Performance of pre-optimization done (n=160): time 4.819e-06/0.3368, allocations: 0 / 380.3 MB, free: 5.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=190): time 0.05539/0.3922, allocations: 15.12 MB / 395.4 MB, free: 6.816 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001854/0.3924, allocations: 252.6 kB / 395.6 MB, free: 6.516 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007116/0.3995, allocations: 4.22 MB / 399.9 MB, free: 2.285 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00044/0.4, allocations: 49.7 kB / 399.9 MB, free: 2.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00329/0.4033, allocations: 3.243 MB / 403.2 MB, free: 15 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001501/0.4048, allocations: 0.8358 MB / 404 MB, free: 14.17 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002469/0.4072, allocations: 1.473 MB / 405.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002709/0.4075, allocations: 476.8 kB / 405.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002309/0.4098, allocations: 0.8467 MB / 406.8 MB, free: 11.36 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007456/0.4173, allocations: 5.935 MB / 412.7 MB, free: 3.25 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01124/0.4285, allocations: 7.485 MB / 420.2 MB, free: 9.707 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001608/0.4287, allocations: 35.75 kB / 420.2 MB, free: 9.676 MB / 378.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.0171/0.4458, allocations: 6.27 MB / 426.5 MB, free: 3.395 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.294e-05/0.4459, allocations: 52 kB / 426.5 MB, free: 3.344 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001433/0.446, allocations: 116 kB / 426.7 MB, free: 3.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006208/0.4522, allocations: 1.414 MB / 428.1 MB, free: 1.812 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004475/0.4567, allocations: 1.279 MB / 429.4 MB, free: 0.5312 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1239/0.5806, allocations: 5.214 MB / 434.6 MB, free: 110 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004723/0.5853, allocations: 408.7 kB / 435 MB, free: 110 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008198/0.5861, allocations: 338.7 kB / 435.3 MB, free: 110 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.001905/0.588, allocations: 0.6893 MB / 436 MB, free: 109.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008515/0.5889, allocations: 385.4 kB / 436.4 MB, free: 109.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007762/0.5966, allocations: 2.634 MB / 439 MB, free: 109.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.895e-05/0.5967, allocations: 24.12 kB / 439 MB, free: 109.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-05/0.5967, allocations: 8.594 kB / 439 MB, free: 109.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-05/0.5967, allocations: 8.469 kB / 439 MB, free: 109.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01632/0.6131, allocations: 7.292 MB / 446.3 MB, free: 109 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-05/0.6131, allocations: 2.25 kB / 446.3 MB, free: 109 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001307/0.6144, allocations: 270.6 kB / 446.6 MB, free: 109 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005382/0.6198, allocations: 1.238 MB / 447.8 MB, free: 108.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002371/0.62, allocations: 37.53 kB / 447.9 MB, free: 108.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007946/0.628, allocations: 4.416 MB / 452.3 MB, free: 106.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.628, allocations: 0 / 452.3 MB, free: 106.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008385/0.6363, allocations: 3.845 MB / 456.1 MB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/0.6374, allocations: 358.4 kB / 456.5 MB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004617/0.6379, allocations: 28.31 kB / 456.5 MB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001892/0.6398, allocations: 197.2 kB / 456.7 MB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003932/0.6402, allocations: 127.3 kB / 456.8 MB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001401/0.6403, allocations: 45.5 kB / 456.9 MB, free: 104.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002622/0.6429, allocations: 1.8 MB / 458.7 MB, free: 104.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.6429, allocations: 0 / 458.7 MB, free: 104.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004799/0.6477, allocations: 1.214 MB / 459.9 MB, free: 104.1 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.000491/0.6482, allocations: 192.9 kB / 460.1 MB, free: 104 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005965/0.6542, allocations: 3.66 MB / 463.7 MB, free: 102.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.6542, allocations: 0 / 463.7 MB, free: 102.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001901/0.6561, allocations: 1.18 MB / 464.9 MB, free: 101.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002664/0.6587, allocations: 439.6 kB / 465.3 MB, free: 101 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01113/0.6699, allocations: 7.506 MB / 472.8 MB, free: 93.47 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002281/0.6721, allocations: 2.31 MB / 475.2 MB, free: 91.13 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003075/0.6752, allocations: 1.516 MB / 476.7 MB, free: 89.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007803/0.676, allocations: 232.4 kB / 476.9 MB, free: 89.39 MB / 378.7 MB Notification: Performance of SimCode: time 1.493e-06/0.676, allocations: 0 / 476.9 MB, free: 89.39 MB / 378.7 MB Notification: Performance of Templates: time 0.06099/0.737, allocations: 42.35 MB / 0.5071 GB, free: 47.54 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.516651110956445]