Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001561/0.001561, allocations: 110.4 kB / 17.73 MB, free: 5.363 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.001891/0.001891, allocations: 187.1 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.409/1.409, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 55.91 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09529/0.09654, allocations: 46.61 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.1973/0.2939, allocations: 7.963 MB / 383.1 MB, free: 9.074 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004943/0.2988, allocations: 2.555 MB / 385.7 MB, free: 7.984 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007864/0.2997, allocations: 34.81 kB / 385.7 MB, free: 7.98 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002676/0.3024, allocations: 1.432 MB / 387.1 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002417/0.3048, allocations: 0.9821 MB / 388.1 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008832/0.3057, allocations: 256.8 kB / 388.4 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003933/0.3097, allocations: 2.192 MB / 390.6 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002202/0.3119, allocations: 1.558 MB / 392.1 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001568/0.3135, allocations: 0.841 MB / 393 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0019/0.3154, allocations: 1.185 MB / 394.1 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004188/0.3158, allocations: 159.5 kB / 394.3 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001573/0.3174, allocations: 0.6536 MB / 394.9 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001246/0.3187, allocations: 1.165 MB / 396.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00119/0.3198, allocations: 1.377 MB / 397.5 MB, free: 2.891 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004765/0.3246, allocations: 4.3 MB / 401.8 MB, free: 484 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3247, allocations: 1.094 kB / 401.8 MB, free: 484 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3247, allocations: 0 / 401.8 MB, free: 484 kB / 318.1 MB Notification: Performance of Transformations before backend: time 9.717e-05/0.3248, allocations: 0 / 401.8 MB, free: 484 kB / 318.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.005679/0.3305, allocations: 2.964 MB / 404.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.3305, allocations: 13.19 kB / 404.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007227/0.3377, allocations: 1.775 MB / 406.5 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002612/0.3404, allocations: 1.153 MB / 407.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001503/0.3405, allocations: 154 kB / 407.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004574/0.341, allocations: 202.2 kB / 408 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02238/0.3634, allocations: 8.602 MB / 416.6 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001538/0.3636, allocations: 43.59 kB / 416.7 MB, free: 5.266 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000772/0.3644, allocations: 100.9 kB / 416.8 MB, free: 5.168 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003128/0.3675, allocations: 1.671 MB / 418.5 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01927/0.3868, allocations: 7.169 MB / 425.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04046/0.4273, allocations: 30.1 MB / 455.7 MB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02317/0.4505, allocations: 5.037 MB / 460.8 MB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001743/0.4523, allocations: 1.246 MB / 462 MB, free: 6.855 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005883/0.4582, allocations: 3.746 MB / 465.8 MB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.221e-05/0.4583, allocations: 54.88 kB / 465.8 MB, free: 2.898 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 5.31e-06/0.4583, allocations: 0 / 465.8 MB, free: 2.898 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04833/0.5066, allocations: 9.257 MB / 475.1 MB, free: 9.551 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.5068, allocations: 196.9 kB / 475.3 MB, free: 9.316 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006027/0.5128, allocations: 3.035 MB / 478.3 MB, free: 6.262 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002523/0.5131, allocations: 41.7 kB / 478.3 MB, free: 6.215 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00204/0.5152, allocations: 2.422 MB / 480.8 MB, free: 3.754 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008246/0.516, allocations: 0.4941 MB / 481.3 MB, free: 3.254 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001857/0.5179, allocations: 1.087 MB / 482.3 MB, free: 2.156 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.77e-05/0.518, allocations: 301.1 kB / 482.6 MB, free: 1.859 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002479/0.5205, allocations: 1.607 MB / 484.2 MB, free: 252 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00534/0.5258, allocations: 5.165 MB / 489.4 MB, free: 9.273 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0085/0.5343, allocations: 7.339 MB / 496.7 MB, free: 152 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001472/0.5345, allocations: 36 kB / 496.8 MB, free: 116 kB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0125/0.547, allocations: 6.435 MB / 0.4914 GB, free: 9.672 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001255/0.5472, allocations: 64.03 kB / 0.4915 GB, free: 9.609 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000214/0.5474, allocations: 124 kB / 0.4916 GB, free: 9.488 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002042/0.5476, allocations: 172 kB / 0.4918 GB, free: 9.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004987/0.5526, allocations: 1.45 MB / 0.4932 GB, free: 7.867 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002407/0.5529, allocations: 247 kB / 0.4934 GB, free: 7.625 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004193/0.5571, allocations: 0.7498 MB / 0.4941 GB, free: 6.867 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006979/0.5578, allocations: 348 kB / 0.4945 GB, free: 6.527 MB / 430.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.003104/0.5609, allocations: 1.583 MB / 0.496 GB, free: 4.938 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006025/0.5615, allocations: 244.8 kB / 0.4963 GB, free: 4.695 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001588/0.5631, allocations: 0.8291 MB / 0.4971 GB, free: 3.855 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.369e-05/0.5632, allocations: 12 kB / 0.4971 GB, free: 3.844 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/0.5632, allocations: 11.88 kB / 0.4971 GB, free: 3.832 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-05/0.5632, allocations: 3.984 kB / 0.4971 GB, free: 3.828 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006747/0.57, allocations: 3.392 MB / 0.5004 GB, free: 384 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/0.57, allocations: 0 / 0.5004 GB, free: 384 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002354/0.5724, allocations: 415.4 kB / 0.5008 GB, free: 15.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.64e-05/0.5724, allocations: 4 kB / 0.5008 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001243/0.5725, allocations: 31.97 kB / 0.5008 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.676e-05/0.5726, allocations: 7.938 kB / 0.5008 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.5726, allocations: 4 kB / 0.5008 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003897/0.5765, allocations: 2.785 MB / 0.5036 GB, free: 13.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/0.5776, allocations: 309.5 kB / 0.5039 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007968/0.5784, allocations: 27.98 kB / 0.5039 GB, free: 12.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001394/0.5798, allocations: 39.95 kB / 0.5039 GB, free: 12.72 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.5799, allocations: 55.92 kB / 0.504 GB, free: 12.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-05/0.58, allocations: 35.98 kB / 0.504 GB, free: 12.63 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003942/0.584, allocations: 1.841 MB / 0.5058 GB, free: 10.79 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.584, allocations: 0 / 0.5058 GB, free: 10.79 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005014/0.589, allocations: 0.8299 MB / 0.5066 GB, free: 9.953 MB / 446.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.0005045/0.5895, allocations: 164.4 kB / 0.5068 GB, free: 9.785 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006171/0.5957, allocations: 3.613 MB / 0.5103 GB, free: 6.191 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.5957, allocations: 0 / 0.5103 GB, free: 6.191 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009509/0.5967, allocations: 0.7156 MB / 0.511 GB, free: 5.477 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002343/0.599, allocations: 272.8 kB / 0.5113 GB, free: 5.215 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01624/0.6153, allocations: 7.049 MB / 0.5182 GB, free: 14.12 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004667/0.6201, allocations: 2.391 MB / 0.5205 GB, free: 11.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004562/0.6246, allocations: 1.633 MB / 0.5221 GB, free: 10.06 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007222/0.6254, allocations: 187.4 kB / 0.5223 GB, free: 9.875 MB / 462.1 MB Notification: Performance of SimCode: time 8.42e-07/0.6254, allocations: 0 / 0.5223 GB, free: 9.875 MB / 462.1 MB Notification: Performance of Templates: time 0.04361/0.669, allocations: 18.8 MB / 0.5406 GB, free: 7.043 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches