Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001285/0.001285, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00144/0.00144, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 59.89 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2826, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01/0.2926, allocations: 7.938 MB / 416.7 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005554/0.2982, allocations: 2.559 MB / 419.3 MB, free: 6.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009407/0.2992, allocations: 39.94 kB / 419.3 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002959/0.3022, allocations: 1.432 MB / 420.7 MB, free: 5.516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002819/0.305, allocations: 0.9876 MB / 421.7 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008728/0.3059, allocations: 267.4 kB / 422 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003185/0.3091, allocations: 2.15 MB / 424.1 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00229/0.3115, allocations: 1.556 MB / 425.7 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001393/0.3129, allocations: 0.825 MB / 426.5 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002316/0.3152, allocations: 1.187 MB / 427.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006062/0.3158, allocations: 160 kB / 427.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001718/0.3176, allocations: 0.6631 MB / 428.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00149/0.3191, allocations: 1.153 MB / 429.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001963/0.321, allocations: 1.355 MB / 431 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005938/0.327, allocations: 4.285 MB / 435.3 MB, free: 6.859 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.327, allocations: 0 / 435.3 MB, free: 6.859 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.327, allocations: 4 kB / 435.3 MB, free: 6.855 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001892/0.3272, allocations: 0 / 435.3 MB, free: 6.855 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.006473/0.3337, allocations: 3.01 MB / 438.3 MB, free: 3.777 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.3338, allocations: 11.97 kB / 438.3 MB, free: 3.766 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008783/0.3347, allocations: 0.526 MB / 438.9 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006624/0.3413, allocations: 1.804 MB / 440.7 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002701/0.344, allocations: 1.154 MB / 441.8 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/0.3442, allocations: 151.8 kB / 442 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004637/0.3447, allocations: 215.9 kB / 442.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01958/0.3643, allocations: 8.611 MB / 450.8 MB, free: 6.645 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001085/0.3644, allocations: 47.64 kB / 450.8 MB, free: 6.598 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003036/0.3647, allocations: 99.88 kB / 450.9 MB, free: 6.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003001/0.3677, allocations: 1.667 MB / 452.6 MB, free: 4.836 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01862/0.3864, allocations: 7.186 MB / 459.8 MB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03914/0.4256, allocations: 30.14 MB / 489.9 MB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02298/0.4486, allocations: 5.063 MB / 495 MB, free: 9.391 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00184/0.4505, allocations: 1.247 MB / 496.2 MB, free: 8.121 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006646/0.4571, allocations: 3.837 MB / 0.4884 GB, free: 4.117 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.766e-05/0.4573, allocations: 42.89 kB / 0.4884 GB, free: 4.066 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 7.564e-06/0.4573, allocations: 8 kB / 0.4884 GB, free: 4.059 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04627/0.5036, allocations: 9.289 MB / 0.4975 GB, free: 10.68 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001916/0.5038, allocations: 195.9 kB / 0.4977 GB, free: 10.45 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005266/0.5091, allocations: 3.04 MB / 0.5006 GB, free: 7.387 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002052/0.5094, allocations: 41.7 kB / 0.5007 GB, free: 7.34 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002168/0.5115, allocations: 2.539 MB / 0.5031 GB, free: 4.777 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006882/0.5122, allocations: 0.508 MB / 0.5036 GB, free: 4.266 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001434/0.5137, allocations: 1.096 MB / 0.5047 GB, free: 3.16 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.5138, allocations: 301.1 kB / 0.505 GB, free: 2.863 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002442/0.5163, allocations: 1.607 MB / 0.5066 GB, free: 1.25 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006132/0.5224, allocations: 5.173 MB / 0.5116 GB, free: 10.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009122/0.5316, allocations: 7.328 MB / 0.5188 GB, free: 1.164 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001129/0.5317, allocations: 36 kB / 0.5188 GB, free: 1.129 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0116/0.5434, allocations: 6.462 MB / 0.5251 GB, free: 10.66 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001125/0.5435, allocations: 60 kB / 0.5252 GB, free: 10.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001847/0.5437, allocations: 136.1 kB / 0.5253 GB, free: 10.47 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001903/0.5439, allocations: 172 kB / 0.5255 GB, free: 10.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005141/0.549, allocations: 1.458 MB / 0.5269 GB, free: 8.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002343/0.5493, allocations: 243.1 kB / 0.5271 GB, free: 8.602 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00398/0.5533, allocations: 0.7639 MB / 0.5279 GB, free: 7.832 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006008/0.5539, allocations: 347.9 kB / 0.5282 GB, free: 7.492 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.002879/0.5568, allocations: 1.579 MB / 0.5297 GB, free: 5.898 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005746/0.5574, allocations: 262.2 kB / 0.53 GB, free: 5.641 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006675/0.5581, allocations: 315.3 kB / 0.5303 GB, free: 5.332 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.175e-05/0.5581, allocations: 15.94 kB / 0.5303 GB, free: 5.316 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.001e-05/0.5581, allocations: 4 kB / 0.5303 GB, free: 5.312 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/0.5582, allocations: 7.969 kB / 0.5303 GB, free: 5.305 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006735/0.5649, allocations: 3.404 MB / 0.5336 GB, free: 1.844 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.397e-05/0.565, allocations: 0 / 0.5336 GB, free: 1.844 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002434/0.5674, allocations: 411.5 kB / 0.534 GB, free: 1.441 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.121e-05/0.5674, allocations: 4 kB / 0.534 GB, free: 1.438 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.719e-05/0.5675, allocations: 35.97 kB / 0.5341 GB, free: 1.402 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.474e-06/0.5676, allocations: 4 kB / 0.5341 GB, free: 1.398 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.5676, allocations: 4 kB / 0.5341 GB, free: 1.395 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2302/0.7978, allocations: 2.814 MB / 0.5368 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006664/0.7985, allocations: 311.9 kB / 0.5371 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004155/0.7989, allocations: 30.17 kB / 0.5372 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/0.8, allocations: 42.52 kB / 0.5372 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.8002, allocations: 55.94 kB / 0.5373 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.248e-05/0.8002, allocations: 40.73 kB / 0.5373 GB, free: 123.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003363/0.8036, allocations: 1.84 MB / 0.5391 GB, free: 123 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.8036, allocations: 0 / 0.5391 GB, free: 123 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00403/0.8077, allocations: 0.8278 MB / 0.5399 GB, free: 122.8 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.003487/0.8112, allocations: 3.446 MB / 0.5433 GB, free: 121 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004993/0.8162, allocations: 3.611 MB / 0.5468 GB, free: 119.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.8162, allocations: 0 / 0.5468 GB, free: 119.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007542/0.817, allocations: 0.728 MB / 0.5475 GB, free: 119.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001733/0.8187, allocations: 274.5 kB / 0.5478 GB, free: 119.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03391/0.8527, allocations: 34.3 MB / 0.5813 GB, free: 83.12 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001746/0.8545, allocations: 2.386 MB / 0.5836 GB, free: 80.71 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002919/0.8574, allocations: 1.637 MB / 0.5852 GB, free: 79.07 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001253/0.8587, allocations: 1.21 MB / 0.5864 GB, free: 77.86 MB / 462.1 MB Notification: Performance of SimCode: time 8.72e-07/0.8587, allocations: 0 / 0.5864 GB, free: 77.86 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07545/0.9341, allocations: 43.27 MB / 0.6286 GB, free: 34.92 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.25/19.19, allocations: 7.359 kB / 0.6286 GB, free: 34.91 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches