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.000975/0.0009751, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.46/1.46, allocations: 221.3 MB / 235.5 MB, free: 2.961 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.001094/0.001094, allocations: 90.23 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.911e-05/2.915e-05, allocations: 4 kB / 343.8 MB, free: 4.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1125, allocations: 50.42 MB / 394.3 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3517/0.4643, allocations: 93.64 MB / 487.9 MB, free: 9.883 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002644/0.4646, allocations: 95.77 kB / 488 MB, free: 9.793 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4713/0.9359, allocations: 84.14 MB / 0.5587 GB, free: 96.2 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.727e-06/0.936, allocations: 0 / 0.5587 GB, free: 96.2 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002752/0.9363, allocations: 75.62 kB / 0.5588 GB, free: 96.2 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.01442/0.9507, allocations: 3.954 MB / 0.5626 GB, free: 94.63 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/0.9508, allocations: 15.97 kB / 0.5627 GB, free: 94.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02517/0.9759, allocations: 6.614 MB / 0.5691 GB, free: 94.36 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01451/0.9905, allocations: 5.514 MB / 0.5745 GB, free: 93.75 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002641/0.9908, allocations: 269.1 kB / 0.5748 GB, free: 93.74 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001479/0.9923, allocations: 367.8 kB / 0.5751 GB, free: 93.73 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01367/1.006, allocations: 9.043 MB / 0.5839 GB, free: 91.31 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001412/1.006, allocations: 61.41 kB / 0.584 GB, free: 91.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004589/1.007, allocations: 181.6 kB / 0.5842 GB, free: 91.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009264/1.008, allocations: 0.8889 MB / 0.585 GB, free: 91.29 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01265/1.02, allocations: 7.484 MB / 0.5924 GB, free: 89.93 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03895/1.059, allocations: 42.25 MB / 0.6336 GB, free: 57.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007624/1.067, allocations: 3.725 MB / 0.6372 GB, free: 56.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002404/1.069, allocations: 1.946 MB / 0.6391 GB, free: 55.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003726/1.07, allocations: 328.6 kB / 0.6395 GB, free: 55.06 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/1.07, allocations: 51.56 kB / 0.6395 GB, free: 55 MB / 426.7 MB Notification: Performance of pre-optimization done (n=160): time 5.921e-06/1.07, allocations: 0 / 0.6395 GB, free: 55 MB / 426.7 MB Notification: Performance of matching and sorting (n=189): time 0.0405/1.11, allocations: 17.1 MB / 0.6562 GB, free: 40.88 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.436e-05/1.11, allocations: 255.6 kB / 0.6565 GB, free: 40.58 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004714/1.115, allocations: 3.422 MB / 0.6598 GB, free: 37.28 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004137/1.116, allocations: 53.7 kB / 0.6599 GB, free: 37.22 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001344/1.117, allocations: 2.827 MB / 0.6626 GB, free: 34.39 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006504/1.118, allocations: 0.7199 MB / 0.6633 GB, free: 33.68 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002172/1.118, allocations: 104 kB / 0.6634 GB, free: 33.58 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002385/1.118, allocations: 0.5374 MB / 0.6639 GB, free: 33.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002482/1.121, allocations: 2.041 MB / 0.6659 GB, free: 30.99 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004062/1.125, allocations: 5.286 MB / 0.6711 GB, free: 24.07 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003713/1.128, allocations: 3.277 MB / 0.6743 GB, free: 20.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.628e-05/1.128, allocations: 32 kB / 0.6743 GB, free: 20.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01265/1.141, allocations: 8.327 MB / 0.6825 GB, free: 12.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.782e-05/1.141, allocations: 57.41 kB / 0.6825 GB, free: 12.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.406e-05/1.141, allocations: 115.9 kB / 0.6826 GB, free: 12.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003391/1.145, allocations: 1.375 MB / 0.684 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003852/1.149, allocations: 1.228 MB / 0.6852 GB, free: 9.652 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00958/1.158, allocations: 8.403 MB / 0.6934 GB, free: 1.125 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004699/1.163, allocations: 311.5 kB / 0.6937 GB, free: 0.8203 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001158/1.164, allocations: 336 kB / 0.694 GB, free: 0.4922 MB / 426.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 () * 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.001863/1.166, allocations: 0.5125 MB / 0.6945 GB, free: 15.97 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001377/1.167, allocations: 359.4 kB / 0.6948 GB, free: 15.62 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008887/1.176, allocations: 3.886 MB / 0.6986 GB, free: 11.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.544e-05/1.176, allocations: 25.7 kB / 0.6986 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.828e-05/1.176, allocations: 11.94 kB / 0.6987 GB, free: 11.68 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.46e-05/1.176, allocations: 11.97 kB / 0.6987 GB, free: 11.67 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01809/1.195, allocations: 8.865 MB / 0.7073 GB, free: 2.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.635e-05/1.195, allocations: 0 / 0.7073 GB, free: 2.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001323/1.196, allocations: 259.6 kB / 0.7076 GB, free: 2.496 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003547/1.199, allocations: 1.216 MB / 0.7088 GB, free: 1.277 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003123/1.2, allocations: 35.98 kB / 0.7088 GB, free: 1.242 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2574/1.457, allocations: 7.545 MB / 0.7162 GB, free: 98.68 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/1.457, allocations: 2.656 kB / 0.7162 GB, free: 98.68 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01118/1.468, allocations: 6.762 MB / 0.7228 GB, free: 98.04 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/1.47, allocations: 406.4 kB / 0.7232 GB, free: 97.95 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005387/1.47, allocations: 32.55 kB / 0.7232 GB, free: 97.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00212/1.472, allocations: 112.2 kB / 0.7233 GB, free: 97.95 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006294/1.473, allocations: 115 kB / 0.7234 GB, free: 97.95 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001868/1.473, allocations: 50.39 kB / 0.7235 GB, free: 97.95 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004811/1.478, allocations: 2.412 MB / 0.7258 GB, free: 97.74 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.91e-07/1.478, allocations: 1.094 kB / 0.7258 GB, free: 97.74 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005708/1.484, allocations: 0.9966 MB / 0.7268 GB, free: 97.74 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.0004999/1.484, allocations: 173.2 kB / 0.727 GB, free: 97.66 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007351/1.492, allocations: 5.12 MB / 0.732 GB, free: 97.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/1.492, allocations: 3.906 kB / 0.732 GB, free: 97.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002823/1.494, allocations: 1.953 MB / 0.7339 GB, free: 97.35 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002597/1.497, allocations: 450.5 kB / 0.7343 GB, free: 97.33 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01188/1.509, allocations: 7.536 MB / 0.7417 GB, free: 94.85 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002725/1.512, allocations: 3.166 MB / 0.7447 GB, free: 93.62 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004068/1.516, allocations: 1.823 MB / 0.7465 GB, free: 93.58 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006646/1.517, allocations: 237.8 kB / 0.7468 GB, free: 93.57 MB / 442.7 MB Notification: Performance of SimCode: time 1.392e-06/1.517, allocations: 0 / 0.7468 GB, free: 93.57 MB / 442.7 MB Notification: Performance of Templates: time 0.06762/1.584, allocations: 38.7 MB / 0.7845 GB, free: 81.89 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