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.0009272/0.0009272, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 221.5 MB / 230.3 MB, free: 7.523 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009008/0.0009008, allocations: 95.16 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.415e-05/1.418e-05, allocations: 4 kB / 337 MB, free: 10.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1078, allocations: 50.43 MB / 387.5 MB, free: 7.543 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3278/0.4357, allocations: 92.98 MB / 480.5 MB, free: 1.812 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.436, allocations: 85.64 kB / 480.5 MB, free: 1.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5005/0.9365, allocations: 82.68 MB / 0.55 GB, free: 96.4 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.9366, allocations: 2.375 kB / 0.55 GB, free: 96.4 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002623/0.9368, allocations: 71.62 kB / 0.5501 GB, free: 96.4 MB / 426.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.01504/0.9519, allocations: 3.954 MB / 0.5539 GB, free: 95.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.952, allocations: 11.59 kB / 0.554 GB, free: 95.77 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0277/0.9797, allocations: 6.614 MB / 0.5604 GB, free: 95.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01536/0.9951, allocations: 5.52 MB / 0.5658 GB, free: 94.93 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002616/0.9954, allocations: 113.4 kB / 0.5659 GB, free: 94.93 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001466/0.9969, allocations: 217.9 kB / 0.5661 GB, free: 94.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01019/1.007, allocations: 5.247 MB / 0.5712 GB, free: 94.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01478/1.022, allocations: 8.194 MB / 0.5792 GB, free: 92.49 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002106/1.022, allocations: 67.09 kB / 0.5793 GB, free: 92.48 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005211/1.023, allocations: 27.88 kB / 0.5793 GB, free: 92.48 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001295/1.024, allocations: 0.8893 MB / 0.5802 GB, free: 92.48 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03834/1.062, allocations: 40.65 MB / 0.6199 GB, free: 63.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004291/1.067, allocations: 3.044 MB / 0.6229 GB, free: 61.88 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00218/1.069, allocations: 1.901 MB / 0.6247 GB, free: 61.07 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003991/1.069, allocations: 329.9 kB / 0.625 GB, free: 60.78 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.202e-05/1.069, allocations: 58.52 kB / 0.6251 GB, free: 60.72 MB / 426.7 MB Notification: Performance of pre-optimization done (n=160): time 5.24e-06/1.069, allocations: 0 / 0.6251 GB, free: 60.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=189): time 0.0328/1.102, allocations: 16.69 MB / 0.6414 GB, free: 53.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.328e-05/1.102, allocations: 256.1 kB / 0.6416 GB, free: 52.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003909/1.106, allocations: 3 MB / 0.6446 GB, free: 50.26 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003279/1.107, allocations: 29.7 kB / 0.6446 GB, free: 50.23 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001561/1.108, allocations: 2.874 MB / 0.6474 GB, free: 47.61 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008127/1.109, allocations: 0.7025 MB / 0.6481 GB, free: 46.98 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001945/1.109, allocations: 0 / 0.6481 GB, free: 46.98 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002696/1.109, allocations: 0.5412 MB / 0.6486 GB, free: 46.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002268/1.112, allocations: 1.977 MB / 0.6506 GB, free: 44.73 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003568/1.115, allocations: 5.323 MB / 0.6558 GB, free: 38.02 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003436/1.119, allocations: 3.227 MB / 0.6589 GB, free: 35.27 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.21e-05/1.119, allocations: 36 kB / 0.6589 GB, free: 35.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=738) (initialization): time 0.01357/1.132, allocations: 7.723 MB / 0.6665 GB, free: 28.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.365e-05/1.133, allocations: 57.56 kB / 0.6665 GB, free: 28.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001189/1.133, allocations: 116 kB / 0.6667 GB, free: 28.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003641/1.136, allocations: 1.376 MB / 0.668 GB, free: 27.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004409/1.141, allocations: 1.275 MB / 0.6692 GB, free: 26.37 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009455/1.15, allocations: 7.853 MB / 0.6769 GB, free: 19.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00506/1.155, allocations: 207.2 kB / 0.6771 GB, free: 19.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001188/1.157, allocations: 351.6 kB / 0.6774 GB, free: 19 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 543 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (677): * Single equations (assignments): 673 * 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%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008802/1.157, allocations: 408.3 kB / 0.6778 GB, free: 18.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007948/1.158, allocations: 335.2 kB / 0.6782 GB, free: 18.28 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006508/1.165, allocations: 3.741 MB / 0.6818 GB, free: 15.18 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.252e-05/1.165, allocations: 24 kB / 0.6818 GB, free: 15.15 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.405e-05/1.165, allocations: 4 kB / 0.6818 GB, free: 15.15 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.456e-05/1.165, allocations: 11.97 kB / 0.6818 GB, free: 15.14 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01404/1.179, allocations: 8.153 MB / 0.6898 GB, free: 6.957 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/1.179, allocations: 3.938 kB / 0.6898 GB, free: 6.953 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001269/1.18, allocations: 263.6 kB / 0.6901 GB, free: 6.695 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003103/1.183, allocations: 1.183 MB / 0.6912 GB, free: 5.508 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002689/1.184, allocations: 12 kB / 0.6912 GB, free: 5.496 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008744/1.192, allocations: 7.04 MB / 0.6981 GB, free: 14.34 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.427e-06/1.192, allocations: 7.938 kB / 0.6981 GB, free: 14.33 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01042/1.203, allocations: 6.59 MB / 0.7045 GB, free: 7.68 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001227/1.204, allocations: 376.7 kB / 0.7049 GB, free: 7.289 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004772/1.205, allocations: 4 kB / 0.7049 GB, free: 7.285 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00141/1.206, allocations: 83.84 kB / 0.705 GB, free: 7.203 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003272/1.206, allocations: 109 kB / 0.7051 GB, free: 7.094 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001437/1.207, allocations: 56.52 kB / 0.7051 GB, free: 7.043 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003641/1.21, allocations: 2.038 MB / 0.7071 GB, free: 5.02 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.21, allocations: 0 / 0.7071 GB, free: 5.02 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005904/1.216, allocations: 0.8671 MB / 0.708 GB, free: 4.152 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 () * 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.000512/1.217, allocations: 142.7 kB / 0.7081 GB, free: 4.008 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.2644/1.481, allocations: 4.993 MB / 0.713 GB, free: 100.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/1.481, allocations: 0 / 0.713 GB, free: 100.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003661/1.485, allocations: 1.904 MB / 0.7149 GB, free: 100.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002445/1.487, allocations: 378.7 kB / 0.7152 GB, free: 100.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01652/1.504, allocations: 7.416 MB / 0.7225 GB, free: 98.78 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004544/1.508, allocations: 3.167 MB / 0.7255 GB, free: 98 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005252/1.514, allocations: 1.877 MB / 0.7274 GB, free: 97.96 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007267/1.514, allocations: 224.6 kB / 0.7276 GB, free: 97.95 MB / 442.7 MB Notification: Performance of SimCode: time 1.433e-06/1.514, allocations: 0 / 0.7276 GB, free: 97.95 MB / 442.7 MB Notification: Performance of Templates: time 0.06103/1.575, allocations: 34.85 MB / 0.7616 GB, free: 96.57 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/jenkins/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