Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001651/0.001651, allocations: 113.7 kB / 17.74 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002253/0.002253, allocations: 189.6 kB / 18.67 MB, free: 4.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 47.94 kB / 352 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2762, allocations: 49.43 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.008979/0.2852, allocations: 7.968 MB / 409.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005605/0.2909, allocations: 2.52 MB / 411.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001083/0.292, allocations: 35.94 kB / 411.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002689/0.2947, allocations: 1.425 MB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002658/0.2974, allocations: 0.9839 MB / 414.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007737/0.2982, allocations: 271.3 kB / 414.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003156/0.3014, allocations: 2.188 MB / 416.8 MB, free: 9.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001725/0.3031, allocations: 1.549 MB / 418.3 MB, free: 7.816 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001111/0.3042, allocations: 0.8367 MB / 419.2 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001665/0.3059, allocations: 1.195 MB / 420.4 MB, free: 5.777 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003108/0.3062, allocations: 163.9 kB / 420.5 MB, free: 5.617 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001322/0.3076, allocations: 0.6631 MB / 421.2 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009893/0.3086, allocations: 1.169 MB / 422.4 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001238/0.3098, allocations: 1.37 MB / 423.7 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004491/0.3143, allocations: 4.308 MB / 428.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.3144, allocations: 0 / 428.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.389e-06/0.3144, allocations: 3.984 kB / 428.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001138/0.3145, allocations: 0 / 428.1 MB, free: 14.08 MB / 350.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.004966/0.3195, allocations: 2.957 MB / 431 MB, free: 11.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.3195, allocations: 8.031 kB / 431 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007037/0.3266, allocations: 1.779 MB / 432.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002203/0.3288, allocations: 1.161 MB / 434 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.3289, allocations: 159.8 kB / 434.1 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003743/0.3293, allocations: 203.9 kB / 434.3 MB, free: 7.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01808/0.3474, allocations: 8.596 MB / 442.9 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.452e-05/0.3475, allocations: 39.66 kB / 442.9 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002875/0.3478, allocations: 103.9 kB / 443.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002851/0.3507, allocations: 1.663 MB / 444.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01777/0.3685, allocations: 7.175 MB / 451.9 MB, free: 5.527 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03618/0.4047, allocations: 30.11 MB / 482 MB, free: 6.535 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02259/0.4273, allocations: 5.033 MB / 487 MB, free: 1.324 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001742/0.4291, allocations: 1.251 MB / 488.3 MB, free: 52 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005222/0.4344, allocations: 3.742 MB / 492 MB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.17e-05/0.4344, allocations: 54.81 kB / 492.1 MB, free: 12.1 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 3.676e-06/0.4345, allocations: 0 / 492.1 MB, free: 12.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.0461/0.4806, allocations: 9.256 MB / 0.4896 GB, free: 2.754 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.4807, allocations: 195.8 kB / 0.4898 GB, free: 2.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004018/0.4847, allocations: 3.035 MB / 0.4927 GB, free: 15.46 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000219/0.485, allocations: 41.7 kB / 0.4928 GB, free: 15.42 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00177/0.4867, allocations: 2.422 MB / 0.4951 GB, free: 12.96 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005029/0.4873, allocations: 0.4904 MB / 0.4956 GB, free: 12.46 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001183/0.4885, allocations: 1.095 MB / 0.4967 GB, free: 11.36 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.769e-05/0.4886, allocations: 305.1 kB / 0.497 GB, free: 11.05 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002139/0.4907, allocations: 1.599 MB / 0.4985 GB, free: 9.449 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004176/0.4949, allocations: 5.173 MB / 0.5036 GB, free: 2.473 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007256/0.5022, allocations: 7.332 MB / 0.5107 GB, free: 9.363 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.796e-05/0.5023, allocations: 36 kB / 0.5108 GB, free: 9.328 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01043/0.5127, allocations: 6.43 MB / 0.5171 GB, free: 2.891 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.14e-05/0.5128, allocations: 59.98 kB / 0.5171 GB, free: 2.832 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001338/0.513, allocations: 128 kB / 0.5172 GB, free: 2.707 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001564/0.5131, allocations: 168.4 kB / 0.5174 GB, free: 2.543 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004855/0.518, allocations: 1.454 MB / 0.5188 GB, free: 1.086 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001863/0.5182, allocations: 251 kB / 0.5191 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003587/0.5218, allocations: 0.7503 MB / 0.5198 GB, free: 84 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005687/0.5224, allocations: 347.9 kB / 0.5201 GB, free: 15.74 MB / 462.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.002031/0.5244, allocations: 1.575 MB / 0.5217 GB, free: 14.15 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004063/0.5249, allocations: 248.7 kB / 0.5219 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00123/0.5261, allocations: 0.833 MB / 0.5227 GB, free: 13.07 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-05/0.5261, allocations: 23.92 kB / 0.5227 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/0.5261, allocations: 4 kB / 0.5227 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.5262, allocations: 3.984 kB / 0.5227 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005296/0.5315, allocations: 3.38 MB / 0.526 GB, free: 9.594 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.5315, allocations: 0 / 0.526 GB, free: 9.594 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002364/0.5339, allocations: 407.5 kB / 0.5264 GB, free: 9.195 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.325e-05/0.5339, allocations: 8 kB / 0.5264 GB, free: 9.188 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.269e-05/0.534, allocations: 35.97 kB / 0.5265 GB, free: 9.152 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.883e-06/0.534, allocations: 4 kB / 0.5265 GB, free: 9.148 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.534, allocations: 4 kB / 0.5265 GB, free: 9.145 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003129/0.5372, allocations: 2.785 MB / 0.5292 GB, free: 6.328 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005732/0.5378, allocations: 301.7 kB / 0.5295 GB, free: 6.012 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002639/0.538, allocations: 35.97 kB / 0.5295 GB, free: 5.977 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009023/0.5389, allocations: 35.95 kB / 0.5296 GB, free: 5.941 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.5391, allocations: 59.86 kB / 0.5296 GB, free: 5.883 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.666e-05/0.5392, allocations: 31.98 kB / 0.5296 GB, free: 5.852 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002578/0.5417, allocations: 1.841 MB / 0.5314 GB, free: 4.008 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5418, allocations: 0 / 0.5314 GB, free: 4.008 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00393/0.5457, allocations: 0.83 MB / 0.5323 GB, free: 3.176 MB / 462.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.0003741/0.5461, allocations: 167.7 kB / 0.5324 GB, free: 3.004 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.192/0.7381, allocations: 3.618 MB / 0.5359 GB, free: 131.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/0.7381, allocations: 1.047 kB / 0.5359 GB, free: 131.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001214/0.7393, allocations: 0.7143 MB / 0.5366 GB, free: 131.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001826/0.7412, allocations: 266.6 kB / 0.5369 GB, free: 131.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009456/0.7506, allocations: 7.386 MB / 0.5441 GB, free: 128.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00168/0.7524, allocations: 2.39 MB / 0.5464 GB, free: 127.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006414/0.753, allocations: 231.2 kB / 0.5467 GB, free: 127.3 MB / 462.1 MB Notification: Performance of SimCode: time 7.81e-07/0.753, allocations: 0 / 0.5467 GB, free: 127.3 MB / 462.1 MB Notification: Performance of Templates: time 0.0462/0.7992, allocations: 41.16 MB / 0.5869 GB, free: 89.27 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches