Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009338/0.0009338, allocations: 194.1 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.5 MB / 245.4 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008066/0.0008066, allocations: 99.3 kB / 297.4 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002618/0.0002618, allocations: 8 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2053/0.2056, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09838/0.304, allocations: 94.39 MB / 0.4913 GB, free: 13.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002308/0.3043, allocations: 93.2 kB / 0.4914 GB, free: 13.11 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3377/0.642, allocations: 83.88 MB / 0.5733 GB, free: 37.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.642, allocations: 0 / 0.5733 GB, free: 37.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001338/0.6422, allocations: 76 kB / 0.5733 GB, free: 37.79 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.00928/0.6514, allocations: 4.215 MB / 0.5775 GB, free: 33.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.6515, allocations: 8.031 kB / 0.5775 GB, free: 33.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01781/0.6693, allocations: 4.964 MB / 0.5823 GB, free: 28.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008912/0.6783, allocations: 4.207 MB / 0.5864 GB, free: 24.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001746/0.6785, allocations: 267.4 kB / 0.5867 GB, free: 23.99 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001186/0.6797, allocations: 360.2 kB / 0.587 GB, free: 23.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01207/0.6917, allocations: 9.048 MB / 0.5959 GB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001286/0.6919, allocations: 67.56 kB / 0.5959 GB, free: 13.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004252/0.6923, allocations: 179.8 kB / 0.5961 GB, free: 13.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008848/0.6932, allocations: 0.8924 MB / 0.597 GB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.011/0.7042, allocations: 7.514 MB / 0.6043 GB, free: 5.016 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.042/0.7463, allocations: 42.22 MB / 0.6455 GB, free: 9.406 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007523/0.7538, allocations: 3.676 MB / 0.6491 GB, free: 5.578 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002288/0.7561, allocations: 1.962 MB / 0.651 GB, free: 3.609 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003684/0.7565, allocations: 336 kB / 0.6514 GB, free: 3.223 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.674e-05/0.7566, allocations: 59.48 kB / 0.6514 GB, free: 3.156 MB / 426.7 MB Notification: Performance of pre-optimization done (n=160): time 3.897e-06/0.7566, allocations: 0 / 0.6514 GB, free: 3.156 MB / 426.7 MB Notification: Performance of matching and sorting (n=189): time 0.04886/0.8054, allocations: 18.76 MB / 0.6697 GB, free: 280 kB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.214/1.02, allocations: 248.6 kB / 0.67 GB, free: 110.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005147/1.025, allocations: 3.877 MB / 0.6738 GB, free: 110.4 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003755/1.025, allocations: 51.3 kB / 0.6738 GB, free: 110.4 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001212/1.026, allocations: 2.836 MB / 0.6766 GB, free: 109.6 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005453/1.027, allocations: 0.7138 MB / 0.6773 GB, free: 109.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002214/1.027, allocations: 106.7 kB / 0.6774 GB, free: 109.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002061/1.027, allocations: 0.5408 MB / 0.6779 GB, free: 109 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002504/1.03, allocations: 2.079 MB / 0.6799 GB, free: 109 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003449/1.033, allocations: 5.35 MB / 0.6852 GB, free: 104.8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006504/1.04, allocations: 8.07 MB / 0.693 GB, free: 100.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.489e-05/1.04, allocations: 33.47 kB / 0.6931 GB, free: 100.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01167/1.052, allocations: 8.421 MB / 0.7013 GB, free: 98.98 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.922e-05/1.052, allocations: 53.78 kB / 0.7013 GB, free: 98.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.387e-05/1.052, allocations: 113.9 kB / 0.7015 GB, free: 98.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003011/1.055, allocations: 1.37 MB / 0.7028 GB, free: 98.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003081/1.058, allocations: 1.231 MB / 0.704 GB, free: 98.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008889/1.067, allocations: 8.418 MB / 0.7122 GB, free: 94.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003807/1.071, allocations: 325.9 kB / 0.7125 GB, free: 94.47 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005239/1.071, allocations: 330.4 kB / 0.7128 GB, free: 94.43 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.002668/1.074, allocations: 1.934 MB / 0.7147 GB, free: 93.52 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005122/1.074, allocations: 359.9 kB / 0.7151 GB, free: 93.32 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006156/1.08, allocations: 3.91 MB / 0.7189 GB, free: 91.93 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.962e-05/1.08, allocations: 26.06 kB / 0.7189 GB, free: 91.93 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/1.081, allocations: 7.812 kB / 0.7189 GB, free: 91.93 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.64e-05/1.081, allocations: 14.39 kB / 0.7189 GB, free: 91.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01341/1.094, allocations: 8.902 MB / 0.7276 GB, free: 88.56 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-05/1.094, allocations: 8 kB / 0.7276 GB, free: 88.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/1.095, allocations: 260.3 kB / 0.7279 GB, free: 88.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002922/1.098, allocations: 1.215 MB / 0.7291 GB, free: 87.93 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001548/1.098, allocations: 28 kB / 0.7291 GB, free: 87.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008271/1.106, allocations: 7.576 MB / 0.7365 GB, free: 81.3 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/1.106, allocations: 4 kB / 0.7365 GB, free: 81.3 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008309/1.115, allocations: 6.675 MB / 0.743 GB, free: 75.59 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009696/1.116, allocations: 409.9 kB / 0.7434 GB, free: 75.18 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003631/1.116, allocations: 36 kB / 0.7434 GB, free: 75.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/1.117, allocations: 111.1 kB / 0.7435 GB, free: 75.07 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003049/1.118, allocations: 112.3 kB / 0.7437 GB, free: 75.01 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001244/1.118, allocations: 48 kB / 0.7437 GB, free: 74.96 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003091/1.121, allocations: 2.444 MB / 0.7461 GB, free: 72.93 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.7e-07/1.121, allocations: 0 / 0.7461 GB, free: 72.93 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00394/1.125, allocations: 1.005 MB / 0.7471 GB, free: 71.94 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.0003793/1.125, allocations: 175.8 kB / 0.7472 GB, free: 71.77 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006453/1.132, allocations: 5.183 MB / 0.7523 GB, free: 67.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/1.132, allocations: 4 kB / 0.7523 GB, free: 67.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002559/1.134, allocations: 1.977 MB / 0.7542 GB, free: 65.47 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003091/1.137, allocations: 467.9 kB / 0.7547 GB, free: 65.07 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01454/1.152, allocations: 11.01 MB / 0.7654 GB, free: 55.09 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002786/1.155, allocations: 3.089 MB / 0.7684 GB, free: 52.66 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009422/1.156, allocations: 276.5 kB / 0.7687 GB, free: 52.4 MB / 442.7 MB Notification: Performance of SimCode: time 7.01e-07/1.156, allocations: 0 / 0.7687 GB, free: 52.4 MB / 442.7 MB Notification: Performance of Templates: time 0.5007/1.657, allocations: 72.61 MB / 0.8396 GB, free: 112 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches