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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009184/0.0009183, allocations: 171.8 kB / 17.39 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 223.3 MB / 241.4 MB, free: 11.72 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008367/0.0008363, allocations: 95.64 kB / 292.6 MB, free: 10.8 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003326/0.0003325, allocations: 12 kB / 352.4 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2596, allocations: 50.4 MB / 402.7 MB, free: 32.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1118/0.3714, allocations: 93.85 MB / 496.6 MB, free: 2.484 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.3717, allocations: 94.05 kB / 496.7 MB, free: 2.395 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3779/0.7497, allocations: 82.67 MB / 0.5658 GB, free: 47.99 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.7497, allocations: 0 / 0.5658 GB, free: 47.99 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001513/0.7499, allocations: 79.92 kB / 0.5659 GB, free: 47.91 MB / 378.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.0103/0.7602, allocations: 4.161 MB / 0.5699 GB, free: 43.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.7602, allocations: 12.02 kB / 0.5699 GB, free: 43.67 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01836/0.7786, allocations: 4.968 MB / 0.5748 GB, free: 38.69 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009156/0.7878, allocations: 4.39 MB / 0.5791 GB, free: 34.24 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001949/0.788, allocations: 267.4 kB / 0.5793 GB, free: 33.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001444/0.7895, allocations: 364.2 kB / 0.5797 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01381/0.8033, allocations: 9.053 MB / 0.5885 GB, free: 23.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001474/0.8035, allocations: 59.56 kB / 0.5886 GB, free: 23.6 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004679/0.8039, allocations: 179.8 kB / 0.5887 GB, free: 23.42 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008947/0.8048, allocations: 0.8924 MB / 0.5896 GB, free: 22.53 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01294/0.8178, allocations: 7.514 MB / 0.5969 GB, free: 15 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04106/0.8589, allocations: 42.22 MB / 0.6382 GB, free: 3.391 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007628/0.8666, allocations: 3.676 MB / 0.6418 GB, free: 15.57 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002343/0.8689, allocations: 1.955 MB / 0.6437 GB, free: 13.61 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003929/0.8694, allocations: 340 kB / 0.644 GB, free: 13.22 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.747e-05/0.8694, allocations: 47.56 kB / 0.644 GB, free: 13.16 MB / 426.7 MB Notification: Performance of pre-optimization done (n=160): time 3.787e-06/0.8694, allocations: 0 / 0.644 GB, free: 13.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=189): time 0.04686/0.9163, allocations: 18.76 MB / 0.6624 GB, free: 10.27 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/0.9165, allocations: 260.7 kB / 0.6626 GB, free: 9.961 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005562/0.922, allocations: 3.884 MB / 0.6664 GB, free: 6.047 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004024/0.9225, allocations: 57.61 kB / 0.6665 GB, free: 5.988 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001934/0.9244, allocations: 2.826 MB / 0.6692 GB, free: 3.125 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008271/0.9252, allocations: 0.7172 MB / 0.6699 GB, free: 2.398 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002297/0.9255, allocations: 104 kB / 0.67 GB, free: 2.297 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003353/0.9258, allocations: 0.5412 MB / 0.6705 GB, free: 1.75 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2462/1.172, allocations: 2.083 MB / 0.6726 GB, free: 113.9 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005818/1.178, allocations: 5.341 MB / 0.6778 GB, free: 109.7 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008365/1.186, allocations: 8.075 MB / 0.6857 GB, free: 105.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-05/1.186, allocations: 33.59 kB / 0.6857 GB, free: 105.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01557/1.202, allocations: 8.414 MB / 0.6939 GB, free: 104.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.957e-05/1.202, allocations: 52.19 kB / 0.694 GB, free: 104.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000112/1.202, allocations: 119.3 kB / 0.6941 GB, free: 104.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0034/1.206, allocations: 1.361 MB / 0.6954 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003935/1.21, allocations: 1.229 MB / 0.6966 GB, free: 104.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01347/1.223, allocations: 8.423 MB / 0.7048 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007297/1.23, allocations: 310.8 kB / 0.7051 GB, free: 101.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001242/1.232, allocations: 334.3 kB / 0.7055 GB, free: 101.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * 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 (653): * Single equations (assignments): 649 * 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 {(2,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005224/1.237, allocations: 1.939 MB / 0.7074 GB, free: 101 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009121/1.238, allocations: 351.7 kB / 0.7077 GB, free: 101 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01007/1.248, allocations: 3.922 MB / 0.7115 GB, free: 99.63 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.804e-05/1.248, allocations: 23.88 kB / 0.7115 GB, free: 99.63 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-05/1.248, allocations: 6.812 kB / 0.7115 GB, free: 99.63 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.768e-05/1.248, allocations: 16.94 kB / 0.7116 GB, free: 99.62 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02232/1.27, allocations: 8.897 MB / 0.7203 GB, free: 96.31 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.101e-05/1.27, allocations: 3.891 kB / 0.7203 GB, free: 96.31 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001673/1.272, allocations: 258.5 kB / 0.7205 GB, free: 96.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004393/1.277, allocations: 1.218 MB / 0.7217 GB, free: 96.04 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002377/1.277, allocations: 32.78 kB / 0.7217 GB, free: 96.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009165/1.286, allocations: 7.576 MB / 0.7291 GB, free: 92.14 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/1.286, allocations: 4 kB / 0.7291 GB, free: 92.14 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008539/1.295, allocations: 6.677 MB / 0.7356 GB, free: 86.52 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001289/1.296, allocations: 410.5 kB / 0.736 GB, free: 86.12 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003876/1.296, allocations: 28 kB / 0.7361 GB, free: 86.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/1.298, allocations: 127.2 kB / 0.7362 GB, free: 86.02 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003106/1.298, allocations: 111.8 kB / 0.7363 GB, free: 85.95 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001148/1.298, allocations: 48 kB / 0.7363 GB, free: 85.9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003325/1.301, allocations: 2.444 MB / 0.7387 GB, free: 83.88 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.2e-07/1.301, allocations: 0 / 0.7387 GB, free: 83.88 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00409/1.306, allocations: 0.9959 MB / 0.7397 GB, free: 82.89 MB / 442.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 (135): * Single equations (assignments): 131 * 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.0003818/1.306, allocations: 173.8 kB / 0.7399 GB, free: 82.72 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006437/1.312, allocations: 5.191 MB / 0.7449 GB, free: 78.16 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/1.312, allocations: 0 / 0.7449 GB, free: 78.16 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002552/1.315, allocations: 1.984 MB / 0.7469 GB, free: 76.42 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003213/1.318, allocations: 466.2 kB / 0.7473 GB, free: 76.02 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01325/1.331, allocations: 10.56 MB / 0.7576 GB, free: 66.41 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002846/1.334, allocations: 3.085 MB / 0.7606 GB, free: 63.99 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004028/1.338, allocations: 1.828 MB / 0.7624 GB, free: 62.82 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005599/1.339, allocations: 233.1 kB / 0.7626 GB, free: 62.61 MB / 442.7 MB Notification: Performance of SimCode: time 9.92e-07/1.339, allocations: 0 / 0.7626 GB, free: 62.61 MB / 442.7 MB Notification: Performance of Templates: time 0.05954/1.398, allocations: 38.84 MB / 0.8006 GB, free: 26.84 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches