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.00171/0.00171, allocations: 108.3 kB / 17.06 MB, free: 5.957 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.00183/0.00183, allocations: 200 kB / 18.01 MB, free: 5.039 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.432/1.432, allocations: 222.9 MB / 241.7 MB, free: 15.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002188/0.002188, allocations: 47.86 kB / 350.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2744, allocations: 49.43 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009606/0.2841, allocations: 7.969 MB / 408.2 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005654/0.2898, allocations: 2.512 MB / 410.7 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001039/0.2909, allocations: 35.94 kB / 410.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002843/0.2937, allocations: 1.429 MB / 412.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002714/0.2965, allocations: 0.9956 MB / 413.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007641/0.2973, allocations: 259.4 kB / 413.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003227/0.3005, allocations: 2.191 MB / 415.6 MB, free: 9.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002138/0.3027, allocations: 1.548 MB / 417.2 MB, free: 7.762 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001268/0.304, allocations: 0.8406 MB / 418 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00165/0.3056, allocations: 1.191 MB / 419.2 MB, free: 5.723 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003721/0.306, allocations: 160 kB / 419.4 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001372/0.3074, allocations: 0.6631 MB / 420 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00117/0.3086, allocations: 1.169 MB / 421.2 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001475/0.3101, allocations: 1.374 MB / 422.6 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005267/0.3153, allocations: 4.332 MB / 426.9 MB, free: 14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3154, allocations: 0 / 426.9 MB, free: 14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3154, allocations: 4 kB / 426.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001191/0.3155, allocations: 0 / 426.9 MB, free: 13.99 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.005399/0.3209, allocations: 3.033 MB / 429.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/0.321, allocations: 8.031 kB / 429.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007016/0.3217, allocations: 0.5299 MB / 430.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0068/0.3285, allocations: 1.793 MB / 432.3 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002484/0.331, allocations: 1.173 MB / 433.4 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001346/0.3312, allocations: 147.8 kB / 433.6 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004533/0.3317, allocations: 207.8 kB / 433.8 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01899/0.3506, allocations: 8.592 MB / 442.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001145/0.3508, allocations: 47.61 kB / 442.4 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003198/0.3511, allocations: 99.89 kB / 442.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002982/0.3541, allocations: 1.671 MB / 444.2 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01875/0.3729, allocations: 7.167 MB / 451.4 MB, free: 4.801 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03721/0.4101, allocations: 30.16 MB / 481.5 MB, free: 5.766 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02205/0.4323, allocations: 5.049 MB / 486.6 MB, free: 0.5391 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001807/0.4341, allocations: 1.244 MB / 487.8 MB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005682/0.4398, allocations: 3.75 MB / 491.6 MB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.027e-05/0.4399, allocations: 50.83 kB / 491.6 MB, free: 11.32 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 4.218e-06/0.4399, allocations: 0 / 491.6 MB, free: 11.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.0455/0.4854, allocations: 9.282 MB / 0.4892 GB, free: 1.949 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001282/0.4856, allocations: 191.9 kB / 0.4893 GB, free: 1.719 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004744/0.4903, allocations: 3.052 MB / 0.4923 GB, free: 14.65 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002003/0.4906, allocations: 37.7 kB / 0.4924 GB, free: 14.61 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002022/0.4926, allocations: 2.539 MB / 0.4948 GB, free: 12.04 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006539/0.4933, allocations: 0.5119 MB / 0.4953 GB, free: 11.52 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001462/0.4947, allocations: 1.096 MB / 0.4964 GB, free: 10.42 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.4949, allocations: 301.1 kB / 0.4967 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002351/0.4972, allocations: 1.599 MB / 0.4983 GB, free: 8.516 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005361/0.5026, allocations: 5.169 MB / 0.5033 GB, free: 1.543 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008746/0.5114, allocations: 7.326 MB / 0.5105 GB, free: 8.438 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-05/0.5115, allocations: 44 kB / 0.5105 GB, free: 8.395 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01189/0.5234, allocations: 6.439 MB / 0.5168 GB, free: 1.949 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.614e-05/0.5235, allocations: 60 kB / 0.5168 GB, free: 1.891 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001612/0.5237, allocations: 128 kB / 0.517 GB, free: 1.766 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001759/0.5239, allocations: 168.7 kB / 0.5171 GB, free: 1.602 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005103/0.529, allocations: 1.458 MB / 0.5185 GB, free: 144 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002608/0.5293, allocations: 255 kB / 0.5188 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003755/0.5331, allocations: 0.7677 MB / 0.5195 GB, free: 15.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006661/0.5337, allocations: 344 kB / 0.5199 GB, free: 14.78 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.002736/0.5365, allocations: 1.571 MB / 0.5214 GB, free: 13.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005272/0.537, allocations: 270.2 kB / 0.5217 GB, free: 12.93 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001453/0.5385, allocations: 0.833 MB / 0.5225 GB, free: 12.09 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.298e-05/0.5385, allocations: 19.94 kB / 0.5225 GB, free: 12.07 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.5386, allocations: 0 / 0.5225 GB, free: 12.07 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.684e-05/0.5386, allocations: 11.98 kB / 0.5225 GB, free: 12.06 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006131/0.5447, allocations: 3.384 MB / 0.5258 GB, free: 8.613 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.889e-06/0.5448, allocations: 0 / 0.5258 GB, free: 8.613 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002368/0.5471, allocations: 415.5 kB / 0.5262 GB, free: 8.207 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.655e-05/0.5472, allocations: 4 kB / 0.5262 GB, free: 8.203 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001191/0.5473, allocations: 35.97 kB / 0.5262 GB, free: 8.168 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.837e-06/0.5473, allocations: 4 kB / 0.5262 GB, free: 8.164 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.5473, allocations: 0 / 0.5262 GB, free: 8.164 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00378/0.5511, allocations: 2.797 MB / 0.529 GB, free: 5.34 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007624/0.5519, allocations: 315.1 kB / 0.5293 GB, free: 5.012 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002982/0.5522, allocations: 31.98 kB / 0.5293 GB, free: 4.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008769/0.5531, allocations: 39.95 kB / 0.5293 GB, free: 4.941 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/0.5533, allocations: 55.86 kB / 0.5294 GB, free: 4.887 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.116e-05/0.5534, allocations: 39.91 kB / 0.5294 GB, free: 4.848 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003049/0.5564, allocations: 1.849 MB / 0.5312 GB, free: 2.996 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5564, allocations: 0 / 0.5312 GB, free: 2.996 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004118/0.5606, allocations: 0.8386 MB / 0.5321 GB, free: 2.156 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.2023/0.7629, allocations: 3.435 MB / 0.5354 GB, free: 129.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005624/0.7686, allocations: 3.61 MB / 0.5389 GB, free: 128.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.7686, allocations: 3.969 kB / 0.5389 GB, free: 128.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007277/0.7693, allocations: 0.7115 MB / 0.5396 GB, free: 128.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001664/0.771, allocations: 260.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.03197/0.803, allocations: 34.31 MB / 0.5734 GB, free: 95.96 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001795/0.8048, allocations: 2.385 MB / 0.5757 GB, free: 93.55 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002885/0.8077, allocations: 1.637 MB / 0.5773 GB, free: 91.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001209/0.809, allocations: 1.214 MB / 0.5785 GB, free: 90.69 MB / 462.1 MB Notification: Performance of SimCode: time 8.31e-07/0.809, allocations: 0 / 0.5785 GB, free: 90.69 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07126/0.8803, allocations: 43.41 MB / 0.6209 GB, free: 47.66 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.77/16.65, allocations: 0.625 kB / 0.6209 GB, free: 47.66 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