Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001504/0.001504, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001897/0.001897, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 60.78 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08387/0.085, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009632/0.09469, allocations: 7.923 MB / 366.8 MB, free: 5.363 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004615/0.09933, allocations: 2.571 MB / 369.4 MB, free: 2.785 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005983/0.09996, allocations: 39.88 kB / 369.5 MB, free: 2.746 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002619/0.1026, allocations: 1.448 MB / 370.9 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001859/0.1045, allocations: 0.9723 MB / 371.9 MB, free: 324 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005911/0.1051, allocations: 275.4 kB / 372.1 MB, free: 48 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1566/0.2617, allocations: 2.148 MB / 374.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001633/0.2634, allocations: 1.545 MB / 375.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007797/0.2642, allocations: 0.8296 MB / 376.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0013/0.2655, allocations: 1.184 MB / 377.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002875/0.2658, allocations: 158.5 kB / 378 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001231/0.267, allocations: 0.6611 MB / 378.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001075/0.2681, allocations: 1.145 MB / 379.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001013/0.2691, allocations: 1.369 MB / 381.2 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003658/0.2728, allocations: 4.27 MB / 385.4 MB, free: 7.762 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2728, allocations: 0 / 385.4 MB, free: 7.762 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.2728, allocations: 0 / 385.4 MB, free: 7.762 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.159e-05/0.2729, allocations: 1.25 kB / 385.4 MB, free: 7.762 MB / 302.1 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.003689/0.2766, allocations: 2.93 MB / 388.4 MB, free: 6.012 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.2766, allocations: 12.92 kB / 388.4 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006084/0.2827, allocations: 1.766 MB / 390.2 MB, free: 5.281 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002081/0.2848, allocations: 1.166 MB / 391.3 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.287e-05/0.2849, allocations: 153.6 kB / 391.5 MB, free: 4.523 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003467/0.2853, allocations: 210.4 kB / 391.7 MB, free: 4.473 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0152/0.3005, allocations: 8.609 MB / 400.3 MB, free: 15.08 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.088e-05/0.3006, allocations: 46.7 kB / 400.3 MB, free: 15.05 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000252/0.3009, allocations: 95.89 kB / 400.4 MB, free: 14.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002737/0.3036, allocations: 1.666 MB / 402.1 MB, free: 13.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01647/0.3201, allocations: 7.189 MB / 409.3 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03132/0.3514, allocations: 30.09 MB / 439.4 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02183/0.3733, allocations: 5.062 MB / 444.4 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00161/0.3749, allocations: 1.248 MB / 445.7 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00578/0.3807, allocations: 3.834 MB / 449.5 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.3808, allocations: 42.83 kB / 449.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of pre-optimization done (n=111): time 4.358e-06/0.3808, allocations: 0 / 449.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.04472/0.4255, allocations: 9.286 MB / 458.8 MB, free: 3.453 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.545e-05/0.4256, allocations: 187.9 kB / 459 MB, free: 3.227 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003954/0.4296, allocations: 3.032 MB / 462.1 MB, free: 180 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001221/0.4297, allocations: 33.7 kB / 462.1 MB, free: 140 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001492/0.4312, allocations: 2.424 MB / 464.5 MB, free: 13.72 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004814/0.4317, allocations: 0.4923 MB / 465 MB, free: 13.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001275/0.433, allocations: 1.087 MB / 466.1 MB, free: 12.13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.266e-05/0.4331, allocations: 305.1 kB / 466.4 MB, free: 11.83 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002195/0.4353, allocations: 1.607 MB / 468 MB, free: 10.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004229/0.4396, allocations: 5.175 MB / 473.2 MB, free: 3.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006949/0.4465, allocations: 7.34 MB / 480.5 MB, free: 10.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.566e-05/0.4466, allocations: 36 kB / 480.5 MB, free: 10.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.008864/0.4555, allocations: 6.455 MB / 487 MB, free: 3.648 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.623e-05/0.4555, allocations: 60 kB / 487.1 MB, free: 3.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000106/0.4556, allocations: 124 kB / 487.2 MB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001367/0.4558, allocations: 168 kB / 487.3 MB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004589/0.4604, allocations: 1.458 MB / 488.8 MB, free: 1.844 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001672/0.4606, allocations: 247.6 kB / 489 MB, free: 1.602 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003092/0.4637, allocations: 0.7499 MB / 489.8 MB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003771/0.464, allocations: 344 kB / 490.1 MB, free: 0.5078 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002089/0.4661, allocations: 1.579 MB / 491.7 MB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003645/0.4665, allocations: 249.1 kB / 492 MB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004803/0.467, allocations: 319.2 kB / 492.3 MB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-05/0.467, allocations: 20 kB / 492.3 MB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.4671, allocations: 0 / 492.3 MB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/0.4671, allocations: 15.86 kB / 492.3 MB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005567/0.4726, allocations: 3.382 MB / 495.7 MB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.4727, allocations: 4 kB / 495.7 MB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002315/0.475, allocations: 407.5 kB / 496.1 MB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.646e-06/0.475, allocations: 15.94 kB / 496.1 MB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.408e-05/0.4751, allocations: 31.97 kB / 496.1 MB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.395e-06/0.4751, allocations: 7.984 kB / 496.1 MB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.4751, allocations: 4 kB / 496.1 MB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003086/0.4782, allocations: 2.789 MB / 498.9 MB, free: 7.637 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004409/0.4787, allocations: 305.5 kB / 499.2 MB, free: 7.316 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002406/0.4789, allocations: 34.19 kB / 499.3 MB, free: 7.285 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008848/0.4798, allocations: 43.95 kB / 499.3 MB, free: 7.242 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.4799, allocations: 51.86 kB / 499.4 MB, free: 7.191 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.747e-05/0.48, allocations: 35.98 kB / 499.4 MB, free: 7.156 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002241/0.4823, allocations: 1.84 MB / 0.4895 GB, free: 5.312 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4823, allocations: 0 / 0.4895 GB, free: 5.312 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003389/0.4857, allocations: 0.8164 MB / 0.4903 GB, free: 4.496 MB / 414.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003175/0.486, allocations: 170.3 kB / 0.4904 GB, free: 4.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004603/0.4906, allocations: 3.612 MB / 0.494 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.4906, allocations: 0 / 0.494 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008867/0.4915, allocations: 0.7235 MB / 0.4947 GB, free: 12 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001444/0.493, allocations: 265.5 kB / 0.4949 GB, free: 15.75 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009864/0.5029, allocations: 7.065 MB / 0.5018 GB, free: 8.652 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002315/0.5052, allocations: 2.39 MB / 0.5042 GB, free: 6.234 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003328/0.5085, allocations: 1.633 MB / 0.5058 GB, free: 4.594 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004302/0.509, allocations: 187.4 kB / 0.5059 GB, free: 4.414 MB / 430.1 MB Notification: Performance of SimCode: time 7.02e-07/0.509, allocations: 0 / 0.5059 GB, free: 4.414 MB / 430.1 MB Notification: Performance of Templates: time 0.03847/0.5475, allocations: 16.95 MB / 0.5225 GB, free: 3.676 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches