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.001141/0.001141, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001184/0.001184, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.317/1.317, allocations: 222.9 MB / 241.1 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009641/0.0009641, allocations: 48.72 kB / 300 MB, free: 6.062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08553/0.08651, allocations: 49.44 MB / 349.4 MB, free: 4.617 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.1756/0.2621, allocations: 28.94 MB / 378.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01011/0.2723, allocations: 5.956 MB / 384.3 MB, free: 7.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003539/0.2758, allocations: 114.2 kB / 384.4 MB, free: 7.145 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002578/0.2784, allocations: 1.396 MB / 385.8 MB, free: 6.727 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002461/0.281, allocations: 0.9384 MB / 386.8 MB, free: 6.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007124/0.2817, allocations: 238 kB / 387 MB, free: 6.305 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005068/0.2868, allocations: 3.289 MB / 390.3 MB, free: 5.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002769/0.2896, allocations: 1.545 MB / 391.8 MB, free: 4.922 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001237/0.2908, allocations: 0.7329 MB / 392.6 MB, free: 4.578 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00224/0.2931, allocations: 1.302 MB / 393.9 MB, free: 3.938 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003185/0.2934, allocations: 115.4 kB / 394 MB, free: 3.938 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001386/0.2948, allocations: 0.6515 MB / 394.6 MB, free: 3.648 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009714/0.2958, allocations: 1.14 MB / 395.8 MB, free: 3.047 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001176/0.297, allocations: 1.348 MB / 397.1 MB, free: 2.047 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003761/0.3008, allocations: 4.095 MB / 401.2 MB, free: 15.36 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3008, allocations: 0 / 401.2 MB, free: 15.36 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.3008, allocations: 4 kB / 401.2 MB, free: 15.36 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.753e-05/0.3009, allocations: 0 / 401.2 MB, free: 15.36 MB / 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.004051/0.3049, allocations: 2.949 MB / 404.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.305, allocations: 9.438 kB / 404.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006259/0.3112, allocations: 1.779 MB / 405.9 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00193/0.3132, allocations: 1.155 MB / 407.1 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.384e-05/0.3133, allocations: 153.5 kB / 407.2 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003214/0.3136, allocations: 207.4 kB / 407.4 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01621/0.3298, allocations: 8.594 MB / 416 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.482e-05/0.3299, allocations: 47.66 kB / 416.1 MB, free: 1.215 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002485/0.3302, allocations: 98.55 kB / 416.2 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002607/0.3328, allocations: 1.666 MB / 417.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01636/0.3492, allocations: 7.173 MB / 425 MB, free: 8.309 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03072/0.3799, allocations: 30.18 MB / 455.2 MB, free: 9.395 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02316/0.4031, allocations: 5.046 MB / 460.2 MB, free: 4.172 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001607/0.4048, allocations: 1.24 MB / 461.5 MB, free: 2.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00557/0.4104, allocations: 3.746 MB / 465.2 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.445e-05/0.4104, allocations: 54.83 kB / 465.3 MB, free: 14.96 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 4.038e-06/0.4105, allocations: 0 / 465.3 MB, free: 14.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04736/0.4578, allocations: 9.251 MB / 474.5 MB, free: 5.625 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.988e-05/0.4579, allocations: 195.9 kB / 474.7 MB, free: 5.391 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004535/0.4625, allocations: 3.039 MB / 477.8 MB, free: 2.332 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001661/0.4627, allocations: 43.81 kB / 477.8 MB, free: 2.285 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001743/0.4644, allocations: 2.424 MB / 480.2 MB, free: 15.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006961/0.4651, allocations: 0.4941 MB / 480.7 MB, free: 15.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001612/0.4668, allocations: 1.083 MB / 481.8 MB, free: 14.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.013e-05/0.4669, allocations: 301.1 kB / 482.1 MB, free: 13.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002319/0.4692, allocations: 1.603 MB / 483.7 MB, free: 12.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004421/0.4736, allocations: 5.17 MB / 488.9 MB, free: 5.352 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007675/0.4813, allocations: 7.335 MB / 496.2 MB, free: 12.24 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001041/0.4814, allocations: 36 kB / 496.2 MB, free: 12.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01023/0.4917, allocations: 6.438 MB / 0.4909 GB, free: 5.758 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.497e-05/0.4918, allocations: 62.34 kB / 0.491 GB, free: 5.699 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001588/0.492, allocations: 128.1 kB / 0.4911 GB, free: 5.574 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001669/0.4921, allocations: 168 kB / 0.4912 GB, free: 5.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004859/0.497, allocations: 1.462 MB / 0.4927 GB, free: 3.945 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002246/0.4972, allocations: 247 kB / 0.4929 GB, free: 3.703 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003827/0.5011, allocations: 0.7537 MB / 0.4936 GB, free: 2.941 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005915/0.5017, allocations: 340 kB / 0.494 GB, free: 2.609 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.002443/0.5041, allocations: 1.567 MB / 0.4955 GB, free: 1.027 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005353/0.5047, allocations: 248.8 kB / 0.4957 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001496/0.5062, allocations: 0.8368 MB / 0.4966 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.003e-05/0.5062, allocations: 12 kB / 0.4966 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.5063, allocations: 4 kB / 0.4966 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.392e-05/0.5063, allocations: 7.922 kB / 0.4966 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006428/0.5127, allocations: 3.391 MB / 0.4999 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-05/0.5127, allocations: 0 / 0.4999 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002534/0.5153, allocations: 407.9 kB / 0.5003 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.897e-05/0.5153, allocations: 7.938 kB / 0.5003 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000111/0.5154, allocations: 35.97 kB / 0.5003 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.766e-06/0.5154, allocations: 8 kB / 0.5003 GB, free: 12.01 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.5155, allocations: 7.875 kB / 0.5003 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003271/0.5187, allocations: 2.772 MB / 0.503 GB, free: 9.211 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006549/0.5194, allocations: 313.4 kB / 0.5033 GB, free: 8.883 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005069/0.5199, allocations: 27.98 kB / 0.5034 GB, free: 8.855 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001162/0.5211, allocations: 43.95 kB / 0.5034 GB, free: 8.812 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.5212, allocations: 51.92 kB / 0.5035 GB, free: 8.762 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.815e-05/0.5213, allocations: 39.97 kB / 0.5035 GB, free: 8.723 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004169/0.5255, allocations: 1.845 MB / 0.5053 GB, free: 6.875 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5255, allocations: 0 / 0.5053 GB, free: 6.875 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.008244/0.5338, allocations: 0.83 MB / 0.5061 GB, free: 6.043 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.0006784/0.5345, allocations: 163.7 kB / 0.5063 GB, free: 5.875 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.009563/0.5441, allocations: 3.597 MB / 0.5098 GB, free: 2.309 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/0.5441, allocations: 0 / 0.5098 GB, free: 2.309 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001736/0.5459, allocations: 0.7159 MB / 0.5105 GB, free: 1.594 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00346/0.5494, allocations: 265.8 kB / 0.5107 GB, free: 1.332 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0236/0.573, allocations: 8.436 MB / 0.519 GB, free: 8.844 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005446/0.5785, allocations: 2.394 MB / 0.5213 GB, free: 6.414 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.008608/0.5871, allocations: 1.641 MB / 0.5229 GB, free: 4.766 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001081/0.5882, allocations: 191.4 kB / 0.5231 GB, free: 4.578 MB / 446.1 MB Notification: Performance of SimCode: time 1.533e-06/0.5883, allocations: 0 / 0.5231 GB, free: 4.578 MB / 446.1 MB Notification: Performance of Templates: time 0.282/0.8702, allocations: 20.66 MB / 0.5433 GB, free: 144.2 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