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.001383/0.001383, allocations: 109.4 kB / 18.4 MB, free: 4.688 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.001397/0.001397, allocations: 187.1 kB / 19.33 MB, free: 3.77 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.394/1.394, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.002057/0.002057, allocations: 47.94 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1025, allocations: 46.62 MB / 375.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1962/0.2988, allocations: 10.47 MB / 386.3 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008359/0.3072, allocations: 3.946 MB / 390.2 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002125/0.3094, allocations: 64.56 kB / 390.3 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004407/0.3139, allocations: 2.213 MB / 392.5 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00568/0.3196, allocations: 1.854 MB / 394.4 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001943/0.3215, allocations: 0.7485 MB / 395.1 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008261/0.3298, allocations: 4.844 MB / 400 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00533/0.3352, allocations: 2.89 MB / 402.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003918/0.3391, allocations: 1.493 MB / 404.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004161/0.3433, allocations: 2.051 MB / 406.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001472/0.3448, allocations: 301.1 kB / 406.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00363/0.3485, allocations: 1.189 MB / 407.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002943/0.3514, allocations: 1.881 MB / 409.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004566/0.356, allocations: 2.07 MB / 411.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01171/0.3677, allocations: 6.689 MB / 418.5 MB, free: 4.758 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.288e-06/0.3678, allocations: 0 / 418.5 MB, free: 4.758 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3678, allocations: 4 kB / 418.5 MB, free: 4.754 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002946/0.3681, allocations: 0 / 418.5 MB, free: 4.754 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.01592/0.384, allocations: 4.682 MB / 423.2 MB, free: 0 / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.71e-05/0.3841, allocations: 12.08 kB / 423.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02734/0.4115, allocations: 3.081 MB / 426.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009012/0.4205, allocations: 3.441 MB / 429.7 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002208/0.4208, allocations: 205 kB / 429.9 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001281/0.4221, allocations: 271.8 kB / 430.2 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01776/0.4399, allocations: 8.855 MB / 439.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002841/0.4402, allocations: 55.48 kB / 439.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001123/0.4414, allocations: 127.9 kB / 439.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003399/0.4448, allocations: 1.77 MB / 441 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01631/0.4611, allocations: 7.788 MB / 448.8 MB, free: 5.676 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05121/0.5124, allocations: 35.87 MB / 484.7 MB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008643/0.5211, allocations: 3.813 MB / 488.5 MB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002939/0.5241, allocations: 2.162 MB / 490.6 MB, free: 10.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005531/0.5247, allocations: 324.2 kB / 491 MB, free: 10.22 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.872e-05/0.5247, allocations: 63.53 kB / 491 MB, free: 10.15 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 5.18e-06/0.5247, allocations: 0 / 491 MB, free: 10.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.06318/0.5879, allocations: 21.44 MB / 0.5004 GB, free: 4.582 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001445/0.5881, allocations: 252.6 kB / 0.5007 GB, free: 4.281 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007398/0.5955, allocations: 3.955 MB / 0.5046 GB, free: 352 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005142/0.5961, allocations: 57.7 kB / 0.5046 GB, free: 288 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002518/0.5986, allocations: 2.783 MB / 0.5073 GB, free: 13.46 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001262/0.5999, allocations: 0.721 MB / 0.508 GB, free: 12.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002848/0.6027, allocations: 1.178 MB / 0.5092 GB, free: 11.54 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.6029, allocations: 313 kB / 0.5095 GB, free: 11.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003876/0.6068, allocations: 2.377 MB / 0.5118 GB, free: 8.848 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007015/0.6139, allocations: 5.64 MB / 0.5173 GB, free: 1.594 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01168/0.6256, allocations: 8.575 MB / 0.5257 GB, free: 7.426 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001501/0.6258, allocations: 32 kB / 0.5257 GB, free: 7.395 MB / 462.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.02095/0.6467, allocations: 9.625 MB / 0.5351 GB, free: 13.75 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001613/0.6469, allocations: 56 kB / 0.5352 GB, free: 13.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002005/0.6471, allocations: 112 kB / 0.5353 GB, free: 13.59 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00585/0.653, allocations: 2.014 MB / 0.5372 GB, free: 11.57 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004515/0.6576, allocations: 1.283 MB / 0.5385 GB, free: 10.29 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2393/0.8969, allocations: 11.35 MB / 0.5496 GB, free: 143.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005407/0.9024, allocations: 347 kB / 0.5499 GB, free: 143.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001528/0.9039, allocations: 342.6 kB / 0.5502 GB, free: 143.3 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.004637/0.9086, allocations: 1.941 MB / 0.5521 GB, free: 143.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008626/0.9094, allocations: 349 kB / 0.5525 GB, free: 143.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01053/0.92, allocations: 4.888 MB / 0.5572 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.638e-05/0.9201, allocations: 22.88 kB / 0.5573 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.678e-05/0.9201, allocations: 7.062 kB / 0.5573 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.522e-05/0.9202, allocations: 9.547 kB / 0.5573 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0192/0.9394, allocations: 10.02 MB / 0.567 GB, free: 138.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.102e-05/0.9395, allocations: 1.344 kB / 0.5671 GB, free: 138.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001419/0.9409, allocations: 271 kB / 0.5673 GB, free: 138.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005454/0.9464, allocations: 1.84 MB / 0.5691 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003031/0.9467, allocations: 33.69 kB / 0.5691 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01255/0.9592, allocations: 10.4 MB / 0.5793 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.9593, allocations: 0 / 0.5793 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01195/0.9712, allocations: 7.955 MB / 0.5871 GB, free: 130.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001893/0.9732, allocations: 0.7205 MB / 0.5878 GB, free: 130.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001018/0.9742, allocations: 31.44 kB / 0.5878 GB, free: 130.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002236/0.9765, allocations: 132.6 kB / 0.5879 GB, free: 130.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004515/0.9769, allocations: 120.4 kB / 0.588 GB, free: 130.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001713/0.9771, allocations: 42.19 kB / 0.5881 GB, free: 130.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004319/0.9814, allocations: 2.507 MB / 0.5905 GB, free: 129 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9815, allocations: 0 / 0.5905 GB, free: 129 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005145/0.9866, allocations: 1.075 MB / 0.5916 GB, free: 128.2 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.0005693/0.9872, allocations: 167.5 kB / 0.5917 GB, free: 128.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007651/0.9949, allocations: 5.82 MB / 0.5974 GB, free: 122.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.9949, allocations: 0 / 0.5974 GB, free: 122.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00259/0.9975, allocations: 2.096 MB / 0.5995 GB, free: 120.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003661/1.001, allocations: 468.8 kB / 0.5999 GB, free: 119.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01605/1.017, allocations: 9.804 MB / 0.6095 GB, free: 110 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003847/1.021, allocations: 3.069 MB / 0.6125 GB, free: 106.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001237/1.022, allocations: 275.4 kB / 0.6128 GB, free: 106.6 MB / 478.1 MB Notification: Performance of SimCode: time 1.152e-06/1.022, allocations: 3.938 kB / 0.6128 GB, free: 106.6 MB / 478.1 MB Notification: Performance of Templates: time 0.09325/1.116, allocations: 74.64 MB / 0.6856 GB, free: 31.86 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/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