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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_3_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.001609/0.001609, allocations: 104.1 kB / 17.58 MB, free: 5.422 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.00171/0.00171, allocations: 191.9 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.504/2.504, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.002347/0.002347, allocations: 48.16 kB / 280.7 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1683/0.1706, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01804/0.1888, allocations: 7.958 MB / 335.3 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01041/0.1993, allocations: 2.548 MB / 337.9 MB, free: 9.805 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00228/0.2017, allocations: 35.94 kB / 337.9 MB, free: 9.77 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005296/0.207, allocations: 1.429 MB / 339.4 MB, free: 8.336 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004961/0.212, allocations: 0.9839 MB / 340.3 MB, free: 7.348 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001472/0.2135, allocations: 271.4 kB / 340.6 MB, free: 7.082 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005285/0.2188, allocations: 2.173 MB / 342.8 MB, free: 4.902 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003677/0.2225, allocations: 1.56 MB / 344.3 MB, free: 3.324 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002291/0.2248, allocations: 0.8367 MB / 345.2 MB, free: 2.484 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003286/0.2282, allocations: 1.191 MB / 346.4 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009432/0.2291, allocations: 160 kB / 346.5 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002752/0.2319, allocations: 0.6592 MB / 347.2 MB, free: 484 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002384/0.2343, allocations: 1.169 MB / 348.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003541/0.2379, allocations: 1.37 MB / 349.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008222/0.2462, allocations: 4.112 MB / 353.8 MB, free: 9.797 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.255e-06/0.2462, allocations: 0 / 353.8 MB, free: 9.797 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2462, allocations: 0 / 353.8 MB, free: 9.797 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002096/0.2465, allocations: 0 / 353.8 MB, free: 9.797 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.01179/0.2583, allocations: 2.957 MB / 356.8 MB, free: 6.777 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.391e-05/0.2584, allocations: 12.03 kB / 356.8 MB, free: 6.766 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001447/0.2598, allocations: 0.526 MB / 357.3 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01231/0.2722, allocations: 1.775 MB / 359.1 MB, free: 4.445 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005892/0.2782, allocations: 1.158 MB / 360.3 MB, free: 3.242 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003035/0.2786, allocations: 151.8 kB / 360.4 MB, free: 3.094 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001269/0.2798, allocations: 207.8 kB / 360.6 MB, free: 2.891 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03787/0.3177, allocations: 8.592 MB / 369.2 MB, free: 9.695 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003113/0.3181, allocations: 43.64 kB / 369.2 MB, free: 9.652 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001251/0.3194, allocations: 99.88 kB / 369.3 MB, free: 9.555 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006391/0.3258, allocations: 1.675 MB / 371 MB, free: 7.875 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0375/0.3634, allocations: 7.163 MB / 378.2 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.418/0.7815, allocations: 30.18 MB / 408.4 MB, free: 26.94 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04339/0.8249, allocations: 5.04 MB / 413.4 MB, free: 24.33 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003065/0.8281, allocations: 1.252 MB / 414.6 MB, free: 23.74 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009563/0.8377, allocations: 3.747 MB / 418.4 MB, free: 20.91 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.519e-05/0.8378, allocations: 46.45 kB / 418.4 MB, free: 20.86 MB / 318.1 MB Notification: Performance of pre-optimization done (n=111): time 8.466e-06/0.8378, allocations: 0 / 418.4 MB, free: 20.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=111): time 0.08529/0.9232, allocations: 9.269 MB / 427.7 MB, free: 12.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.9233, allocations: 193.2 kB / 427.9 MB, free: 11.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01191/0.9353, allocations: 3.031 MB / 430.9 MB, free: 8.855 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003731/0.9357, allocations: 41.64 kB / 431 MB, free: 8.809 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002918/0.9387, allocations: 2.426 MB / 433.4 MB, free: 6.387 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001043/0.9397, allocations: 0.4939 MB / 433.9 MB, free: 5.895 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002148/0.9419, allocations: 1.083 MB / 435 MB, free: 4.805 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.055e-05/0.942, allocations: 305.1 kB / 435.3 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003921/0.9459, allocations: 1.603 MB / 436.9 MB, free: 2.895 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008556/0.9545, allocations: 5.169 MB / 442 MB, free: 11.92 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01724/0.9718, allocations: 7.325 MB / 449.4 MB, free: 2.812 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003954/0.9723, allocations: 40 kB / 449.4 MB, free: 2.773 MB / 334.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.02531/0.9977, allocations: 6.439 MB / 455.8 MB, free: 12.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000346/0.9981, allocations: 63.94 kB / 455.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004239/0.9986, allocations: 124 kB / 456 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004153/0.999, allocations: 168 kB / 456.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01114/1.01, allocations: 1.458 MB / 457.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000871/1.011, allocations: 247 kB / 457.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009608/1.021, allocations: 0.7426 MB / 458.6 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002319/1.023, allocations: 344.9 kB / 459 MB, free: 9.191 MB / 350.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.007772/1.031, allocations: 1.574 MB / 460.5 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001498/1.033, allocations: 256.6 kB / 460.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003478/1.036, allocations: 0.8288 MB / 461.6 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.327e-05/1.036, allocations: 19.98 kB / 461.6 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.895e-05/1.036, allocations: 4 kB / 461.7 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.987e-05/1.036, allocations: 4.359 kB / 461.7 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01747/1.054, allocations: 3.387 MB / 465 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.512e-05/1.054, allocations: 0 / 465 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004941/1.059, allocations: 410.2 kB / 465.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.732e-05/1.059, allocations: 11.94 kB / 465.5 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002775/1.059, allocations: 35.97 kB / 465.5 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-05/1.059, allocations: 11.98 kB / 465.5 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/1.059, allocations: 0 / 465.5 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007634/1.067, allocations: 2.788 MB / 468.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001727/1.069, allocations: 297.7 kB / 468.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001243/1.07, allocations: 31.58 kB / 468.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002796/1.073, allocations: 44 kB / 468.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003463/1.073, allocations: 63.77 kB / 468.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002261/1.073, allocations: 35.98 kB / 468.8 MB, free: 15.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.007907/1.081, allocations: 1.845 MB / 470.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.31e-07/1.081, allocations: 4 kB / 470.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.01074/1.092, allocations: 0.8247 MB / 471.4 MB, free: 12.64 MB / 366.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.008493/1.101, allocations: 3.431 MB / 474.9 MB, free: 9.188 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.01259/1.113, allocations: 3.795 MB / 478.6 MB, free: 5.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.521e-05/1.113, allocations: 4.875 kB / 478.7 MB, free: 5.426 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002162/1.116, allocations: 0.7188 MB / 479.4 MB, free: 4.707 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004843/1.121, allocations: 268.5 kB / 479.6 MB, free: 4.457 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1132/1.234, allocations: 36.88 MB / 0.5044 GB, free: 9.031 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007589/1.241, allocations: 2.391 MB / 0.5067 GB, free: 6.613 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.009952/1.251, allocations: 1.631 MB / 0.5083 GB, free: 4.977 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004376/1.256, allocations: 1.214 MB / 0.5095 GB, free: 3.762 MB / 414.1 MB Notification: Performance of SimCode: time 1.142e-06/1.256, allocations: 0 / 0.5095 GB, free: 3.762 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4603/1.716, allocations: 46.66 MB / 0.5551 GB, free: 139.3 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.16/16.88, allocations: 448 / 0.5551 GB, free: 139.3 MB / 430.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/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