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.001196/0.001196, allocations: 117.1 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001239, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.00116, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.259, allocations: 50.53 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.008447/0.2675, allocations: 7.946 MB / 416.7 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005382/0.2729, allocations: 2.562 MB / 419.3 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001307/0.2742, allocations: 35.94 kB / 419.3 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002832/0.2771, allocations: 1.444 MB / 420.7 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002707/0.2799, allocations: 1.011 MB / 421.8 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007685/0.2807, allocations: 259.5 kB / 422 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003028/0.2837, allocations: 2.154 MB / 424.2 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002438/0.2862, allocations: 1.556 MB / 425.7 MB, free: 488 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001793/0.288, allocations: 0.8289 MB / 426.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002053/0.29, allocations: 1.183 MB / 427.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000569/0.2906, allocations: 160 kB / 427.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001691/0.2923, allocations: 0.6708 MB / 428.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0013/0.2937, allocations: 1.153 MB / 429.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001963/0.2956, allocations: 1.351 MB / 431.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005215/0.3009, allocations: 4.289 MB / 435.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.3009, allocations: 0 / 435.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3009, allocations: 0 / 435.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001304/0.301, allocations: 0 / 435.4 MB, free: 6.809 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.005349/0.3064, allocations: 3.01 MB / 438.4 MB, free: 3.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.3065, allocations: 12.03 kB / 438.4 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009218/0.3074, allocations: 0.5299 MB / 438.9 MB, free: 3.176 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006736/0.3141, allocations: 1.8 MB / 440.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002476/0.3166, allocations: 1.162 MB / 441.9 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.3168, allocations: 147.8 kB / 442 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006577/0.3175, allocations: 207.9 kB / 442.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01921/0.3367, allocations: 8.611 MB / 450.8 MB, free: 6.602 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001565/0.3369, allocations: 43.64 kB / 450.9 MB, free: 6.559 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006808/0.3376, allocations: 103.9 kB / 451 MB, free: 6.457 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00304/0.3406, allocations: 1.671 MB / 452.6 MB, free: 4.789 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01811/0.3588, allocations: 7.183 MB / 459.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03566/0.3945, allocations: 30.14 MB / 490 MB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02181/0.4163, allocations: 5.068 MB / 495 MB, free: 9.34 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001611/0.418, allocations: 1.247 MB / 496.3 MB, free: 8.07 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005903/0.4239, allocations: 3.837 MB / 0.4884 GB, free: 4.066 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.424, allocations: 50.83 kB / 0.4884 GB, free: 4.008 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 4.077e-06/0.424, allocations: 0 / 0.4884 GB, free: 4.008 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04488/0.4689, allocations: 9.3 MB / 0.4975 GB, free: 10.62 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.726e-05/0.469, allocations: 187.9 kB / 0.4977 GB, free: 10.39 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004866/0.4739, allocations: 3.035 MB / 0.5007 GB, free: 7.34 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002092/0.4742, allocations: 41.7 kB / 0.5007 GB, free: 7.293 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00189/0.4761, allocations: 2.543 MB / 0.5032 GB, free: 4.723 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007037/0.4768, allocations: 0.5119 MB / 0.5037 GB, free: 4.207 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002069/0.4789, allocations: 1.096 MB / 0.5048 GB, free: 3.102 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.411e-05/0.479, allocations: 301.1 kB / 0.505 GB, free: 2.805 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002429/0.4814, allocations: 1.603 MB / 0.5066 GB, free: 1.195 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004754/0.4862, allocations: 5.169 MB / 0.5117 GB, free: 10.22 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007546/0.4938, allocations: 7.336 MB / 0.5188 GB, free: 1.105 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001245/0.4939, allocations: 36 kB / 0.5189 GB, free: 1.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01135/0.5053, allocations: 6.46 MB / 0.5252 GB, free: 10.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001524/0.5055, allocations: 60.97 kB / 0.5252 GB, free: 10.54 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000195/0.5057, allocations: 128 kB / 0.5253 GB, free: 10.42 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002173/0.5059, allocations: 175.9 kB / 0.5255 GB, free: 10.25 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005035/0.511, allocations: 1.458 MB / 0.5269 GB, free: 8.785 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002274/0.5112, allocations: 247 kB / 0.5272 GB, free: 8.543 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00375/0.515, allocations: 0.7639 MB / 0.5279 GB, free: 7.773 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007225/0.5157, allocations: 344 kB / 0.5282 GB, free: 7.438 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.00271/0.5185, allocations: 1.575 MB / 0.5298 GB, free: 5.848 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005827/0.519, allocations: 266.2 kB / 0.53 GB, free: 5.586 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007028/0.5198, allocations: 311.3 kB / 0.5303 GB, free: 5.281 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-05/0.5198, allocations: 19.94 kB / 0.5303 GB, free: 5.262 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/0.5198, allocations: 0 / 0.5303 GB, free: 5.262 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/0.5198, allocations: 4.031 kB / 0.5304 GB, free: 5.258 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006767/0.5266, allocations: 3.412 MB / 0.5337 GB, free: 1.789 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.384e-05/0.5267, allocations: 4 kB / 0.5337 GB, free: 1.785 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002277/0.5289, allocations: 407.5 kB / 0.5341 GB, free: 1.387 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.881e-05/0.529, allocations: 4 kB / 0.5341 GB, free: 1.383 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001486/0.5291, allocations: 35.97 kB / 0.5341 GB, free: 1.348 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.168e-06/0.5292, allocations: 4 kB / 0.5341 GB, free: 1.344 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.5292, allocations: 7.938 kB / 0.5341 GB, free: 1.336 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2159/0.7451, allocations: 2.815 MB / 0.5369 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008302/0.746, allocations: 312.6 kB / 0.5372 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007175/0.7467, allocations: 31.77 kB / 0.5372 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001368/0.7481, allocations: 42.17 kB / 0.5372 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/0.7483, allocations: 60.45 kB / 0.5373 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.256e-05/0.7484, allocations: 37.67 kB / 0.5373 GB, free: 123.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002808/0.7512, allocations: 1.837 MB / 0.5391 GB, free: 123 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7512, allocations: 3.938 kB / 0.5391 GB, free: 123 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003859/0.7551, allocations: 0.8157 MB / 0.5399 GB, free: 122.9 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.0031/0.7582, allocations: 3.452 MB / 0.5433 GB, free: 121 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004657/0.7628, allocations: 3.62 MB / 0.5468 GB, free: 119.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.7629, allocations: 0 / 0.5468 GB, free: 119.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007158/0.7636, allocations: 0.7238 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.001667/0.7653, allocations: 281 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.03578/0.8011, allocations: 34.29 MB / 0.5813 GB, free: 83.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002617/0.8037, allocations: 2.384 MB / 0.5836 GB, free: 80.69 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003122/0.8069, allocations: 1.634 MB / 0.5852 GB, free: 79.05 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001466/0.8084, allocations: 1.214 MB / 0.5864 GB, free: 77.84 MB / 462.1 MB Notification: Performance of SimCode: time 8.71e-07/0.8084, allocations: 0 / 0.5864 GB, free: 77.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06616/0.8746, allocations: 43.26 MB / 0.6287 GB, free: 34.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.94/16.82, allocations: 7.859 kB / 0.6287 GB, free: 34.89 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.0.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