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.0009798/0.0009799, allocations: 95.62 kB / 16.93 MB, free: 5.984 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.0009404/0.0009404, allocations: 180.8 kB / 17.82 MB, free: 5.652 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.249/1.249, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004094/0.0004094, allocations: 15.42 kB / 280.7 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07555/0.07597, allocations: 47.58 MB / 328.3 MB, free: 4.098 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.02922/0.1052, allocations: 32.81 MB / 361.1 MB, free: 3.191 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01612/0.1214, allocations: 8.516 MB / 369.7 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00513/0.1266, allocations: 167.5 kB / 369.8 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004583/0.1312, allocations: 1.61 MB / 371.4 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01323/0.1444, allocations: 4.894 MB / 376.3 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002287/0.1467, allocations: 0.6163 MB / 376.9 MB, free: 3.348 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1865/0.3333, allocations: 26.26 MB / 403.2 MB, free: 11.69 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00414/0.3375, allocations: 3.483 MB / 406.7 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00114/0.3386, allocations: 1.039 MB / 407.7 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001238/0.3399, allocations: 1.405 MB / 409.1 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002543/0.3401, allocations: 128 kB / 409.2 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001233/0.3414, allocations: 0.9108 MB / 410.2 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008884/0.3423, allocations: 1.53 MB / 411.7 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005026/0.3428, allocations: 0.7847 MB / 412.5 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003237/0.346, allocations: 5.417 MB / 417.9 MB, free: 2.297 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.3461, allocations: 0 / 417.9 MB, free: 2.297 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3461, allocations: 0 / 417.9 MB, free: 2.297 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.6e-05/0.3462, allocations: 0 / 417.9 MB, free: 2.297 MB / 318.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.009253/0.3554, allocations: 4.274 MB / 422.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.3555, allocations: 12.03 kB / 422.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1676/0.5231, allocations: 14.47 MB / 436.6 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008471/0.5316, allocations: 3.702 MB / 440.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000135/0.5318, allocations: 200.8 kB / 440.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006435/0.5324, allocations: 272.2 kB / 440.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01327/0.5457, allocations: 8.806 MB / 449.6 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001096/0.5458, allocations: 47.64 kB / 449.7 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003283/0.5462, allocations: 127.2 kB / 449.8 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002876/0.5491, allocations: 1.771 MB / 451.6 MB, free: 5.066 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01274/0.5618, allocations: 7.615 MB / 459.2 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03978/0.6016, allocations: 35.66 MB / 494.8 MB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007847/0.6095, allocations: 3.76 MB / 498.6 MB, free: 9.055 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003965/0.6099, allocations: 329.9 kB / 498.9 MB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/0.61, allocations: 53.34 kB / 499 MB, free: 8.629 MB / 398.1 MB Notification: Performance of pre-optimization done (n=160): time 4.028e-06/0.61, allocations: 4 kB / 499 MB, free: 8.625 MB / 398.1 MB Notification: Performance of matching and sorting (n=190): time 0.054/0.664, allocations: 20.89 MB / 0.5077 GB, free: 3.625 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001537/0.6642, allocations: 256.6 kB / 0.5079 GB, free: 3.32 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005826/0.6701, allocations: 4.196 MB / 0.512 GB, free: 15.1 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003985/0.6705, allocations: 53.7 kB / 0.5121 GB, free: 15.04 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001973/0.6725, allocations: 2.833 MB / 0.5148 GB, free: 12.22 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008126/0.6733, allocations: 0.7142 MB / 0.5155 GB, free: 11.51 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002281/0.6735, allocations: 108 kB / 0.5156 GB, free: 11.41 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003243/0.6738, allocations: 0.5391 MB / 0.5162 GB, free: 10.86 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002954/0.6768, allocations: 2.138 MB / 0.5182 GB, free: 8.719 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004924/0.6817, allocations: 5.358 MB / 0.5235 GB, free: 1.801 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004511/0.6863, allocations: 3.337 MB / 0.5267 GB, free: 14.56 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.986e-05/0.6863, allocations: 35.19 kB / 0.5268 GB, free: 14.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01496/0.7013, allocations: 8.597 MB / 0.5352 GB, free: 6.16 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.781e-05/0.7014, allocations: 60.2 kB / 0.5352 GB, free: 6.102 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001099/0.7016, allocations: 116 kB / 0.5353 GB, free: 5.988 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004053/0.7056, allocations: 1.531 MB / 0.5368 GB, free: 4.453 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003887/0.7095, allocations: 1.221 MB / 0.538 GB, free: 3.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.171/0.8805, allocations: 9.473 MB / 0.5473 GB, free: 156.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004024/0.8846, allocations: 323.7 kB / 0.5476 GB, free: 156.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006302/0.8852, allocations: 337 kB / 0.5479 GB, free: 156.2 MB / 446.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 (650): * Single equations (assignments): 646 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003093/0.8883, allocations: 1.941 MB / 0.5498 GB, free: 155.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006143/0.8889, allocations: 354.2 kB / 0.5501 GB, free: 155.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007753/0.8967, allocations: 4.147 MB / 0.5542 GB, free: 154 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.918e-05/0.8968, allocations: 22.36 kB / 0.5542 GB, free: 154 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-05/0.8968, allocations: 7.438 kB / 0.5542 GB, free: 154 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.616e-05/0.8968, allocations: 9.031 kB / 0.5542 GB, free: 154 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01566/0.9125, allocations: 9.337 MB / 0.5633 GB, free: 150.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.148e-05/0.9126, allocations: 0 / 0.5633 GB, free: 150.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001203/0.9138, allocations: 262.8 kB / 0.5636 GB, free: 150.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00353/0.9173, allocations: 1.348 MB / 0.5649 GB, free: 150.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001459/0.9175, allocations: 35.69 kB / 0.5649 GB, free: 150.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01004/0.9275, allocations: 8.628 MB / 0.5734 GB, free: 146.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.9275, allocations: 0 / 0.5734 GB, free: 146.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009011/0.9366, allocations: 7.16 MB / 0.5804 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001674/0.9382, allocations: 0.711 MB / 0.5811 GB, free: 139.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004027/0.9387, allocations: 28 kB / 0.5811 GB, free: 139.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001447/0.9401, allocations: 119.8 kB / 0.5812 GB, free: 139.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002542/0.9404, allocations: 114.8 kB / 0.5813 GB, free: 139.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/0.9405, allocations: 48.66 kB / 0.5814 GB, free: 139.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003375/0.9439, allocations: 2.709 MB / 0.584 GB, free: 136.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.9439, allocations: 3.938 kB / 0.584 GB, free: 136.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004274/0.9482, allocations: 1.027 MB / 0.585 GB, free: 135.9 MB / 446.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004759/0.9487, allocations: 184.1 kB / 0.5852 GB, free: 135.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006675/0.9554, allocations: 5.338 MB / 0.5904 GB, free: 130.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.9554, allocations: 4 kB / 0.5904 GB, free: 130.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002876/0.9583, allocations: 2.07 MB / 0.5924 GB, free: 128.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003163/0.9614, allocations: 448.6 kB / 0.5928 GB, free: 127.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01378/0.9752, allocations: 10.69 MB / 0.6033 GB, free: 117.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00243/0.9777, allocations: 3.177 MB / 0.6064 GB, free: 114.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003786/0.9815, allocations: 1.831 MB / 0.6082 GB, free: 112.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000602/0.9821, allocations: 235.4 kB / 0.6084 GB, free: 112 MB / 446.1 MB Notification: Performance of SimCode: time 7.81e-07/0.9821, allocations: 8 kB / 0.6084 GB, free: 112 MB / 446.1 MB Notification: Performance of Templates: time 0.05659/1.039, allocations: 40.84 MB / 0.6483 GB, free: 71.21 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches