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.0009157/0.0009158, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.458/1.458, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009068/0.000907, allocations: 90.69 kB / 262.5 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.557e-05/1.559e-05, allocations: 4 kB / 315.5 MB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08613/0.08616, allocations: 47.58 MB / 363.1 MB, free: 7.066 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3332/0.4194, allocations: 91.78 MB / 454.9 MB, free: 4.121 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/0.4197, allocations: 88.58 kB / 454.9 MB, free: 4.078 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2115/0.6312, allocations: 81.64 MB / 0.524 GB, free: 7.676 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.6313, allocations: 4 kB / 0.524 GB, free: 7.672 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001781/0.6315, allocations: 71.98 kB / 0.5241 GB, free: 7.602 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.01081/0.6423, allocations: 3.968 MB / 0.528 GB, free: 3.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.6423, allocations: 8.031 kB / 0.528 GB, free: 3.562 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2264/0.8687, allocations: 6.608 MB / 0.5344 GB, free: 93.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01477/0.8835, allocations: 5.832 MB / 0.5401 GB, free: 93.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002083/0.8838, allocations: 113.6 kB / 0.5402 GB, free: 93.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001288/0.8851, allocations: 212.9 kB / 0.5404 GB, free: 93.58 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009639/0.8947, allocations: 5.253 MB / 0.5456 GB, free: 93.56 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01249/0.9073, allocations: 8.188 MB / 0.5536 GB, free: 91.15 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001908/0.9075, allocations: 67.14 kB / 0.5536 GB, free: 91.14 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000511/0.908, allocations: 27.47 kB / 0.5536 GB, free: 91.14 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001034/0.909, allocations: 0.8941 MB / 0.5545 GB, free: 91.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03485/0.9439, allocations: 40.7 MB / 0.5943 GB, free: 63.47 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003197/0.9471, allocations: 3.045 MB / 0.5972 GB, free: 61.85 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001759/0.9489, allocations: 1.901 MB / 0.5991 GB, free: 61.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003374/0.9493, allocations: 331.4 kB / 0.5994 GB, free: 60.75 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/0.9493, allocations: 49.41 kB / 0.5995 GB, free: 60.71 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 4.819e-06/0.9493, allocations: 3.938 kB / 0.5995 GB, free: 60.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=189): time 0.03111/0.9805, allocations: 16.82 MB / 0.6159 GB, free: 54.29 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.822e-05/0.9806, allocations: 260 kB / 0.6161 GB, free: 53.99 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003414/0.984, allocations: 3.024 MB / 0.6191 GB, free: 52.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002021/0.9842, allocations: 26.55 kB / 0.6191 GB, free: 52.77 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001087/0.9853, allocations: 2.892 MB / 0.6219 GB, free: 50.13 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004504/0.9858, allocations: 0.696 MB / 0.6226 GB, free: 49.51 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001972/0.986, allocations: 0 / 0.6226 GB, free: 49.51 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002124/0.9862, allocations: 0.5467 MB / 0.6232 GB, free: 49.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002001/0.9882, allocations: 1.974 MB / 0.6251 GB, free: 47.25 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003101/0.9913, allocations: 5.324 MB / 0.6303 GB, free: 40.61 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003234/0.9946, allocations: 3.221 MB / 0.6334 GB, free: 37.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.77e-05/0.9946, allocations: 32 kB / 0.6335 GB, free: 37.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=738) (initialization): time 0.01109/1.006, allocations: 7.724 MB / 0.641 GB, free: 31.26 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.147e-05/1.006, allocations: 56 kB / 0.6411 GB, free: 31.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.468e-05/1.006, allocations: 116 kB / 0.6412 GB, free: 31.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003275/1.009, allocations: 1.377 MB / 0.6425 GB, free: 30.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003565/1.013, allocations: 1.272 MB / 0.6438 GB, free: 28.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008908/1.022, allocations: 7.85 MB / 0.6514 GB, free: 22.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004016/1.026, allocations: 215.4 kB / 0.6516 GB, free: 21.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007553/1.027, allocations: 347.1 kB / 0.652 GB, free: 21.6 MB / 410.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.0006714/1.027, allocations: 404.9 kB / 0.6523 GB, free: 21.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005192/1.028, allocations: 331.7 kB / 0.6527 GB, free: 20.87 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006217/1.034, allocations: 3.738 MB / 0.6563 GB, free: 17.92 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.024e-05/1.034, allocations: 29.52 kB / 0.6563 GB, free: 17.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/1.034, allocations: 8 kB / 0.6563 GB, free: 17.89 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/1.034, allocations: 7.406 kB / 0.6564 GB, free: 17.89 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01232/1.046, allocations: 8.164 MB / 0.6643 GB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.284e-05/1.046, allocations: 4.062 kB / 0.6643 GB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/1.048, allocations: 261.9 kB / 0.6646 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003041/1.051, allocations: 1.197 MB / 0.6657 GB, free: 10.12 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001575/1.051, allocations: 4 kB / 0.6658 GB, free: 10.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007737/1.059, allocations: 7.032 MB / 0.6726 GB, free: 2.969 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/1.059, allocations: 4 kB / 0.6726 GB, free: 2.965 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009392/1.068, allocations: 6.598 MB / 0.6791 GB, free: 12.32 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001493/1.07, allocations: 0.6451 MB / 0.6797 GB, free: 11.65 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003692/1.07, allocations: 0 / 0.6797 GB, free: 11.65 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001402/1.071, allocations: 91.78 kB / 0.6798 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000282/1.072, allocations: 117 kB / 0.6799 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/1.072, allocations: 48 kB / 0.6799 GB, free: 11.4 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003058/1.075, allocations: 2.058 MB / 0.6819 GB, free: 9.359 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.91e-07/1.075, allocations: 0 / 0.6819 GB, free: 9.359 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004186/1.079, allocations: 0.8626 MB / 0.6828 GB, free: 8.5 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.0004073/1.079, allocations: 140.5 kB / 0.6829 GB, free: 8.363 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007425/1.087, allocations: 5.008 MB / 0.6878 GB, free: 3.375 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/1.087, allocations: 0 / 0.6878 GB, free: 3.375 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002872/1.09, allocations: 1.9 MB / 0.6897 GB, free: 1.465 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002022/1.092, allocations: 384.9 kB / 0.69 GB, free: 1.102 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2136/1.305, allocations: 7.44 MB / 0.6973 GB, free: 96.57 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004454/1.31, allocations: 3.176 MB / 0.7004 GB, free: 95.79 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005503/1.316, allocations: 1.876 MB / 0.7022 GB, free: 95.75 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008094/1.316, allocations: 233.3 kB / 0.7025 GB, free: 95.74 MB / 426.7 MB Notification: Performance of SimCode: time 1.012e-06/1.316, allocations: 0 / 0.7025 GB, free: 95.74 MB / 426.7 MB Notification: Performance of Templates: time 0.05587/1.372, allocations: 34.88 MB / 0.7365 GB, free: 94.11 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