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.001838/0.001838, allocations: 107.5 kB / 20.43 MB, free: 1.066 MB / 14.72 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.002094/0.002094, allocations: 185.9 kB / 23.7 MB, free: 4.188 MB / 14.72 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.413/1.413, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 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 0.001567/0.001567, allocations: 43.92 kB / 370.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2828, allocations: 52.19 MB / 423.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01241/0.2952, allocations: 9.153 MB / 432.2 MB, free: 5.301 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008738/0.304, allocations: 3.777 MB / 436 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001625/0.3056, allocations: 79.56 kB / 436.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004845/0.3104, allocations: 2.161 MB / 438.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006296/0.3167, allocations: 1.907 MB / 440.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002295/0.319, allocations: 0.7526 MB / 440.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009682/0.3287, allocations: 5.176 MB / 446.1 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004341/0.333, allocations: 2.4 MB / 448.5 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003549/0.3366, allocations: 1.515 MB / 450 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004276/0.3409, allocations: 2.106 MB / 452.1 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001316/0.3422, allocations: 300 kB / 452.4 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003039/0.3452, allocations: 1.088 MB / 453.5 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002681/0.3479, allocations: 1.893 MB / 455.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003615/0.3515, allocations: 1.542 MB / 456.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009749/0.3613, allocations: 6.732 MB / 463.7 MB, free: 5.738 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.3613, allocations: 0 / 463.7 MB, free: 5.738 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3613, allocations: 0 / 463.7 MB, free: 5.738 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001819/0.3615, allocations: 4 kB / 463.7 MB, free: 5.734 MB / 366.1 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.01087/0.3723, allocations: 4.709 MB / 468.4 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.3724, allocations: 8.031 kB / 468.4 MB, free: 0.957 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02699/0.3994, allocations: 3.119 MB / 471.5 MB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01009/0.4094, allocations: 3.283 MB / 474.8 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002168/0.4097, allocations: 197 kB / 475 MB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001086/0.4108, allocations: 275.8 kB / 475.2 MB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01713/0.4279, allocations: 8.963 MB / 484.2 MB, free: 404 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001339/0.428, allocations: 43.59 kB / 484.2 MB, free: 360 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003598/0.4284, allocations: 127.9 kB / 484.4 MB, free: 232 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003418/0.4318, allocations: 1.766 MB / 486.1 MB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01558/0.4474, allocations: 7.764 MB / 493.9 MB, free: 6.688 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04641/0.4938, allocations: 33.36 MB / 0.5149 GB, free: 4.375 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00868/0.5025, allocations: 3.229 MB / 0.5181 GB, free: 1.109 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003184/0.5056, allocations: 2.022 MB / 0.52 GB, free: 15.08 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003739/0.506, allocations: 84.95 kB / 0.5201 GB, free: 15 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.678e-05/0.5061, allocations: 59.5 kB / 0.5202 GB, free: 14.93 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 6.602e-06/0.5061, allocations: 3.984 kB / 0.5202 GB, free: 14.92 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.2611/0.7672, allocations: 21.42 MB / 0.5411 GB, free: 105.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.378e-05/0.7672, allocations: 252.5 kB / 0.5413 GB, free: 105.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004153/0.7714, allocations: 3.711 MB / 0.545 GB, free: 104.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003368/0.7717, allocations: 56.48 kB / 0.545 GB, free: 104.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001333/0.7731, allocations: 2.905 MB / 0.5478 GB, free: 102.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005557/0.7736, allocations: 0.7547 MB / 0.5486 GB, free: 101.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001253/0.7749, allocations: 1.179 MB / 0.5497 GB, free: 101 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.25e-05/0.7749, allocations: 301.1 kB / 0.55 GB, free: 100.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002669/0.7776, allocations: 2.384 MB / 0.5524 GB, free: 99.92 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003571/0.7811, allocations: 5.742 MB / 0.558 GB, free: 94.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006972/0.7881, allocations: 8.572 MB / 0.5663 GB, free: 85.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.835e-05/0.7882, allocations: 32 kB / 0.5664 GB, free: 85.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.014/0.8022, allocations: 9.595 MB / 0.5757 GB, free: 75.59 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.717e-05/0.8022, allocations: 56.2 kB / 0.5758 GB, free: 75.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.582e-05/0.8023, allocations: 116 kB / 0.5759 GB, free: 75.42 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004908/0.8072, allocations: 2.016 MB / 0.5779 GB, free: 73.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003414/0.8106, allocations: 1.283 MB / 0.5791 GB, free: 72.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01206/0.8227, allocations: 11.1 MB / 0.59 GB, free: 60.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004239/0.8269, allocations: 347.6 kB / 0.5903 GB, free: 60.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004943/0.8274, allocations: 336 kB / 0.5906 GB, free: 60.24 MB / 446.1 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.0022/0.8296, allocations: 1.935 MB / 0.5925 GB, free: 58.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005116/0.8301, allocations: 341.7 kB / 0.5928 GB, free: 57.96 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007873/0.838, allocations: 4.829 MB / 0.5975 GB, free: 53.12 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-05/0.838, allocations: 26.28 kB / 0.5976 GB, free: 53.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/0.8381, allocations: 8 kB / 0.5976 GB, free: 53.09 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/0.8381, allocations: 7.969 kB / 0.5976 GB, free: 53.08 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01366/0.8517, allocations: 8.918 MB / 0.6063 GB, free: 44.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.906e-06/0.8517, allocations: 0 / 0.6063 GB, free: 44.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001156/0.8529, allocations: 267.7 kB / 0.6065 GB, free: 43.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004723/0.8576, allocations: 1.842 MB / 0.6083 GB, free: 42.05 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001672/0.8578, allocations: 31.42 kB / 0.6084 GB, free: 42.03 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01082/0.8686, allocations: 10.15 MB / 0.6183 GB, free: 31.76 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.8686, allocations: 3.984 kB / 0.6183 GB, free: 31.76 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01051/0.8791, allocations: 7.918 MB / 0.626 GB, free: 23.82 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008265/0.8799, allocations: 305.7 kB / 0.6263 GB, free: 23.52 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004257/0.8804, allocations: 35.94 kB / 0.6264 GB, free: 23.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001512/0.8819, allocations: 135.8 kB / 0.6265 GB, free: 23.35 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003097/0.8822, allocations: 120.9 kB / 0.6266 GB, free: 23.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/0.8823, allocations: 48 kB / 0.6266 GB, free: 23.19 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002385/0.8847, allocations: 2.189 MB / 0.6288 GB, free: 21.01 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.8847, allocations: 0 / 0.6288 GB, free: 21.01 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00402/0.8887, allocations: 1.066 MB / 0.6298 GB, free: 19.94 MB / 446.1 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.0003554/0.8891, allocations: 166.3 kB / 0.63 GB, free: 19.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006813/0.8959, allocations: 5.558 MB / 0.6354 GB, free: 14.22 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.8959, allocations: 4.125 kB / 0.6354 GB, free: 14.22 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002302/0.8982, allocations: 1.944 MB / 0.6373 GB, free: 12.27 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002379/0.9006, allocations: 425.8 kB / 0.6377 GB, free: 11.86 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01256/0.9131, allocations: 9.574 MB / 0.6471 GB, free: 2.238 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002651/0.9158, allocations: 2.542 MB / 0.6496 GB, free: 15.66 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004358/0.9201, allocations: 1.78 MB / 0.6513 GB, free: 13.88 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007032/0.9208, allocations: 223.4 kB / 0.6515 GB, free: 13.66 MB / 462.1 MB Notification: Performance of SimCode: time 7.51e-07/0.9208, allocations: 4 kB / 0.6515 GB, free: 13.66 MB / 462.1 MB Notification: Performance of Templates: time 0.08244/1.003, allocations: 44.02 MB / 0.6945 GB, free: 2.113 MB / 494.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 480] 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.5254821591079235]