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.0007908/0.0007908, allocations: 89.56 kB / 17.31 MB, free: 6.027 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.0008411/0.0008411, allocations: 178.7 kB / 18.21 MB, free: 5.406 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.136/1.136, allocations: 223.3 MB / 242.3 MB, free: 192 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002033/0.0002033, allocations: 7.938 kB / 302.1 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07105/0.07127, allocations: 50.42 MB / 352.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.1544/0.2257, allocations: 28.07 MB / 380.6 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009458/0.2352, allocations: 5.9 MB / 386.5 MB, free: 7.566 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003495/0.2387, allocations: 118.2 kB / 386.6 MB, free: 7.547 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000671/0.2394, allocations: 300 kB / 386.9 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001718/0.2411, allocations: 0.9396 MB / 387.8 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004863/0.2416, allocations: 237.2 kB / 388.1 MB, free: 7.023 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002586/0.2442, allocations: 3.298 MB / 391.4 MB, free: 6.141 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001898/0.2461, allocations: 2.031 MB / 393.4 MB, free: 5.355 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005658/0.2467, allocations: 0.667 MB / 394.1 MB, free: 5.035 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001019/0.2477, allocations: 1.214 MB / 395.3 MB, free: 4.457 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001363/0.2479, allocations: 86.09 kB / 395.4 MB, free: 4.457 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007874/0.2487, allocations: 0.6307 MB / 396 MB, free: 4.164 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006119/0.2493, allocations: 1.113 MB / 397.1 MB, free: 3.586 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000689/0.25, allocations: 1.327 MB / 398.4 MB, free: 2.586 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00173/0.2517, allocations: 3.248 MB / 401.7 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.2517, allocations: 0 / 401.7 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2517, allocations: 2.969 kB / 401.7 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.463e-05/0.2518, allocations: 0 / 401.7 MB, free: 0.5469 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.002541/0.2543, allocations: 2.407 MB / 404.1 MB, free: 14.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.844e-05/0.2543, allocations: 8.719 kB / 404.1 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005933/0.2603, allocations: 1.821 MB / 405.9 MB, free: 13.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001381/0.2617, allocations: 1.155 MB / 407.1 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.644e-05/0.2618, allocations: 162.7 kB / 407.2 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003175/0.2621, allocations: 206.1 kB / 407.4 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01452/0.2766, allocations: 8.619 MB / 416 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.547e-05/0.2767, allocations: 39.59 kB / 416.1 MB, free: 3.07 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002251/0.2769, allocations: 107 kB / 416.2 MB, free: 2.996 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002498/0.2794, allocations: 1.664 MB / 417.9 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0143/0.2937, allocations: 7.186 MB / 425 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02537/0.3191, allocations: 30.2 MB / 455.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02048/0.3396, allocations: 5.107 MB / 460.3 MB, free: 5.922 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001357/0.341, allocations: 1.24 MB / 461.6 MB, free: 4.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003953/0.345, allocations: 3.747 MB / 465.3 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.345, allocations: 46.83 kB / 465.4 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of pre-optimization done (n=111): time 2.605e-06/0.345, allocations: 0 / 465.4 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.04142/0.3864, allocations: 9.384 MB / 474.8 MB, free: 7.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.929e-05/0.3865, allocations: 199.9 kB / 475 MB, free: 7.012 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003001/0.3895, allocations: 3.031 MB / 478 MB, free: 3.961 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.903e-05/0.3896, allocations: 41.7 kB / 478 MB, free: 3.914 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001247/0.3909, allocations: 2.419 MB / 480.4 MB, free: 1.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003219/0.3912, allocations: 0.4957 MB / 480.9 MB, free: 1.008 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004233/0.3916, allocations: 465.8 kB / 481.4 MB, free: 0.5469 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.902e-05/0.3917, allocations: 305.1 kB / 481.7 MB, free: 252 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001865/0.3936, allocations: 1.607 MB / 483.3 MB, free: 14.63 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003764/0.3973, allocations: 5.169 MB / 488.5 MB, free: 7.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006272/0.4036, allocations: 7.322 MB / 495.8 MB, free: 14.55 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.153e-05/0.4037, allocations: 36 kB / 495.8 MB, free: 14.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.007851/0.4116, allocations: 6.446 MB / 0.4905 GB, free: 8.074 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.277e-05/0.4116, allocations: 63.98 kB / 0.4906 GB, free: 8.012 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.068e-05/0.4117, allocations: 132 kB / 0.4907 GB, free: 7.883 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001236/0.4119, allocations: 168 kB / 0.4908 GB, free: 7.719 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003916/0.4158, allocations: 1.45 MB / 0.4923 GB, free: 6.266 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001514/0.4159, allocations: 251 kB / 0.4925 GB, free: 6.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00244/0.4184, allocations: 0.7459 MB / 0.4932 GB, free: 5.266 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003105/0.4187, allocations: 340 kB / 0.4936 GB, free: 4.934 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.001524/0.4202, allocations: 1.583 MB / 0.4951 GB, free: 3.336 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002918/0.4205, allocations: 248.8 kB / 0.4953 GB, free: 3.09 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001107/0.4216, allocations: 0.8252 MB / 0.4961 GB, free: 2.258 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.91e-05/0.4217, allocations: 12 kB / 0.4962 GB, free: 2.246 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.4217, allocations: 4 kB / 0.4962 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.4217, allocations: 7.922 kB / 0.4962 GB, free: 2.234 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004207/0.4259, allocations: 3.394 MB / 0.4995 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.4259, allocations: 0 / 0.4995 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001997/0.4279, allocations: 411.4 kB / 0.4999 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.4279, allocations: 7.938 kB / 0.4999 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.898e-05/0.428, allocations: 35.97 kB / 0.4999 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/0.428, allocations: 12 kB / 0.4999 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.428, allocations: 3.938 kB / 0.4999 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002626/0.4307, allocations: 2.776 MB / 0.5026 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002752/0.431, allocations: 317.5 kB / 0.5029 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001982/0.4312, allocations: 34.56 kB / 0.503 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007526/0.4319, allocations: 31.97 kB / 0.503 GB, free: 11.15 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.432, allocations: 60.28 kB / 0.5031 GB, free: 11.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.838e-05/0.4321, allocations: 31.98 kB / 0.5031 GB, free: 11.06 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001899/0.434, allocations: 1.845 MB / 0.5049 GB, free: 9.211 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.924e-06/0.434, allocations: 0 / 0.5049 GB, free: 9.211 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002675/0.4367, allocations: 0.8359 MB / 0.5057 GB, free: 8.375 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.0002619/0.437, allocations: 170 kB / 0.5059 GB, free: 8.203 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003804/0.4408, allocations: 3.601 MB / 0.5094 GB, free: 4.633 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4408, allocations: 4 kB / 0.5094 GB, free: 4.629 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007689/0.4416, allocations: 0.7103 MB / 0.5101 GB, free: 3.918 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/0.4432, allocations: 258.2 kB / 0.5103 GB, free: 3.668 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009241/0.4525, allocations: 9.116 MB / 0.5192 GB, free: 10.48 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001966/0.4544, allocations: 2.398 MB / 0.5216 GB, free: 8.055 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004669/0.4549, allocations: 235.4 kB / 0.5218 GB, free: 7.824 MB / 446.1 MB Notification: Performance of SimCode: time 2.7e-07/0.4549, allocations: 0 / 0.5218 GB, free: 7.824 MB / 446.1 MB Notification: Performance of Templates: time 0.1659/0.6208, allocations: 40.08 MB / 0.5609 GB, free: 132.9 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/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