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.001804/0.001804, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 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.001976/0.001976, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 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 1.494/1.494, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002127/0.002127, allocations: 47.92 kB / 373.5 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1386, allocations: 53.33 MB / 426.8 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.3174/0.456, allocations: 10.44 MB / 437.3 MB, free: 5.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01114/0.4672, allocations: 3.986 MB / 441.2 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002895/0.4701, allocations: 88.31 kB / 441.3 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004557/0.4746, allocations: 2.225 MB / 443.5 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005771/0.4804, allocations: 1.865 MB / 445.4 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002741/0.4831, allocations: 0.7415 MB / 446.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009055/0.4922, allocations: 5.256 MB / 451.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004416/0.4966, allocations: 2.464 MB / 453.9 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003782/0.5004, allocations: 1.511 MB / 455.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004745/0.5051, allocations: 2.208 MB / 457.6 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001069/0.5062, allocations: 305.9 kB / 457.9 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003005/0.5092, allocations: 1.214 MB / 459.1 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002549/0.5118, allocations: 1.871 MB / 461 MB, free: 10.74 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003869/0.5156, allocations: 2.054 MB / 463 MB, free: 9.184 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0113/0.5269, allocations: 6.658 MB / 469.7 MB, free: 4.621 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.07e-05/0.527, allocations: 0 / 469.7 MB, free: 4.621 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.437e-06/0.527, allocations: 1.375 kB / 469.7 MB, free: 4.621 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000348/0.5273, allocations: 0 / 469.7 MB, free: 4.621 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.01828/0.5456, allocations: 4.791 MB / 474.5 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/0.5456, allocations: 8.031 kB / 474.5 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02878/0.5744, allocations: 3.107 MB / 477.6 MB, free: 13.51 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009576/0.584, allocations: 3.286 MB / 480.9 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001925/0.5842, allocations: 201 kB / 481.1 MB, free: 9.965 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001065/0.5852, allocations: 275.8 kB / 481.3 MB, free: 9.695 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01704/0.6023, allocations: 8.859 MB / 490.2 MB, free: 184 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001417/0.6024, allocations: 47.62 kB / 490.3 MB, free: 136 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000406/0.6028, allocations: 123.9 kB / 490.4 MB, free: 12 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003497/0.6063, allocations: 1.766 MB / 492.1 MB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01742/0.6237, allocations: 7.791 MB / 499.9 MB, free: 6.453 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05177/0.6755, allocations: 35.91 MB / 0.5233 GB, free: 1.504 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009245/0.6848, allocations: 3.7 MB / 0.5269 GB, free: 13.66 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003077/0.6878, allocations: 2.005 MB / 0.5289 GB, free: 11.64 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005019/0.6883, allocations: 336 kB / 0.5292 GB, free: 11.25 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.509e-05/0.6884, allocations: 55.48 kB / 0.5292 GB, free: 11.19 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 5.21e-06/0.6884, allocations: 4 kB / 0.5292 GB, free: 11.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.0696/0.758, allocations: 21.57 MB / 0.5503 GB, free: 5.516 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002106/0.7582, allocations: 256.6 kB / 0.5505 GB, free: 5.211 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007332/0.7655, allocations: 3.935 MB / 0.5544 GB, free: 1.293 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005081/0.7661, allocations: 49.7 kB / 0.5544 GB, free: 1.238 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002346/0.7684, allocations: 2.885 MB / 0.5573 GB, free: 14.32 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00107/0.7695, allocations: 0.752 MB / 0.558 GB, free: 13.57 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001924/0.7714, allocations: 1.187 MB / 0.5591 GB, free: 12.37 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.7715, allocations: 304.9 kB / 0.5594 GB, free: 12.07 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003832/0.7754, allocations: 2.385 MB / 0.5618 GB, free: 9.68 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00684/0.7822, allocations: 5.64 MB / 0.5673 GB, free: 2.426 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01271/0.7949, allocations: 8.579 MB / 0.5757 GB, free: 8.262 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001071/0.795, allocations: 32 kB / 0.5757 GB, free: 8.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.02609/0.8211, allocations: 9.61 MB / 0.5851 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001972/0.8213, allocations: 56 kB / 0.5851 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002623/0.8216, allocations: 115.9 kB / 0.5852 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007038/0.8286, allocations: 2.019 MB / 0.5872 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004887/0.8335, allocations: 1.287 MB / 0.5885 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01963/0.8531, allocations: 11.36 MB / 0.5996 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006304/0.8594, allocations: 343.6 kB / 0.5999 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001372/0.8608, allocations: 332 kB / 0.6002 GB, free: 14.96 MB / 0.5137 GB 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.005424/0.8662, allocations: 1.947 MB / 0.6021 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001298/0.8675, allocations: 367.6 kB / 0.6024 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01204/0.8796, allocations: 4.856 MB / 0.6072 GB, free: 7.773 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.006e-05/0.8796, allocations: 23.94 kB / 0.6072 GB, free: 7.75 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-05/0.8796, allocations: 8.75 kB / 0.6072 GB, free: 7.742 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.908e-05/0.8797, allocations: 7.969 kB / 0.6072 GB, free: 7.734 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2589/1.139, allocations: 9.984 MB / 0.617 GB, free: 160.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.167e-05/1.139, allocations: 3.188 kB / 0.617 GB, free: 160.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001528/1.14, allocations: 266.6 kB / 0.6172 GB, free: 160.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006742/1.147, allocations: 1.85 MB / 0.619 GB, free: 160.8 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005897/1.147, allocations: 30.86 kB / 0.6191 GB, free: 160.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01537/1.163, allocations: 10.41 MB / 0.6292 GB, free: 157.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/1.163, allocations: 7.719 kB / 0.6292 GB, free: 157.2 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01384/1.177, allocations: 7.941 MB / 0.637 GB, free: 154.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001381/1.178, allocations: 417.9 kB / 0.6374 GB, free: 154.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008812/1.179, allocations: 32.72 kB / 0.6374 GB, free: 154.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001867/1.181, allocations: 138.2 kB / 0.6376 GB, free: 154.3 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004643/1.181, allocations: 116 kB / 0.6377 GB, free: 154.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001607/1.181, allocations: 47.8 kB / 0.6377 GB, free: 154.3 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003852/1.185, allocations: 2.48 MB / 0.6401 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9.1e-08/1.185, allocations: 1.5 kB / 0.6401 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005638/1.191, allocations: 1.055 MB / 0.6412 GB, free: 153.4 MB / 0.5137 GB 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.000558/1.191, allocations: 163.8 kB / 0.6413 GB, free: 153.3 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007989/1.199, allocations: 5.569 MB / 0.6468 GB, free: 151.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/1.199, allocations: 0 / 0.6468 GB, free: 151.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002539/1.202, allocations: 1.945 MB / 0.6487 GB, free: 150.6 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003124/1.205, allocations: 464.2 kB / 0.6491 GB, free: 150.4 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01425/1.219, allocations: 9.555 MB / 0.6584 GB, free: 145.5 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002816/1.222, allocations: 3.085 MB / 0.6614 GB, free: 143.1 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003544/1.226, allocations: 1.817 MB / 0.6632 GB, free: 141.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006549/1.226, allocations: 235.4 kB / 0.6634 GB, free: 141.2 MB / 0.5137 GB Notification: Performance of SimCode: time 1.523e-06/1.226, allocations: 0 / 0.6634 GB, free: 141.2 MB / 0.5137 GB Notification: Performance of Templates: time 0.06228/1.289, allocations: 42.77 MB / 0.7052 GB, free: 98.67 MB / 0.5137 GB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.949415024369955]