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.00125/0.00125, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 226.6 MB / 244.4 MB, free: 8.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007851/0.0007852, allocations: 93.11 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002145/0.0002146, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1865/0.1867, allocations: 51.29 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.016/0.2028, allocations: 26.16 MB / 433.7 MB, free: 1.586 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01132/0.2141, allocations: 5.697 MB / 439.4 MB, free: 11.89 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004302/0.2185, allocations: 111.8 kB / 439.5 MB, free: 11.78 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003706/0.2222, allocations: 1.341 MB / 440.8 MB, free: 10.43 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009234/0.2315, allocations: 3.79 MB / 444.6 MB, free: 6.629 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001543/0.233, allocations: 227.6 kB / 444.8 MB, free: 6.406 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003342/0.2364, allocations: 2.592 MB / 447.4 MB, free: 3.812 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002385/0.2388, allocations: 1.907 MB / 449.3 MB, free: 1.867 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009777/0.2398, allocations: 0.7315 MB / 450 MB, free: 1.133 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001387/0.2412, allocations: 1.203 MB / 451.2 MB, free: 15.93 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000247/0.2414, allocations: 88 kB / 451.3 MB, free: 15.84 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001083/0.2425, allocations: 0.5304 MB / 451.9 MB, free: 15.31 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008485/0.2434, allocations: 1.083 MB / 452.9 MB, free: 14.22 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004691/0.2438, allocations: 0.5585 MB / 453.5 MB, free: 13.66 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002761/0.2466, allocations: 3.243 MB / 456.7 MB, free: 10.4 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2466, allocations: 3.938 kB / 456.8 MB, free: 10.4 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2466, allocations: 4 kB / 456.8 MB, free: 10.39 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.607e-05/0.2467, allocations: 0 / 456.8 MB, free: 10.39 MB / 330.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.003166/0.2499, allocations: 2.446 MB / 459.2 MB, free: 7.887 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.2499, allocations: 8.031 kB / 459.2 MB, free: 7.879 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006202/0.2561, allocations: 1.821 MB / 461 MB, free: 6.051 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001947/0.2581, allocations: 1.137 MB / 462.2 MB, free: 4.867 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001304/0.2582, allocations: 155.8 kB / 462.3 MB, free: 4.715 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003506/0.2586, allocations: 203.8 kB / 462.5 MB, free: 4.516 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0182/0.2768, allocations: 8.604 MB / 471.1 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.042e-05/0.2769, allocations: 35.66 kB / 471.2 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002533/0.2772, allocations: 103.9 kB / 471.3 MB, free: 11.17 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002669/0.2799, allocations: 1.671 MB / 472.9 MB, free: 9.5 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01733/0.2972, allocations: 7.151 MB / 480.1 MB, free: 2.344 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03387/0.3311, allocations: 30.18 MB / 0.4983 GB, free: 3.277 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2142/0.5454, allocations: 5.085 MB / 0.5033 GB, free: 94.88 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001489/0.5469, allocations: 1.246 MB / 0.5045 GB, free: 94.71 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004762/0.5517, allocations: 3.747 MB / 0.5081 GB, free: 92.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/0.5517, allocations: 43.8 kB / 0.5082 GB, free: 92.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=111): time 2.965e-06/0.5517, allocations: 0.5 kB / 0.5082 GB, free: 92.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.04193/0.5937, allocations: 9.375 MB / 0.5173 GB, free: 88.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.682e-05/0.5938, allocations: 199.7 kB / 0.5175 GB, free: 88.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002983/0.5968, allocations: 3.022 MB / 0.5205 GB, free: 85.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001098/0.5969, allocations: 39.42 kB / 0.5205 GB, free: 85.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008628/0.5978, allocations: 2.426 MB / 0.5229 GB, free: 82.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00029/0.5981, allocations: 0.496 MB / 0.5234 GB, free: 82.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.5982, allocations: 104 kB / 0.5235 GB, free: 81.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001977/0.5984, allocations: 0.5294 MB / 0.524 GB, free: 81.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001644/0.6001, allocations: 1.584 MB / 0.5255 GB, free: 79.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002708/0.6028, allocations: 5.144 MB / 0.5306 GB, free: 72.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00256/0.6054, allocations: 2.812 MB / 0.5333 GB, free: 70.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.598e-05/0.6054, allocations: 36 kB / 0.5333 GB, free: 70.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.006613/0.612, allocations: 6.399 MB / 0.5396 GB, free: 63.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.777e-05/0.6121, allocations: 60 kB / 0.5396 GB, free: 63.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.241e-05/0.6122, allocations: 128.9 kB / 0.5398 GB, free: 63.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001162/0.6123, allocations: 184 kB / 0.5399 GB, free: 63.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003925/0.6162, allocations: 1.455 MB / 0.5414 GB, free: 61.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001132/0.6163, allocations: 251 kB / 0.5416 GB, free: 61.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002815/0.6192, allocations: 0.7498 MB / 0.5423 GB, free: 60.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002712/0.6195, allocations: 341.4 kB / 0.5427 GB, free: 60.56 MB / 378.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.001525/0.621, allocations: 1.576 MB / 0.5442 GB, free: 58.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002723/0.6213, allocations: 248.8 kB / 0.5444 GB, free: 58.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009259/0.6222, allocations: 0.8368 MB / 0.5453 GB, free: 57.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.958e-05/0.6222, allocations: 12 kB / 0.5453 GB, free: 57.87 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.6222, allocations: 7.984 kB / 0.5453 GB, free: 57.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.6223, allocations: 5.062 kB / 0.5453 GB, free: 57.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003975/0.6262, allocations: 3.399 MB / 0.5486 GB, free: 54.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.6263, allocations: 0 / 0.5486 GB, free: 54.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002031/0.6283, allocations: 407.5 kB / 0.549 GB, free: 54.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.225e-06/0.6283, allocations: 4 kB / 0.549 GB, free: 54.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.93e-05/0.6284, allocations: 39.97 kB / 0.549 GB, free: 53.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.6284, allocations: 7.984 kB / 0.549 GB, free: 53.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.6284, allocations: 1.938 kB / 0.549 GB, free: 53.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002214/0.6306, allocations: 2.771 MB / 0.5517 GB, free: 51.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002993/0.6309, allocations: 309.5 kB / 0.552 GB, free: 50.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002137/0.6312, allocations: 30.72 kB / 0.5521 GB, free: 50.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007959/0.632, allocations: 47.89 kB / 0.5521 GB, free: 50.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.087e-05/0.632, allocations: 67.81 kB / 0.5522 GB, free: 50.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.147e-05/0.6321, allocations: 31.98 kB / 0.5522 GB, free: 50.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001667/0.6338, allocations: 1.825 MB / 0.554 GB, free: 48.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6338, allocations: 0 / 0.554 GB, free: 48.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002994/0.6368, allocations: 0.8317 MB / 0.5548 GB, free: 48.03 MB / 378.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.0002922/0.6371, allocations: 161.5 kB / 0.555 GB, free: 47.87 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003856/0.641, allocations: 3.584 MB / 0.5585 GB, free: 44.31 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.641, allocations: 0 / 0.5585 GB, free: 44.31 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006346/0.6416, allocations: 0.7141 MB / 0.5592 GB, free: 43.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001276/0.6429, allocations: 253.5 kB / 0.5594 GB, free: 43.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008454/0.6514, allocations: 8.824 MB / 0.568 GB, free: 34.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00156/0.6529, allocations: 2.404 MB / 0.5704 GB, free: 32.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005147/0.6535, allocations: 231.4 kB / 0.5706 GB, free: 31.82 MB / 378.7 MB Notification: Performance of SimCode: time 9.51e-07/0.6535, allocations: 0 / 0.5706 GB, free: 31.82 MB / 378.7 MB Notification: Performance of Templates: time 0.04883/0.7023, allocations: 40.09 MB / 0.6097 GB, free: 7.773 MB / 394.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/jenkins/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