Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00136/0.00136, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001378/0.001378, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.458/1.458, allocations: 227.7 MB / 247.7 MB, free: 10.31 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 64.3 kB / 307.9 MB, free: 488 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09469/0.09666, allocations: 50.54 MB / 358.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009989/0.1067, allocations: 7.936 MB / 366.4 MB, free: 5.938 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005114/0.1118, allocations: 2.571 MB / 368.9 MB, free: 3.359 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006857/0.1125, allocations: 35.88 kB / 369 MB, free: 3.324 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002844/0.1154, allocations: 1.436 MB / 370.4 MB, free: 1.883 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002147/0.1176, allocations: 0.9723 MB / 371.4 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006223/0.1182, allocations: 279.3 kB / 371.7 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1484/0.2667, allocations: 2.145 MB / 373.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0021/0.2688, allocations: 1.543 MB / 375.3 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001315/0.2701, allocations: 0.8288 MB / 376.2 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001454/0.2716, allocations: 1.182 MB / 377.4 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003917/0.272, allocations: 159.1 kB / 377.5 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001323/0.2734, allocations: 0.6674 MB / 378.2 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001071/0.2744, allocations: 1.146 MB / 379.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001413/0.2759, allocations: 1.364 MB / 380.7 MB, free: 8.402 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004555/0.2804, allocations: 4.074 MB / 384.8 MB, free: 7.094 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.2805, allocations: 1.125 kB / 384.8 MB, free: 7.094 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2805, allocations: 0 / 384.8 MB, free: 7.094 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001041/0.2806, allocations: 0 / 384.8 MB, free: 7.094 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.004855/0.2854, allocations: 2.937 MB / 387.7 MB, free: 5.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.2855, allocations: 10.12 kB / 387.7 MB, free: 5.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006633/0.2921, allocations: 1.776 MB / 389.5 MB, free: 4.801 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002109/0.2943, allocations: 1.151 MB / 390.6 MB, free: 4.094 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001064/0.2944, allocations: 153.3 kB / 390.8 MB, free: 4.051 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003998/0.2948, allocations: 208.9 kB / 391 MB, free: 4.004 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01714/0.3119, allocations: 8.611 MB / 399.6 MB, free: 14.99 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.108e-05/0.3121, allocations: 38.94 kB / 399.6 MB, free: 14.99 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003072/0.3124, allocations: 103 kB / 399.7 MB, free: 14.95 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003162/0.3155, allocations: 1.673 MB / 401.4 MB, free: 13.45 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01939/0.335, allocations: 7.178 MB / 408.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04079/0.3758, allocations: 30.18 MB / 438.8 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02381/0.3996, allocations: 5.056 MB / 443.8 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001992/0.4017, allocations: 1.246 MB / 445.1 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006557/0.4082, allocations: 3.83 MB / 448.9 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.034e-05/0.4083, allocations: 54.81 kB / 449 MB, free: 13.08 MB / 366.1 MB Notification: Performance of pre-optimization done (n=111): time 4.238e-06/0.4083, allocations: 4 kB / 449 MB, free: 13.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.04796/0.4563, allocations: 9.272 MB / 458.2 MB, free: 3.715 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001323/0.4565, allocations: 199.9 kB / 458.4 MB, free: 3.477 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005678/0.4621, allocations: 3.027 MB / 461.5 MB, free: 440 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001912/0.4624, allocations: 42.36 kB / 461.5 MB, free: 392 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002238/0.4646, allocations: 2.423 MB / 463.9 MB, free: 13.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007379/0.4654, allocations: 0.4889 MB / 464.4 MB, free: 13.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001867/0.4672, allocations: 1.091 MB / 465.5 MB, free: 12.38 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.4674, allocations: 305.1 kB / 465.8 MB, free: 12.08 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00271/0.4701, allocations: 1.607 MB / 467.4 MB, free: 10.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006013/0.4761, allocations: 5.175 MB / 472.6 MB, free: 3.496 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009648/0.4858, allocations: 7.342 MB / 479.9 MB, free: 10.39 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001257/0.486, allocations: 36 kB / 480 MB, free: 10.35 MB / 398.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01293/0.4989, allocations: 6.444 MB / 486.4 MB, free: 3.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001151/0.499, allocations: 60 kB / 486.5 MB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002401/0.4993, allocations: 128 kB / 486.6 MB, free: 3.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002004/0.4995, allocations: 164 kB / 486.7 MB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005359/0.5049, allocations: 1.454 MB / 488.2 MB, free: 2.109 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002518/0.5051, allocations: 255 kB / 488.4 MB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004106/0.5093, allocations: 0.754 MB / 489.2 MB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008096/0.5101, allocations: 344 kB / 489.5 MB, free: 0.7617 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.003309/0.5134, allocations: 1.571 MB / 491.1 MB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006541/0.5141, allocations: 248.7 kB / 491.4 MB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008132/0.5149, allocations: 315.3 kB / 491.7 MB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-05/0.5149, allocations: 15.12 kB / 491.7 MB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.515, allocations: 4 kB / 491.7 MB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.55e-05/0.515, allocations: 11.92 kB / 491.7 MB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007766/0.5228, allocations: 3.388 MB / 495.1 MB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.138e-05/0.5228, allocations: 0 / 495.1 MB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002394/0.5252, allocations: 415.4 kB / 495.5 MB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.937e-05/0.5252, allocations: 8.312 kB / 495.5 MB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001453/0.5254, allocations: 43.97 kB / 495.5 MB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.045e-05/0.5254, allocations: 4 kB / 495.5 MB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.5254, allocations: 0 / 495.5 MB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004041/0.5295, allocations: 2.796 MB / 498.3 MB, free: 7.891 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007176/0.5302, allocations: 305.6 kB / 498.6 MB, free: 7.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004837/0.5307, allocations: 34.58 kB / 498.7 MB, free: 7.539 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001157/0.5319, allocations: 43.95 kB / 498.7 MB, free: 7.496 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.532, allocations: 55.91 kB / 498.8 MB, free: 7.441 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.417e-05/0.5321, allocations: 35.98 kB / 498.8 MB, free: 7.406 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003862/0.536, allocations: 1.836 MB / 0.4889 GB, free: 5.566 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.536, allocations: 4 kB / 0.4889 GB, free: 5.562 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00511/0.5412, allocations: 0.8182 MB / 0.4897 GB, free: 4.742 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.0005425/0.5417, allocations: 165.9 kB / 0.4899 GB, free: 4.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007101/0.5488, allocations: 3.804 MB / 0.4936 GB, free: 0.793 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.5489, allocations: 0 / 0.4936 GB, free: 0.793 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001175/0.5501, allocations: 0.7218 MB / 0.4943 GB, free: 76 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002522/0.5526, allocations: 272.5 kB / 0.4945 GB, free: 15.82 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01637/0.569, allocations: 7.472 MB / 0.5018 GB, free: 8.305 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004168/0.5732, allocations: 2.383 MB / 0.5042 GB, free: 5.895 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001001/0.5743, allocations: 239.4 kB / 0.5044 GB, free: 5.664 MB / 430.1 MB Notification: Performance of SimCode: time 1.603e-06/0.5743, allocations: 0 / 0.5044 GB, free: 5.664 MB / 430.1 MB Notification: Performance of Templates: time 0.2244/0.7987, allocations: 40.46 MB / 0.5439 GB, free: 135.9 MB / 446.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches