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.001929/0.001929, allocations: 84.66 kB / 20.95 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.001511/0.001511, allocations: 153.1 kB / 24.26 MB, free: 156 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.444/1.444, allocations: 173.4 MB / 200.8 MB, free: 9.305 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.684e-06/1.684e-06, allocations: 0 / 267.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.712e-05/2.881e-05, allocations: 2.312 kB / 267.3 MB, free: 6.707 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.02157/0.0216, allocations: 9.175 MB / 276.5 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01181/0.03341, allocations: 3.777 MB / 280.3 MB, free: 9.695 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001513/0.03492, allocations: 79.56 kB / 280.4 MB, free: 9.617 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005562/0.04048, allocations: 2.289 MB / 282.6 MB, free: 7.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005254/0.04574, allocations: 1.983 MB / 284.6 MB, free: 5.328 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00199/0.04773, allocations: 0.8342 MB / 285.5 MB, free: 4.492 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1209/0.1686, allocations: 5.826 MB / 291.3 MB, free: 16.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003631/0.1722, allocations: 3.009 MB / 294.3 MB, free: 16.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003417/0.1757, allocations: 2.311 MB / 296.6 MB, free: 16.02 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003381/0.179, allocations: 2.371 MB / 299 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006657/0.1797, allocations: 316.8 kB / 299.3 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001975/0.1817, allocations: 1.149 MB / 300.4 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001555/0.1832, allocations: 2.001 MB / 302.4 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001222/0.1845, allocations: 1.224 MB / 303.7 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005328/0.1898, allocations: 6.879 MB / 310.5 MB, free: 11.35 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1898, allocations: 0 / 310.5 MB, free: 11.35 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1898, allocations: 3.281 kB / 310.5 MB, free: 11.35 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001229/0.1899, allocations: 0 / 310.5 MB, free: 11.35 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.008214/0.1981, allocations: 4.826 MB / 315.4 MB, free: 8.047 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.1982, allocations: 12.92 kB / 315.4 MB, free: 8.035 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02397/0.2221, allocations: 3.616 MB / 319 MB, free: 4.445 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00671/0.2288, allocations: 3.221 MB / 322.2 MB, free: 1.328 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/0.229, allocations: 203.4 kB / 322.4 MB, free: 1.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000549/0.2295, allocations: 271 kB / 322.7 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01569/0.2452, allocations: 9.07 MB / 331.8 MB, free: 7.359 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001202/0.2453, allocations: 49.28 kB / 331.8 MB, free: 7.328 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003872/0.2457, allocations: 127.9 kB / 331.9 MB, free: 7.234 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003497/0.2492, allocations: 1.772 MB / 333.7 MB, free: 5.488 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01558/0.2648, allocations: 7.865 MB / 341.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04893/0.3137, allocations: 33.96 MB / 375.5 MB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008657/0.3224, allocations: 2.914 MB / 378.4 MB, free: 8.406 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003319/0.3257, allocations: 2.063 MB / 380.5 MB, free: 6.336 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004348/0.3261, allocations: 120.8 kB / 380.6 MB, free: 6.223 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.303e-05/0.3262, allocations: 63.16 kB / 380.7 MB, free: 6.152 MB / 330.7 MB Notification: Performance of pre-optimization done (n=161): time 4.067e-06/0.3262, allocations: 0 / 380.7 MB, free: 6.152 MB / 330.7 MB Notification: Performance of matching and sorting (n=190): time 0.08642/0.4126, allocations: 29.21 MB / 409.9 MB, free: 8.965 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002029/0.4128, allocations: 268.5 kB / 410.2 MB, free: 8.645 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006396/0.4192, allocations: 3.85 MB / 414 MB, free: 4.789 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000456/0.4197, allocations: 57.69 kB / 414.1 MB, free: 4.727 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002611/0.4223, allocations: 2.862 MB / 416.9 MB, free: 1.879 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001149/0.4234, allocations: 0.7431 MB / 417.7 MB, free: 1.145 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002157/0.4256, allocations: 1.165 MB / 418.8 MB, free: 15.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.4257, allocations: 305.1 kB / 419.1 MB, free: 15.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004309/0.4301, allocations: 2.615 MB / 421.8 MB, free: 13.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007971/0.438, allocations: 5.931 MB / 427.7 MB, free: 5.559 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1281/0.5662, allocations: 8.999 MB / 436.7 MB, free: 118.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.145e-05/0.5663, allocations: 33.16 kB / 436.7 MB, free: 118.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=743) (initialization): time 0.0195/0.5858, allocations: 10.98 MB / 447.7 MB, free: 115.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.895e-05/0.5858, allocations: 52.53 kB / 447.8 MB, free: 115.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001204/0.586, allocations: 115.7 kB / 447.9 MB, free: 115.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00852/0.5945, allocations: 3.092 MB / 451 MB, free: 114.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003744/0.5982, allocations: 1.278 MB / 452.2 MB, free: 114.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01564/0.6139, allocations: 13.62 MB / 465.9 MB, free: 106.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004799/0.6187, allocations: 442.6 kB / 466.3 MB, free: 106.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007191/0.6194, allocations: 339.3 kB / 466.6 MB, free: 106 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 509 * 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 (680): * Single equations (assignments): 676 * 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,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003633/0.623, allocations: 1.93 MB / 468.6 MB, free: 104.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009497/0.624, allocations: 382.2 kB / 468.9 MB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01026/0.6342, allocations: 6.038 MB / 475 MB, free: 97.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.143e-05/0.6343, allocations: 24 kB / 475 MB, free: 97.85 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.566e-05/0.6343, allocations: 13.06 kB / 475 MB, free: 97.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.832e-05/0.6343, allocations: 11.97 kB / 475 MB, free: 97.83 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01782/0.6521, allocations: 10.75 MB / 485.8 MB, free: 87.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.418e-05/0.6521, allocations: 4.062 kB / 485.8 MB, free: 87.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/0.6534, allocations: 271.6 kB / 486 MB, free: 86.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007713/0.6611, allocations: 2.934 MB / 489 MB, free: 83.94 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002488/0.6613, allocations: 32 kB / 489 MB, free: 83.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01398/0.6753, allocations: 12.59 MB / 0.4898 GB, free: 71.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.6753, allocations: 4 kB / 0.4898 GB, free: 71.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0134/0.6887, allocations: 9.515 MB / 0.4991 GB, free: 61.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009388/0.6897, allocations: 350.1 kB / 0.4995 GB, free: 61.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004298/0.6901, allocations: 36 kB / 0.4995 GB, free: 61.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001855/0.6919, allocations: 235.6 kB / 0.4997 GB, free: 61.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004278/0.6924, allocations: 128.8 kB / 0.4998 GB, free: 61.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001571/0.6925, allocations: 48.47 kB / 0.4999 GB, free: 61.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002559/0.6951, allocations: 2.305 MB / 0.5021 GB, free: 58.85 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.6951, allocations: 0 / 0.5021 GB, free: 58.85 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004242/0.6993, allocations: 1.264 MB / 0.5034 GB, free: 57.59 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 (134): * Single equations (assignments): 130 * 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,35,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004577/0.6998, allocations: 194.8 kB / 0.5036 GB, free: 57.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007457/0.7072, allocations: 6.005 MB / 0.5094 GB, free: 51.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.7072, allocations: 4.188 kB / 0.5094 GB, free: 51.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002587/0.7098, allocations: 2.195 MB / 0.5116 GB, free: 49.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00276/0.7126, allocations: 443.8 kB / 0.512 GB, free: 48.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01212/0.7247, allocations: 9.684 MB / 0.5214 GB, free: 39.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002399/0.7271, allocations: 2.545 MB / 0.5239 GB, free: 36.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003304/0.7304, allocations: 1.777 MB / 0.5257 GB, free: 34.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000741/0.7312, allocations: 224.4 kB / 0.5259 GB, free: 34.48 MB / 378.7 MB Notification: Performance of SimCode: time 1.293e-06/0.7312, allocations: 0 / 0.5259 GB, free: 34.48 MB / 378.7 MB Notification: Performance of Templates: time 0.1689/0.9, allocations: 46.51 MB / 0.5713 GB, free: 112.1 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=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.461879277951084]