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.00193/0.00193, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.002376/0.002376, allocations: 191.3 kB / 17.85 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 2.361/2.361, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002275/0.002276, allocations: 42.98 kB / 300.7 MB, free: 5.711 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.18, allocations: 49.44 MB / 350.2 MB, free: 4.258 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01747/0.1975, allocations: 7.963 MB / 358.1 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009473/0.2071, allocations: 2.516 MB / 360.6 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002135/0.2093, allocations: 35.94 kB / 360.7 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005235/0.2146, allocations: 1.429 MB / 362.1 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005285/0.22, allocations: 0.9878 MB / 363.1 MB, free: 7.254 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001526/0.2215, allocations: 267.4 kB / 363.4 MB, free: 6.992 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006484/0.2281, allocations: 2.184 MB / 365.5 MB, free: 4.805 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005009/0.2332, allocations: 1.56 MB / 367.1 MB, free: 3.223 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002819/0.236, allocations: 0.8406 MB / 367.9 MB, free: 2.379 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00319/0.2393, allocations: 1.187 MB / 369.1 MB, free: 1.188 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001155/0.2405, allocations: 160 kB / 369.3 MB, free: 1.031 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003027/0.2435, allocations: 0.663 MB / 369.9 MB, free: 376 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.3471/0.5907, allocations: 1.166 MB / 371.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005065/0.5958, allocations: 1.373 MB / 372.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01223/0.6081, allocations: 4.112 MB / 376.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.25e-05/0.6082, allocations: 2.031 kB / 376.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.487e-06/0.6082, allocations: 0 / 376.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002815/0.6085, allocations: 0.8438 kB / 376.6 MB, free: 10.82 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.01896/0.6275, allocations: 2.959 MB / 379.6 MB, free: 9.453 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.68e-05/0.6276, allocations: 11.39 kB / 379.6 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003434/0.631, allocations: 0.5261 MB / 380.1 MB, free: 9.387 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01335/0.6444, allocations: 1.779 MB / 381.9 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005004/0.6495, allocations: 1.157 MB / 383 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003884/0.6499, allocations: 151.8 kB / 383.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001822/0.6518, allocations: 204.1 kB / 383.4 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03538/0.6872, allocations: 8.606 MB / 392 MB, free: 4.828 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004104/0.6876, allocations: 36.56 kB / 392 MB, free: 4.824 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001657/0.6893, allocations: 106.7 kB / 392.1 MB, free: 4.785 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004925/0.6943, allocations: 1.667 MB / 393.8 MB, free: 4.141 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0268/0.7211, allocations: 7.176 MB / 401 MB, free: 15.76 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07027/0.7915, allocations: 30.16 MB / 431.1 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03457/0.8261, allocations: 5.042 MB / 436.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003171/0.8293, allocations: 1.24 MB / 437.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01028/0.8397, allocations: 3.75 MB / 441.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.96e-05/0.8398, allocations: 60.12 kB / 441.2 MB, free: 6.672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=111): time 6.923e-06/0.8398, allocations: 0 / 441.2 MB, free: 6.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=111): time 0.07402/0.9139, allocations: 9.245 MB / 450.5 MB, free: 13.35 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000151/0.9141, allocations: 195.6 kB / 450.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009963/0.9241, allocations: 3.043 MB / 453.7 MB, free: 10.06 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003491/0.9245, allocations: 41.7 kB / 453.7 MB, free: 10.01 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003117/0.9276, allocations: 2.418 MB / 456.2 MB, free: 7.598 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001232/0.9289, allocations: 0.4918 MB / 456.7 MB, free: 7.109 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004303/0.9332, allocations: 1.094 MB / 457.7 MB, free: 6.008 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.9334, allocations: 305.1 kB / 458 MB, free: 5.707 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004604/0.938, allocations: 1.599 MB / 459.6 MB, free: 4.102 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01028/0.9483, allocations: 5.171 MB / 464.8 MB, free: 13.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01466/0.9631, allocations: 7.329 MB / 472.1 MB, free: 4.445 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002536/0.9634, allocations: 36 kB / 472.2 MB, free: 4.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.02325/0.9867, allocations: 6.433 MB / 478.6 MB, free: 13.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002873/0.987, allocations: 56 kB / 478.7 MB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004085/0.9875, allocations: 133.3 kB / 478.8 MB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004113/0.9879, allocations: 168 kB / 479 MB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009454/0.9974, allocations: 1.454 MB / 480.4 MB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003667/0.9978, allocations: 251 kB / 480.7 MB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007744/1.006, allocations: 0.7537 MB / 481.4 MB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001668/1.007, allocations: 349.2 kB / 481.8 MB, free: 10.83 MB / 398.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.006419/1.014, allocations: 1.579 MB / 483.3 MB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001126/1.015, allocations: 248.7 kB / 483.6 MB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003038/1.018, allocations: 0.8291 MB / 484.4 MB, free: 8.148 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.579e-05/1.018, allocations: 12 kB / 484.4 MB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.789e-05/1.018, allocations: 7.938 kB / 484.4 MB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.6e-05/1.018, allocations: 7.922 kB / 484.4 MB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01332/1.031, allocations: 3.386 MB / 487.8 MB, free: 4.695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-05/1.031, allocations: 0 / 487.8 MB, free: 4.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003945/1.035, allocations: 411.5 kB / 488.2 MB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-05/1.035, allocations: 7.938 kB / 488.2 MB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002755/1.036, allocations: 31.97 kB / 488.3 MB, free: 4.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.905e-05/1.036, allocations: 4 kB / 488.3 MB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.214e-06/1.036, allocations: 4 kB / 488.3 MB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006233/1.042, allocations: 2.784 MB / 491.1 MB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001157/1.043, allocations: 305.6 kB / 491.3 MB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009232/1.044, allocations: 30.95 kB / 491.4 MB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002238/1.046, allocations: 39.95 kB / 491.4 MB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000245/1.047, allocations: 63.86 kB / 491.5 MB, free: 0.9961 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001616/1.047, allocations: 32.86 kB / 491.5 MB, free: 0.9648 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.006834/1.054, allocations: 1.841 MB / 493.4 MB, free: 15.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.82e-07/1.054, allocations: 4 kB / 493.4 MB, free: 15.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.009557/1.063, allocations: 0.8299 MB / 494.2 MB, free: 14.29 MB / 414.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.007304/1.071, allocations: 3.437 MB / 497.6 MB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0102/1.081, allocations: 3.787 MB / 0.4897 GB, free: 7.059 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/1.081, allocations: 0 / 0.4897 GB, free: 7.059 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001685/1.083, allocations: 0.7219 MB / 0.4904 GB, free: 6.336 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003876/1.087, allocations: 266 kB / 0.4906 GB, free: 6.082 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4243/1.511, allocations: 36.9 MB / 0.5267 GB, free: 151.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009475/1.52, allocations: 2.388 MB / 0.529 GB, free: 150.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.009944/1.531, allocations: 1.639 MB / 0.5306 GB, free: 150.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004975/1.536, allocations: 1.217 MB / 0.5318 GB, free: 150.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.292e-06/1.536, allocations: 3.75 kB / 0.5318 GB, free: 150.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2889/1.825, allocations: 46.65 MB / 0.5773 GB, free: 114.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.1/17.93, allocations: 12.73 kB / 0.5773 GB, free: 114.4 MB / 446.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