Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.00111, allocations: 114.4 kB / 17.73 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 187.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.381/1.381, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 52.39 kB / 328.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1078, allocations: 46.62 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1791/0.2869, allocations: 10.47 MB / 385.6 MB, free: 7.484 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008393/0.2954, allocations: 3.947 MB / 389.6 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001851/0.2973, allocations: 68.22 kB / 389.6 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004001/0.3013, allocations: 2.213 MB / 391.8 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004471/0.3058, allocations: 1.857 MB / 393.7 MB, free: 3.426 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001586/0.3074, allocations: 0.7424 MB / 394.4 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006193/0.3136, allocations: 4.847 MB / 399.3 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003029/0.3166, allocations: 2.892 MB / 402.2 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002244/0.3189, allocations: 1.5 MB / 403.7 MB, free: 15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002551/0.3215, allocations: 2.051 MB / 405.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005661/0.322, allocations: 301.5 kB / 406 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002293/0.3244, allocations: 1.181 MB / 407.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001617/0.326, allocations: 1.88 MB / 409.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002021/0.328, allocations: 2.071 MB / 411.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006601/0.3346, allocations: 6.691 MB / 417.8 MB, free: 4.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3347, allocations: 0 / 417.8 MB, free: 4.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.3347, allocations: 0 / 417.8 MB, free: 4.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.692e-05/0.3348, allocations: 0 / 417.8 MB, free: 4.75 MB / 334.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.008601/0.3434, allocations: 4.69 MB / 422.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.3434, allocations: 8.031 kB / 422.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02647/0.3699, allocations: 3.081 MB / 425.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007516/0.3775, allocations: 3.437 MB / 429.1 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001446/0.3776, allocations: 201 kB / 429.3 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006289/0.3783, allocations: 271.8 kB / 429.5 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01297/0.3912, allocations: 8.859 MB / 438.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001101/0.3914, allocations: 43.56 kB / 438.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003678/0.3917, allocations: 131.8 kB / 438.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003164/0.3949, allocations: 1.774 MB / 440.3 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0142/0.4091, allocations: 7.784 MB / 448.1 MB, free: 5.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04622/0.4554, allocations: 35.88 MB / 484 MB, free: 0.7266 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008712/0.4641, allocations: 3.817 MB / 487.8 MB, free: 12.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002807/0.467, allocations: 2.155 MB / 490 MB, free: 10.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00043/0.4674, allocations: 324.2 kB / 490.3 MB, free: 10.22 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.651e-05/0.4675, allocations: 51.55 kB / 490.3 MB, free: 10.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 4.017e-06/0.4675, allocations: 0 / 490.3 MB, free: 10.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.06037/0.5279, allocations: 21.45 MB / 0.4998 GB, free: 4.578 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.528, allocations: 256.6 kB / 0.5 GB, free: 4.273 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005882/0.5339, allocations: 3.955 MB / 0.5039 GB, free: 344 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003737/0.5343, allocations: 49.7 kB / 0.5039 GB, free: 288 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001953/0.5363, allocations: 2.779 MB / 0.5067 GB, free: 13.46 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009591/0.5372, allocations: 0.7288 MB / 0.5074 GB, free: 12.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001909/0.5392, allocations: 1.174 MB / 0.5085 GB, free: 11.54 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.691e-05/0.5393, allocations: 309.1 kB / 0.5088 GB, free: 11.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003327/0.5426, allocations: 2.381 MB / 0.5111 GB, free: 8.848 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005468/0.5481, allocations: 5.644 MB / 0.5166 GB, free: 1.59 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009752/0.5579, allocations: 8.572 MB / 0.525 GB, free: 7.43 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.78e-05/0.558, allocations: 32 kB / 0.525 GB, free: 7.398 MB / 462.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01869/0.5767, allocations: 9.625 MB / 0.5344 GB, free: 13.76 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.822e-05/0.5768, allocations: 52 kB / 0.5345 GB, free: 13.71 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001152/0.5769, allocations: 112 kB / 0.5346 GB, free: 13.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005781/0.5827, allocations: 2.026 MB / 0.5366 GB, free: 11.57 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004489/0.5872, allocations: 1.275 MB / 0.5378 GB, free: 10.29 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2067/0.7939, allocations: 11.36 MB / 0.5489 GB, free: 143.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005004/0.799, allocations: 345.6 kB / 0.5492 GB, free: 143.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009914/0.8, allocations: 337.5 kB / 0.5496 GB, free: 143.2 MB / 478.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.003856/0.8039, allocations: 1.943 MB / 0.5515 GB, free: 143 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009656/0.8049, allocations: 349.8 kB / 0.5518 GB, free: 143 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01003/0.8149, allocations: 4.887 MB / 0.5566 GB, free: 142 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-05/0.815, allocations: 19.75 kB / 0.5566 GB, free: 142 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.518e-05/0.815, allocations: 7.688 kB / 0.5566 GB, free: 142 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-05/0.8151, allocations: 14.3 kB / 0.5566 GB, free: 142 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01849/0.8336, allocations: 10.01 MB / 0.5664 GB, free: 138.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.37e-05/0.8336, allocations: 1.812 kB / 0.5664 GB, free: 138.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001428/0.8351, allocations: 268.8 kB / 0.5666 GB, free: 138.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005133/0.8402, allocations: 1.847 MB / 0.5684 GB, free: 138.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003422/0.8406, allocations: 39.36 kB / 0.5685 GB, free: 138.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01177/0.8524, allocations: 10.4 MB / 0.5786 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.8524, allocations: 6.562 kB / 0.5786 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0111/0.8635, allocations: 7.954 MB / 0.5864 GB, free: 130.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001531/0.8651, allocations: 0.7199 MB / 0.5871 GB, free: 130.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004519/0.8656, allocations: 31.44 kB / 0.5871 GB, free: 130.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001576/0.8671, allocations: 136.4 kB / 0.5873 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003762/0.8675, allocations: 110.3 kB / 0.5874 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001437/0.8677, allocations: 45.84 kB / 0.5874 GB, free: 130.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002988/0.8707, allocations: 2.503 MB / 0.5899 GB, free: 128.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.8707, allocations: 3.875 kB / 0.5899 GB, free: 128.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004209/0.8749, allocations: 1.069 MB / 0.5909 GB, free: 128.1 MB / 478.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.0004411/0.8754, allocations: 167.6 kB / 0.5911 GB, free: 128 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007307/0.8827, allocations: 5.825 MB / 0.5968 GB, free: 122.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/0.8827, allocations: 0 / 0.5968 GB, free: 122.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002524/0.8852, allocations: 2.102 MB / 0.5988 GB, free: 120.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002782/0.888, allocations: 459.9 kB / 0.5993 GB, free: 119.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01354/0.9016, allocations: 9.45 MB / 0.6085 GB, free: 110.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002628/0.9043, allocations: 3.096 MB / 0.6115 GB, free: 107.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003498/0.9078, allocations: 1.819 MB / 0.6133 GB, free: 105.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006916/0.9085, allocations: 239.4 kB / 0.6135 GB, free: 105.1 MB / 478.1 MB Notification: Performance of SimCode: time 1.704e-06/0.9085, allocations: 4 kB / 0.6135 GB, free: 105.1 MB / 478.1 MB Notification: Performance of Templates: time 0.06233/0.9709, allocations: 42.34 MB / 0.6549 GB, free: 62.81 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches