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.001644/0.001644, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.001876/0.001876, allocations: 183 kB / 18.67 MB, free: 4.406 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.404/1.404, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001249/0.001249, allocations: 51.94 kB / 328.5 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1147, allocations: 46.62 MB / 375.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.2379/0.3526, allocations: 7.956 MB / 383.1 MB, free: 9.082 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005223/0.3578, allocations: 2.558 MB / 385.7 MB, free: 7.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007387/0.3586, allocations: 39.66 kB / 385.7 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002445/0.3611, allocations: 1.427 MB / 387.1 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002031/0.3631, allocations: 0.9814 MB / 388.1 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006077/0.3638, allocations: 257.2 kB / 388.4 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002784/0.3665, allocations: 2.191 MB / 390.6 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001892/0.3685, allocations: 1.56 MB / 392.1 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00128/0.3697, allocations: 0.8336 MB / 392.9 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001627/0.3714, allocations: 1.183 MB / 394.1 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003773/0.3718, allocations: 159.7 kB / 394.3 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001598/0.3734, allocations: 0.6539 MB / 394.9 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001423/0.3748, allocations: 1.165 MB / 396.1 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001379/0.3762, allocations: 1.376 MB / 397.5 MB, free: 2.879 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005374/0.3816, allocations: 4.327 MB / 401.8 MB, free: 444 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3816, allocations: 0 / 401.8 MB, free: 444 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.3816, allocations: 1.281 kB / 401.8 MB, free: 444 kB / 318.1 MB Notification: Performance of Transformations before backend: time 9.347e-05/0.3817, allocations: 0 / 401.8 MB, free: 444 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.005669/0.3874, allocations: 3.035 MB / 404.8 MB, free: 14.17 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.3875, allocations: 10.69 kB / 404.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007264/0.3947, allocations: 1.8 MB / 406.7 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002638/0.3974, allocations: 1.161 MB / 407.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001252/0.3975, allocations: 155 kB / 408 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004259/0.398, allocations: 205.3 kB / 408.2 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01946/0.4174, allocations: 8.594 MB / 416.8 MB, free: 5.168 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001041/0.4176, allocations: 47.62 kB / 416.8 MB, free: 5.121 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003766/0.418, allocations: 111.9 kB / 416.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003043/0.421, allocations: 1.663 MB / 418.6 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01783/0.4389, allocations: 7.175 MB / 425.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03741/0.4763, allocations: 30.14 MB / 455.9 MB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02185/0.4982, allocations: 5.046 MB / 460.9 MB, free: 7.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001735/0.5, allocations: 1.239 MB / 462.2 MB, free: 6.668 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005855/0.5059, allocations: 3.762 MB / 465.9 MB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.745e-05/0.5059, allocations: 46.89 kB / 466 MB, free: 2.703 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 4.899e-06/0.5059, allocations: 0 / 466 MB, free: 2.703 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04474/0.5507, allocations: 9.282 MB / 475.3 MB, free: 9.336 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.5508, allocations: 191.9 kB / 475.5 MB, free: 9.105 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005135/0.556, allocations: 3.052 MB / 478.5 MB, free: 6.035 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001971/0.5562, allocations: 41.7 kB / 478.6 MB, free: 5.988 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001923/0.5581, allocations: 2.52 MB / 481.1 MB, free: 3.441 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007787/0.5589, allocations: 0.5197 MB / 481.6 MB, free: 2.918 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001815/0.5608, allocations: 1.099 MB / 482.7 MB, free: 1.809 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.5609, allocations: 309.1 kB / 483 MB, free: 1.504 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002507/0.5634, allocations: 1.6 MB / 484.6 MB, free: 15.89 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006047/0.5695, allocations: 5.165 MB / 489.8 MB, free: 8.926 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008315/0.5778, allocations: 7.335 MB / 497.1 MB, free: 15.8 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001072/0.5779, allocations: 36 kB / 497.1 MB, free: 15.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01132/0.5893, allocations: 6.448 MB / 0.4918 GB, free: 9.316 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.5894, allocations: 60 kB / 0.4918 GB, free: 9.258 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001679/0.5896, allocations: 128.4 kB / 0.492 GB, free: 9.133 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000176/0.5898, allocations: 164 kB / 0.4921 GB, free: 8.973 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004842/0.5946, allocations: 1.454 MB / 0.4935 GB, free: 7.516 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002291/0.5949, allocations: 255 kB / 0.4938 GB, free: 7.266 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004004/0.5989, allocations: 0.7716 MB / 0.4945 GB, free: 6.488 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000615/0.5995, allocations: 340.1 kB / 0.4949 GB, free: 6.156 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.00276/0.6023, allocations: 1.582 MB / 0.4964 GB, free: 4.566 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005888/0.6029, allocations: 266.2 kB / 0.4967 GB, free: 4.305 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001401/0.6043, allocations: 0.8275 MB / 0.4975 GB, free: 3.469 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-05/0.6043, allocations: 16 kB / 0.4975 GB, free: 3.453 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.6043, allocations: 3.938 kB / 0.4975 GB, free: 3.449 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/0.6044, allocations: 11.98 kB / 0.4975 GB, free: 3.438 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006306/0.6107, allocations: 3.38 MB / 0.5008 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.137e-05/0.6107, allocations: 4 kB / 0.5008 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002279/0.613, allocations: 415.4 kB / 0.5012 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.899e-05/0.613, allocations: 4 kB / 0.5012 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/0.6131, allocations: 43.91 kB / 0.5012 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.075e-06/0.6132, allocations: 4 kB / 0.5012 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.6132, allocations: 0 / 0.5012 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003452/0.6166, allocations: 2.798 MB / 0.504 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006822/0.6173, allocations: 319 kB / 0.5043 GB, free: 12.38 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000439/0.6178, allocations: 27.98 kB / 0.5043 GB, free: 12.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/0.6189, allocations: 47.95 kB / 0.5043 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.619, allocations: 51.92 kB / 0.5044 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.649e-05/0.6191, allocations: 35.98 kB / 0.5044 GB, free: 12.22 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002989/0.6221, allocations: 1.841 MB / 0.5062 GB, free: 10.38 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6221, allocations: 0 / 0.5062 GB, free: 10.38 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004458/0.6266, allocations: 0.8305 MB / 0.507 GB, free: 9.543 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.0004328/0.627, allocations: 175.5 kB / 0.5072 GB, free: 9.363 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005747/0.6328, allocations: 3.606 MB / 0.5107 GB, free: 5.785 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.6328, allocations: 0 / 0.5107 GB, free: 5.785 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009593/0.6338, allocations: 0.7222 MB / 0.5114 GB, free: 5.062 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001949/0.6357, allocations: 263 kB / 0.5117 GB, free: 4.809 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/0.6489, allocations: 7.16 MB / 0.5187 GB, free: 13.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003086/0.6521, allocations: 2.391 MB / 0.521 GB, free: 11.18 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003826/0.6559, allocations: 1.637 MB / 0.5226 GB, free: 9.531 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005746/0.6565, allocations: 191.4 kB / 0.5228 GB, free: 9.344 MB / 462.1 MB Notification: Performance of SimCode: time 1.002e-06/0.6565, allocations: 0 / 0.5228 GB, free: 9.344 MB / 462.1 MB Notification: Performance of Templates: time 0.04197/0.6985, allocations: 18.8 MB / 0.5412 GB, free: 6.512 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