Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.r_0.1.|body1.r_0.2.|body1.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body2.r_0.1.|body2.r_0.2.|body2.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body3.r_0.1.|body3.r_0.2.|body3.r_0.3.|body3.v_0.1.|body3.v_0.2.|body3.v_0.3.|body4.r_0.1.|body4.r_0.2.|body4.r_0.3.|body4.v_0.1.|body4.v_0.2.|body4.v_0.3.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.r_0.1.|body1.r_0.2.|body1.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body2.r_0.1.|body2.r_0.2.|body2.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body3.r_0.1.|body3.r_0.2.|body3.r_0.3.|body3.v_0.1.|body3.v_0.2.|body3.v_0.3.|body4.r_0.1.|body4.r_0.2.|body4.r_0.3.|body4.v_0.1.|body4.v_0.2.|body4.v_0.3.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001924/0.001925, allocations: 198.7 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.449/1.449, allocations: 226.5 MB / 245.4 MB, free: 8.242 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008931/0.0008931, allocations: 101.6 kB / 297.4 MB, free: 6.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002685/0.0002687, allocations: 8 kB / 357.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3193/0.3195, allocations: 51.3 MB / 408.7 MB, free: 27.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1205/0.44, allocations: 90.65 MB / 499.3 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/0.4404, allocations: 95.94 kB / 499.4 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2942/0.7346, allocations: 53.1 MB / 0.5396 GB, free: 72.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.7346, allocations: 0 / 0.5396 GB, free: 72.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001039/0.7347, allocations: 59.94 kB / 0.5396 GB, free: 72.2 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: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.006114/0.7408, allocations: 2.505 MB / 0.5421 GB, free: 69.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.7409, allocations: 8.031 kB / 0.5421 GB, free: 69.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008562/0.7495, allocations: 1.958 MB / 0.544 GB, free: 67.65 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003335/0.7528, allocations: 1.431 MB / 0.5454 GB, free: 66.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001989/0.753, allocations: 230.3 kB / 0.5456 GB, free: 65.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001216/0.7543, allocations: 304.2 kB / 0.5459 GB, free: 65.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02096/0.7752, allocations: 8.977 MB / 0.5547 GB, free: 55.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002572/0.7755, allocations: 63.64 kB / 0.5547 GB, free: 55.67 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001237/0.7768, allocations: 151.9 kB / 0.5549 GB, free: 55.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001271/0.7781, allocations: 0.8047 MB / 0.5557 GB, free: 54.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01505/0.7932, allocations: 7.181 MB / 0.5627 GB, free: 47.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0317/0.8249, allocations: 38.37 MB / 0.6001 GB, free: 7.879 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01819/0.8431, allocations: 5.357 MB / 0.6054 GB, free: 2.344 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001375/0.8445, allocations: 0.9455 MB / 0.6063 GB, free: 1.379 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006024/0.8506, allocations: 3.68 MB / 0.6099 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.272e-05/0.8507, allocations: 59 kB / 0.6099 GB, free: 13.48 MB / 394.7 MB Notification: Performance of pre-optimization done (n=111): time 4.348e-06/0.8507, allocations: 0 / 0.6099 GB, free: 13.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=111): time 0.0402/0.8909, allocations: 9.751 MB / 0.6195 GB, free: 3.641 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.891, allocations: 195.9 kB / 0.6197 GB, free: 3.406 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006695/0.8977, allocations: 3.027 MB / 0.6226 GB, free: 368 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002653/0.8981, allocations: 37.7 kB / 0.6226 GB, free: 324 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002159/0.9002, allocations: 2.429 MB / 0.625 GB, free: 13.85 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008206/0.9011, allocations: 0.4942 MB / 0.6255 GB, free: 13.35 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005969/0.9017, allocations: 104 kB / 0.6256 GB, free: 13.25 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005553/0.9023, allocations: 0.5294 MB / 0.6261 GB, free: 12.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002843/0.9051, allocations: 1.494 MB / 0.6276 GB, free: 11.21 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006546/0.9117, allocations: 5.06 MB / 0.6325 GB, free: 4.348 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008335/0.9201, allocations: 7.133 MB / 0.6395 GB, free: 11.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001296/0.9203, allocations: 36 kB / 0.6395 GB, free: 11.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01307/0.9334, allocations: 6.225 MB / 0.6456 GB, free: 5.164 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.978e-05/0.9335, allocations: 60 kB / 0.6457 GB, free: 5.105 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001551/0.9336, allocations: 128 kB / 0.6458 GB, free: 4.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001486/0.9338, allocations: 171.9 kB / 0.6459 GB, free: 4.812 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005527/0.9393, allocations: 1.521 MB / 0.6474 GB, free: 3.289 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002122/0.9396, allocations: 251.6 kB / 0.6477 GB, free: 3.043 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004844/0.9444, allocations: 0.7542 MB / 0.6484 GB, free: 2.281 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00129/0.9458, allocations: 344 kB / 0.6487 GB, free: 1.945 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (681): * Single equations (assignments): 678 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003566/0.9493, allocations: 1.579 MB / 0.6503 GB, free: 360 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005538/0.9499, allocations: 252.7 kB / 0.6505 GB, free: 104 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/0.9514, allocations: 0.7468 MB / 0.6512 GB, free: 15.35 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-05/0.9514, allocations: 15.98 kB / 0.6513 GB, free: 15.33 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.9514, allocations: 4 kB / 0.6513 GB, free: 15.33 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.9514, allocations: 3.984 kB / 0.6513 GB, free: 15.32 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006503/0.9579, allocations: 3.235 MB / 0.6544 GB, free: 12.03 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/0.958, allocations: 4 kB / 0.6544 GB, free: 12.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002593/0.9606, allocations: 475.4 kB / 0.6549 GB, free: 11.56 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.558e-05/0.9606, allocations: 4 kB / 0.6549 GB, free: 11.55 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001102/0.9607, allocations: 31.97 kB / 0.6549 GB, free: 11.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.889e-06/0.9608, allocations: 11.98 kB / 0.6549 GB, free: 11.51 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.9608, allocations: 3.938 kB / 0.6549 GB, free: 11.51 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00315/0.9639, allocations: 2.569 MB / 0.6574 GB, free: 8.91 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008423/0.9648, allocations: 309.5 kB / 0.6577 GB, free: 8.586 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002908/0.9651, allocations: 31.98 kB / 0.6578 GB, free: 8.555 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009795/0.9661, allocations: 47.94 kB / 0.6578 GB, free: 8.508 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001481/0.9662, allocations: 63.86 kB / 0.6579 GB, free: 8.445 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.981e-05/0.9663, allocations: 31.98 kB / 0.6579 GB, free: 8.414 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00338/0.9697, allocations: 1.837 MB / 0.6597 GB, free: 6.574 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.9697, allocations: 0 / 0.6597 GB, free: 6.574 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004965/0.9747, allocations: 0.8377 MB / 0.6605 GB, free: 5.734 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[3]) * 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 (87): * Single equations (assignments): 84 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005211/0.9753, allocations: 179 kB / 0.6607 GB, free: 5.547 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007777/0.9831, allocations: 3.405 MB / 0.664 GB, free: 2.172 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.468e-05/0.9832, allocations: 1.938 kB / 0.664 GB, free: 2.172 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001519/0.9847, allocations: 0.629 MB / 0.6646 GB, free: 1.543 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003882/0.9886, allocations: 252.5 kB / 0.6649 GB, free: 1.297 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2745/1.263, allocations: 8.824 MB / 0.6735 GB, free: 124.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002546/1.266, allocations: 2.396 MB / 0.6758 GB, free: 123.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007687/1.267, allocations: 231.5 kB / 0.676 GB, free: 123.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.793e-06/1.267, allocations: 0 / 0.676 GB, free: 123.6 MB / 442.7 MB Notification: Performance of Templates: time 0.06759/1.334, allocations: 40.21 MB / 0.7153 GB, free: 104.6 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches