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.0007332/0.0007333, allocations: 90.17 kB / 16.65 MB, free: 6.535 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.0008559/0.000856, allocations: 178.5 kB / 17.56 MB, free: 6.18 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.374/1.374, allocations: 223.3 MB / 241.6 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003149/0.0003151, allocations: 8.141 kB / 301.4 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09191/0.09225, allocations: 50.41 MB / 351.8 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.2035/0.2957, allocations: 28.07 MB / 379.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01322/0.309, allocations: 5.909 MB / 385.8 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00457/0.3136, allocations: 114.1 kB / 385.9 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009544/0.3146, allocations: 297.5 kB / 386.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002824/0.3174, allocations: 0.9486 MB / 387.2 MB, free: 7.395 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008807/0.3183, allocations: 232.8 kB / 387.4 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004692/0.323, allocations: 3.298 MB / 390.7 MB, free: 6.406 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003247/0.3263, allocations: 2.029 MB / 392.7 MB, free: 5.574 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001224/0.3275, allocations: 0.6624 MB / 393.4 MB, free: 5.258 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001444/0.329, allocations: 1.218 MB / 394.6 MB, free: 4.676 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002284/0.3292, allocations: 86.53 kB / 394.7 MB, free: 4.676 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0012/0.3304, allocations: 0.6314 MB / 395.3 MB, free: 4.383 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008612/0.3313, allocations: 1.118 MB / 396.4 MB, free: 3.797 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009489/0.3323, allocations: 1.32 MB / 397.8 MB, free: 2.805 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003754/0.336, allocations: 4.007 MB / 401.8 MB, free: 216 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3361, allocations: 0 / 401.8 MB, free: 216 kB / 302.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3361, allocations: 0 / 401.8 MB, free: 216 kB / 302.1 MB Notification: Performance of Transformations before backend: time 5.843e-05/0.3361, allocations: 0 / 401.8 MB, free: 216 kB / 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.003743/0.3399, allocations: 2.404 MB / 404.2 MB, free: 14.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.3399, allocations: 10.06 kB / 404.2 MB, free: 14.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006885/0.3468, allocations: 1.825 MB / 406 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002011/0.3489, allocations: 1.152 MB / 407.1 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001161/0.349, allocations: 160.5 kB / 407.3 MB, free: 11.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004621/0.3495, allocations: 208.5 kB / 407.5 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0204/0.3699, allocations: 8.613 MB / 416.1 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001713/0.3701, allocations: 43.64 kB / 416.2 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007485/0.3708, allocations: 102.5 kB / 416.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003365/0.3742, allocations: 1.661 MB / 417.9 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02038/0.3946, allocations: 7.201 MB / 425.1 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03662/0.4313, allocations: 30.19 MB / 455.3 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02447/0.4558, allocations: 5.103 MB / 460.4 MB, free: 5.332 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001959/0.4578, allocations: 1.252 MB / 461.7 MB, free: 4.062 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006156/0.464, allocations: 3.749 MB / 465.4 MB, free: 180 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.262e-05/0.4641, allocations: 46.83 kB / 465.5 MB, free: 124 kB / 366.1 MB Notification: Performance of pre-optimization done (n=111): time 3.687e-06/0.4641, allocations: 0 / 465.5 MB, free: 124 kB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.04873/0.5128, allocations: 9.379 MB / 474.8 MB, free: 6.656 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.5129, allocations: 195.9 kB / 475 MB, free: 6.422 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005325/0.5183, allocations: 3.035 MB / 478.1 MB, free: 3.367 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000212/0.5185, allocations: 41.89 kB / 478.1 MB, free: 3.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001941/0.5205, allocations: 2.424 MB / 480.5 MB, free: 0.9023 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005771/0.5211, allocations: 0.5021 MB / 481 MB, free: 412 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006867/0.5218, allocations: 464.3 kB / 481.5 MB, free: 15.96 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.5219, allocations: 309.1 kB / 481.8 MB, free: 15.65 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002669/0.5246, allocations: 1.596 MB / 483.4 MB, free: 14.05 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00497/0.5295, allocations: 5.173 MB / 488.6 MB, free: 7.078 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00771/0.5373, allocations: 7.329 MB / 495.9 MB, free: 13.96 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001075/0.5374, allocations: 36 kB / 495.9 MB, free: 13.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01048/0.5479, allocations: 6.436 MB / 0.4906 GB, free: 7.492 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001137/0.548, allocations: 60.38 kB / 0.4906 GB, free: 7.434 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001753/0.5482, allocations: 128 kB / 0.4908 GB, free: 7.309 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001826/0.5484, allocations: 164 kB / 0.4909 GB, free: 7.148 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004914/0.5533, allocations: 1.458 MB / 0.4923 GB, free: 5.688 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002012/0.5535, allocations: 255 kB / 0.4926 GB, free: 5.438 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003652/0.5572, allocations: 0.7502 MB / 0.4933 GB, free: 4.684 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005864/0.5578, allocations: 344 kB / 0.4937 GB, free: 4.348 MB / 414.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.002766/0.5606, allocations: 1.575 MB / 0.4952 GB, free: 2.758 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004597/0.561, allocations: 248.8 kB / 0.4954 GB, free: 2.512 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00152/0.5626, allocations: 0.8374 MB / 0.4962 GB, free: 1.668 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.777e-05/0.5626, allocations: 12 kB / 0.4963 GB, free: 1.656 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/0.5626, allocations: 0 / 0.4963 GB, free: 1.656 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.718e-05/0.5627, allocations: 11.92 kB / 0.4963 GB, free: 1.645 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006301/0.569, allocations: 3.382 MB / 0.4996 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/0.569, allocations: 0 / 0.4996 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002363/0.5714, allocations: 415.5 kB / 0.5 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.576e-05/0.5714, allocations: 7.938 kB / 0.5 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.5715, allocations: 31.97 kB / 0.5 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.226e-06/0.5715, allocations: 4 kB / 0.5 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/0.5715, allocations: 4 kB / 0.5 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003296/0.5748, allocations: 2.778 MB / 0.5027 GB, free: 10.97 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005779/0.5754, allocations: 313.5 kB / 0.503 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003818/0.5758, allocations: 31.98 kB / 0.5031 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.5768, allocations: 35.95 kB / 0.5031 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.577, allocations: 63.86 kB / 0.5032 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.041e-05/0.5771, allocations: 31.98 kB / 0.5032 GB, free: 10.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003076/0.5802, allocations: 1.845 MB / 0.505 GB, free: 8.637 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5802, allocations: 0 / 0.505 GB, free: 8.637 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004643/0.5848, allocations: 0.8399 MB / 0.5058 GB, free: 7.797 MB / 430.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.0003813/0.5852, allocations: 177 kB / 0.506 GB, free: 7.621 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005707/0.5909, allocations: 3.593 MB / 0.5095 GB, free: 4.059 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.591, allocations: 192 / 0.5095 GB, free: 4.059 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009319/0.5919, allocations: 0.718 MB / 0.5102 GB, free: 3.34 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002163/0.5941, allocations: 265.3 kB / 0.5104 GB, free: 3.082 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01313/0.6072, allocations: 8.788 MB / 0.519 GB, free: 10.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00284/0.6101, allocations: 2.387 MB / 0.5213 GB, free: 7.816 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004183/0.6143, allocations: 1.645 MB / 0.523 GB, free: 6.164 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005564/0.6148, allocations: 183.4 kB / 0.5231 GB, free: 5.984 MB / 446.1 MB Notification: Performance of SimCode: time 9.82e-07/0.6149, allocations: 4 kB / 0.5231 GB, free: 5.98 MB / 446.1 MB Notification: Performance of Templates: time 0.2171/0.832, allocations: 20.5 MB / 0.5432 GB, free: 145.8 MB / 446.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins/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