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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001435/0.001441, allocations: 104.2 kB / 17.06 MB, free: 6.098 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.001492/0.001492, allocations: 198.9 kB / 18 MB, free: 5.168 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.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000972/0.0009721, allocations: 47.92 kB / 350.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2522, allocations: 49.44 MB / 400.3 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.008349/0.2606, allocations: 7.957 MB / 408.2 MB, free: 0.793 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004695/0.2654, allocations: 2.516 MB / 410.7 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008683/0.2662, allocations: 39.88 kB / 410.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002576/0.2688, allocations: 1.429 MB / 412.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00223/0.2711, allocations: 1.019 MB / 413.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006333/0.2718, allocations: 263.4 kB / 413.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002365/0.2741, allocations: 2.195 MB / 415.7 MB, free: 9.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001542/0.2757, allocations: 1.548 MB / 417.2 MB, free: 7.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009453/0.2767, allocations: 0.8406 MB / 418.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001312/0.278, allocations: 1.187 MB / 419.2 MB, free: 5.695 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002991/0.2783, allocations: 164 kB / 419.4 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001119/0.2794, allocations: 0.6669 MB / 420.1 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009068/0.2804, allocations: 1.165 MB / 421.2 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001137/0.2815, allocations: 1.378 MB / 422.6 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003971/0.2855, allocations: 4.328 MB / 426.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.2855, allocations: 0 / 426.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2855, allocations: 0 / 426.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.588e-05/0.2856, allocations: 0 / 426.9 MB, free: 13.97 MB / 350.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.004229/0.2898, allocations: 3.041 MB / 430 MB, free: 10.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.32e-05/0.2899, allocations: 8.031 kB / 430 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006002/0.2905, allocations: 0.526 MB / 430.5 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006482/0.297, allocations: 1.797 MB / 432.3 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002434/0.2995, allocations: 1.17 MB / 433.5 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/0.2996, allocations: 147.8 kB / 433.6 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003902/0.3, allocations: 207.8 kB / 433.8 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01692/0.3169, allocations: 8.596 MB / 442.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.004e-05/0.3171, allocations: 47.62 kB / 442.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002631/0.3173, allocations: 95.89 kB / 442.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002597/0.3199, allocations: 1.675 MB / 444.2 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01664/0.3366, allocations: 7.167 MB / 451.4 MB, free: 4.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03316/0.3698, allocations: 30.15 MB / 481.6 MB, free: 5.734 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02137/0.3912, allocations: 5.047 MB / 486.6 MB, free: 0.5117 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001636/0.3929, allocations: 1.244 MB / 487.8 MB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005437/0.3984, allocations: 3.758 MB / 491.6 MB, free: 11.34 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.482e-05/0.3984, allocations: 46.89 kB / 491.7 MB, free: 11.29 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 3.878e-06/0.3984, allocations: 0 / 491.7 MB, free: 11.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04389/0.4423, allocations: 9.284 MB / 0.4892 GB, free: 1.914 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.805e-05/0.4425, allocations: 187.9 kB / 0.4894 GB, free: 1.688 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003957/0.4464, allocations: 3.044 MB / 0.4923 GB, free: 14.62 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001936/0.4467, allocations: 41.7 kB / 0.4924 GB, free: 14.58 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001554/0.4482, allocations: 2.535 MB / 0.4949 GB, free: 12.02 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006077/0.4488, allocations: 0.5159 MB / 0.4954 GB, free: 11.5 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001215/0.4501, allocations: 1.099 MB / 0.4964 GB, free: 10.39 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.575e-05/0.4502, allocations: 301.1 kB / 0.4967 GB, free: 10.09 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002073/0.4523, allocations: 1.603 MB / 0.4983 GB, free: 8.48 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004296/0.4566, allocations: 5.169 MB / 0.5033 GB, free: 1.508 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007691/0.4643, allocations: 7.32 MB / 0.5105 GB, free: 8.406 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001234/0.4644, allocations: 36 kB / 0.5105 GB, free: 8.371 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01179/0.4762, allocations: 6.453 MB / 0.5168 GB, free: 1.914 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001613/0.4765, allocations: 60 kB / 0.5169 GB, free: 1.855 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002135/0.4767, allocations: 124.4 kB / 0.517 GB, free: 1.734 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002134/0.4769, allocations: 171.9 kB / 0.5172 GB, free: 1.566 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005043/0.482, allocations: 1.454 MB / 0.5186 GB, free: 112 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000275/0.4823, allocations: 247.1 kB / 0.5188 GB, free: 15.86 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003979/0.4863, allocations: 0.7759 MB / 0.5196 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008051/0.4871, allocations: 344 kB / 0.5199 GB, free: 14.75 MB / 462.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.002749/0.4899, allocations: 1.571 MB / 0.5214 GB, free: 13.16 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005767/0.4904, allocations: 266.2 kB / 0.5217 GB, free: 12.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001513/0.492, allocations: 0.8291 MB / 0.5225 GB, free: 12.07 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.031e-05/0.492, allocations: 19.94 kB / 0.5225 GB, free: 12.05 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/0.492, allocations: 4 kB / 0.5225 GB, free: 12.04 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.495e-05/0.4921, allocations: 3.984 kB / 0.5225 GB, free: 12.04 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007195/0.4993, allocations: 3.388 MB / 0.5258 GB, free: 8.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.154e-05/0.4993, allocations: 0 / 0.5258 GB, free: 8.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002356/0.5017, allocations: 415.5 kB / 0.5262 GB, free: 8.184 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.482e-05/0.5017, allocations: 4 kB / 0.5262 GB, free: 8.18 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001301/0.5019, allocations: 39.91 kB / 0.5263 GB, free: 8.141 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.197e-05/0.5019, allocations: 7.984 kB / 0.5263 GB, free: 8.133 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.5019, allocations: 4 kB / 0.5263 GB, free: 8.129 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003428/0.5053, allocations: 2.798 MB / 0.529 GB, free: 5.301 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006841/0.506, allocations: 315.1 kB / 0.5293 GB, free: 4.973 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004479/0.5065, allocations: 27.98 kB / 0.5293 GB, free: 4.945 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/0.5077, allocations: 39.95 kB / 0.5294 GB, free: 4.906 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.5078, allocations: 51.92 kB / 0.5294 GB, free: 4.855 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.296e-05/0.5079, allocations: 35.97 kB / 0.5295 GB, free: 4.82 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003258/0.5112, allocations: 1.845 MB / 0.5313 GB, free: 2.973 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5112, allocations: 4 kB / 0.5313 GB, free: 2.969 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004425/0.5156, allocations: 0.8344 MB / 0.5321 GB, free: 2.133 MB / 462.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.2231/0.7388, allocations: 3.442 MB / 0.5355 GB, free: 129.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005857/0.7447, allocations: 3.61 MB / 0.539 GB, free: 128.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.7447, allocations: 3.969 kB / 0.539 GB, free: 128.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000753/0.7455, allocations: 0.7142 MB / 0.5397 GB, free: 128.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001666/0.7472, allocations: 257.7 kB / 0.5399 GB, free: 128.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0337/0.7809, allocations: 34.3 MB / 0.5734 GB, free: 95.95 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002076/0.783, allocations: 2.392 MB / 0.5758 GB, free: 93.54 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003021/0.7861, allocations: 1.631 MB / 0.5774 GB, free: 91.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001485/0.7876, allocations: 1.219 MB / 0.5785 GB, free: 90.68 MB / 462.1 MB Notification: Performance of SimCode: time 1.112e-06/0.7876, allocations: 0 / 0.5785 GB, free: 90.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06912/0.8567, allocations: 43.4 MB / 0.6209 GB, free: 47.66 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.95/16.81, allocations: 8.625 kB / 0.6209 GB, free: 47.65 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > 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.csv","/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