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.001137/0.001137, allocations: 106.1 kB / 18.4 MB, free: 4.68 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.001175/0.001175, allocations: 186.4 kB / 19.33 MB, free: 3.758 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.374/1.374, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.00132/0.001321, allocations: 51.94 kB / 329.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08593/0.08726, allocations: 46.61 MB / 375.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1928/0.2801, allocations: 10.47 MB / 386.3 MB, free: 7.496 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01094/0.2911, allocations: 3.944 MB / 390.2 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003008/0.2942, allocations: 64.31 kB / 390.3 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006288/0.3005, allocations: 2.216 MB / 392.5 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007248/0.3078, allocations: 1.86 MB / 394.4 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002319/0.3101, allocations: 0.7419 MB / 395.1 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01056/0.3207, allocations: 4.84 MB / 400 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006111/0.3269, allocations: 2.895 MB / 402.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004501/0.3314, allocations: 1.496 MB / 404.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005618/0.3371, allocations: 2.049 MB / 406.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00158/0.3387, allocations: 300.8 kB / 406.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00479/0.3435, allocations: 1.192 MB / 407.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004015/0.3476, allocations: 1.877 MB / 409.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005328/0.3529, allocations: 2.07 MB / 411.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01121/0.3642, allocations: 6.686 MB / 418.5 MB, free: 4.773 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.298e-06/0.3642, allocations: 8 kB / 418.5 MB, free: 4.766 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3642, allocations: 0 / 418.5 MB, free: 4.766 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002273/0.3645, allocations: 0 / 418.5 MB, free: 4.766 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.01463/0.3791, allocations: 4.682 MB / 423.2 MB, free: 12 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.3792, allocations: 12.03 kB / 423.2 MB, free: 0 / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03385/0.4131, allocations: 3.081 MB / 426.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.011/0.4241, allocations: 3.448 MB / 429.7 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002955/0.4244, allocations: 201 kB / 429.9 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001343/0.4258, allocations: 267.8 kB / 430.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01737/0.4432, allocations: 8.851 MB / 439.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002293/0.4435, allocations: 55.48 kB / 439.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009285/0.4444, allocations: 127.9 kB / 439.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003144/0.4476, allocations: 1.774 MB / 441 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01521/0.4628, allocations: 7.792 MB / 448.8 MB, free: 5.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04572/0.5086, allocations: 35.86 MB / 484.7 MB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00839/0.517, allocations: 3.817 MB / 488.5 MB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002689/0.5197, allocations: 2.154 MB / 490.6 MB, free: 10.61 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004424/0.5202, allocations: 332.2 kB / 491 MB, free: 10.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.65e-05/0.5203, allocations: 55.55 kB / 491 MB, free: 10.17 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 4.639e-06/0.5203, allocations: 0 / 491 MB, free: 10.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.06265/0.5829, allocations: 21.45 MB / 0.5004 GB, free: 4.59 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.5831, allocations: 252.6 kB / 0.5007 GB, free: 4.289 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006597/0.5897, allocations: 3.955 MB / 0.5046 GB, free: 360 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00034/0.5901, allocations: 53.7 kB / 0.5046 GB, free: 300 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002/0.5921, allocations: 2.779 MB / 0.5073 GB, free: 13.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008111/0.5929, allocations: 0.7249 MB / 0.508 GB, free: 12.74 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00185/0.5948, allocations: 1.182 MB / 0.5092 GB, free: 11.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.931e-05/0.5949, allocations: 309.1 kB / 0.5095 GB, free: 11.24 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003415/0.5983, allocations: 2.385 MB / 0.5118 GB, free: 8.852 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005567/0.6039, allocations: 5.632 MB / 0.5173 GB, free: 1.605 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009915/0.6138, allocations: 8.576 MB / 0.5257 GB, free: 7.441 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.613e-05/0.6139, allocations: 32 kB / 0.5257 GB, free: 7.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01781/0.6318, allocations: 9.626 MB / 0.5351 GB, free: 13.77 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001091/0.6319, allocations: 56 kB / 0.5352 GB, free: 13.71 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001514/0.6321, allocations: 112 kB / 0.5353 GB, free: 13.61 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005555/0.6376, allocations: 2.014 MB / 0.5372 GB, free: 11.59 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004052/0.6417, allocations: 1.287 MB / 0.5385 GB, free: 10.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2321/0.8738, allocations: 11.35 MB / 0.5496 GB, free: 143.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006309/0.8802, allocations: 348.5 kB / 0.5499 GB, free: 143.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001586/0.8818, allocations: 337.7 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.003693/0.8855, allocations: 1.943 MB / 0.5521 GB, free: 143.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008685/0.8864, allocations: 346.7 kB / 0.5525 GB, free: 143.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01214/0.8985, allocations: 4.89 MB / 0.5572 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.872e-05/0.8986, allocations: 21.83 kB / 0.5573 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.874e-05/0.8987, allocations: 9.219 kB / 0.5573 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.459e-05/0.8987, allocations: 8.766 kB / 0.5573 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02385/0.9226, allocations: 10.01 MB / 0.567 GB, free: 138.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.766e-05/0.9226, allocations: 1.5 kB / 0.567 GB, free: 138.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001553/0.9242, allocations: 268.1 kB / 0.5673 GB, free: 138.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005691/0.9299, allocations: 1.844 MB / 0.5691 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002533/0.9302, allocations: 35.62 kB / 0.5691 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01211/0.9423, allocations: 10.4 MB / 0.5793 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/0.9423, allocations: 7.578 kB / 0.5793 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0133/0.9556, allocations: 7.953 MB / 0.5871 GB, free: 130.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001772/0.9575, allocations: 0.7242 MB / 0.5878 GB, free: 130.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009222/0.9584, allocations: 27.56 kB / 0.5878 GB, free: 130.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00205/0.9605, allocations: 140.4 kB / 0.5879 GB, free: 130.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004198/0.9609, allocations: 109.3 kB / 0.588 GB, free: 130.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001924/0.9611, allocations: 46.19 kB / 0.5881 GB, free: 130.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005034/0.9662, allocations: 2.503 MB / 0.5905 GB, free: 129 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.9662, allocations: 0 / 0.5905 GB, free: 129 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008541/0.9748, allocations: 1.081 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.0008294/0.9756, allocations: 153.2 kB / 0.5917 GB, free: 128.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01212/0.9878, allocations: 5.826 MB / 0.5974 GB, free: 122.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.577e-05/0.9878, allocations: 2.719 kB / 0.5974 GB, free: 122.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003235/0.9911, allocations: 2.095 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.003719/0.9948, allocations: 472.4 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.01669/1.012, allocations: 9.799 MB / 0.6095 GB, free: 110 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003558/1.015, allocations: 3.065 MB / 0.6125 GB, free: 106.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001164/1.016, allocations: 287.3 kB / 0.6128 GB, free: 106.6 MB / 478.1 MB Notification: Performance of SimCode: time 1.232e-06/1.016, allocations: 0 / 0.6128 GB, free: 106.6 MB / 478.1 MB Notification: Performance of Templates: time 0.08348/1.1, allocations: 75.21 MB / 0.6862 GB, free: 31.29 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