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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001392/0.001392, allocations: 174.9 kB / 14.1 MB, free: 1.211 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.556/1.556, allocations: 205.2 MB / 219.8 MB, free: 14.29 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001004/0.001004, allocations: 86.64 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.727e-05/3.74e-05, allocations: 8 kB / 322.5 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09232/0.09237, allocations: 47.58 MB / 370 MB, free: 1.711 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3493/0.4417, allocations: 92.21 MB / 462.2 MB, free: 1.332 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002345/0.442, allocations: 85.64 kB / 462.3 MB, free: 1.289 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4631/0.9051, allocations: 83.11 MB / 0.5326 GB, free: 91.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.9052, allocations: 0 / 0.5326 GB, free: 91.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002877/0.9055, allocations: 73.11 kB / 0.5327 GB, free: 91.2 MB / 410.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.01337/0.9188, allocations: 3.96 MB / 0.5366 GB, free: 90.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.611e-05/0.9189, allocations: 8.969 kB / 0.5366 GB, free: 90.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02663/0.9456, allocations: 6.617 MB / 0.5431 GB, free: 90.31 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01512/0.9607, allocations: 5.847 MB / 0.5488 GB, free: 89.77 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002684/0.961, allocations: 272.3 kB / 0.549 GB, free: 89.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001406/0.9624, allocations: 364 kB / 0.5494 GB, free: 89.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01383/0.9763, allocations: 9.04 MB / 0.5582 GB, free: 87.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001346/0.9764, allocations: 64.19 kB / 0.5583 GB, free: 87.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005518/0.977, allocations: 175.4 kB / 0.5584 GB, free: 87.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001197/0.9782, allocations: 0.8915 MB / 0.5593 GB, free: 87.32 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0132/0.9914, allocations: 7.481 MB / 0.5666 GB, free: 87.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03756/1.029, allocations: 42.29 MB / 0.6079 GB, free: 55.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007172/1.036, allocations: 3.74 MB / 0.6116 GB, free: 54.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002005/1.038, allocations: 1.944 MB / 0.6135 GB, free: 53.33 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003434/1.039, allocations: 332.6 kB / 0.6138 GB, free: 53.04 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/1.039, allocations: 53.09 kB / 0.6138 GB, free: 52.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 5.44e-06/1.039, allocations: 0 / 0.6138 GB, free: 52.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=189): time 0.04156/1.08, allocations: 17.21 MB / 0.6306 GB, free: 41.4 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.598e-05/1.08, allocations: 256.6 kB / 0.6309 GB, free: 41.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004839/1.085, allocations: 3.444 MB / 0.6342 GB, free: 38.01 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004051/1.086, allocations: 53.7 kB / 0.6343 GB, free: 37.95 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00143/1.087, allocations: 2.84 MB / 0.6371 GB, free: 35.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008142/1.088, allocations: 0.7244 MB / 0.6378 GB, free: 34.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002239/1.088, allocations: 108 kB / 0.6379 GB, free: 34.66 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002528/1.088, allocations: 0.5365 MB / 0.6384 GB, free: 34.19 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002506/1.091, allocations: 2.047 MB / 0.6404 GB, free: 32.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003575/1.095, allocations: 5.281 MB / 0.6456 GB, free: 25.73 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003473/1.098, allocations: 3.274 MB / 0.6488 GB, free: 22.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.698e-05/1.098, allocations: 32 kB / 0.6488 GB, free: 22.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01199/1.11, allocations: 8.323 MB / 0.6569 GB, free: 15.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.848e-05/1.11, allocations: 52 kB / 0.657 GB, free: 15.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.892e-05/1.11, allocations: 116.9 kB / 0.6571 GB, free: 15.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003264/1.114, allocations: 1.383 MB / 0.6584 GB, free: 14.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003533/1.117, allocations: 1.228 MB / 0.6596 GB, free: 12.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009399/1.127, allocations: 8.393 MB / 0.6678 GB, free: 4.348 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004971/1.132, allocations: 303.5 kB / 0.6681 GB, free: 4.051 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001235/1.133, allocations: 339.9 kB / 0.6684 GB, free: 3.723 MB / 410.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.00164/1.134, allocations: 0.5207 MB / 0.6689 GB, free: 3.195 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009432/1.135, allocations: 359.4 kB / 0.6693 GB, free: 2.84 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008106/1.144, allocations: 3.887 MB / 0.6731 GB, free: 14.94 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.299e-05/1.144, allocations: 24 kB / 0.6731 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.14e-05/1.144, allocations: 4 kB / 0.6731 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.313e-05/1.144, allocations: 11.97 kB / 0.6731 GB, free: 14.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02041/1.164, allocations: 8.906 MB / 0.6818 GB, free: 5.945 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-05/1.164, allocations: 0 / 0.6818 GB, free: 5.945 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00137/1.166, allocations: 263.6 kB / 0.6821 GB, free: 5.688 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003667/1.169, allocations: 1.22 MB / 0.6833 GB, free: 4.465 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002894/1.17, allocations: 32 kB / 0.6833 GB, free: 4.434 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2315/1.401, allocations: 7.537 MB / 0.6906 GB, free: 94.51 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/1.401, allocations: 5.031 kB / 0.6907 GB, free: 94.51 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01084/1.412, allocations: 6.767 MB / 0.6973 GB, free: 93.88 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002068/1.414, allocations: 0.6795 MB / 0.6979 GB, free: 93.78 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004824/1.415, allocations: 33.97 kB / 0.698 GB, free: 93.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001442/1.416, allocations: 111.9 kB / 0.6981 GB, free: 93.78 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003454/1.416, allocations: 108.1 kB / 0.6982 GB, free: 93.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000138/1.416, allocations: 49.2 kB / 0.6982 GB, free: 93.78 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004174/1.421, allocations: 2.442 MB / 0.7006 GB, free: 93.57 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.3e-07/1.421, allocations: 0 / 0.7006 GB, free: 93.57 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005351/1.426, allocations: 0.997 MB / 0.7016 GB, free: 93.57 MB / 426.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.0006237/1.427, allocations: 166.6 kB / 0.7017 GB, free: 93.49 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007061/1.434, allocations: 5.122 MB / 0.7067 GB, free: 93.32 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/1.434, allocations: 0 / 0.7067 GB, free: 93.32 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002695/1.436, allocations: 1.96 MB / 0.7086 GB, free: 93.18 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002971/1.439, allocations: 451.6 kB / 0.7091 GB, free: 93.16 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01445/1.454, allocations: 7.548 MB / 0.7164 GB, free: 91.77 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00397/1.458, allocations: 3.175 MB / 0.7195 GB, free: 90.98 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004663/1.463, allocations: 1.83 MB / 0.7213 GB, free: 90.94 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009208/1.464, allocations: 235.9 kB / 0.7216 GB, free: 90.94 MB / 426.7 MB Notification: Performance of SimCode: time 9.62e-07/1.464, allocations: 2.25 kB / 0.7216 GB, free: 90.94 MB / 426.7 MB Notification: Performance of Templates: time 0.07044/1.534, allocations: 38.76 MB / 0.7594 GB, free: 80.66 MB / 426.7 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/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