Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_1_0-beta_om_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.001854/0.001855, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001512/0.001512, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.492/1.492, allocations: 227.7 MB / 247.2 MB, free: 10.2 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002164/0.002164, allocations: 67.89 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2803, allocations: 50.54 MB / 409.1 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01053/0.2909, allocations: 7.942 MB / 417 MB, free: 9.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005436/0.2963, allocations: 2.555 MB / 419.6 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001309/0.2977, allocations: 35.94 kB / 419.6 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00338/0.3011, allocations: 1.444 MB / 421 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002968/0.3041, allocations: 0.9762 MB / 422 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008944/0.305, allocations: 267.4 kB / 422.3 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003319/0.3084, allocations: 2.161 MB / 424.4 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002371/0.3107, allocations: 1.544 MB / 426 MB, free: 388 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001481/0.3123, allocations: 0.8289 MB / 426.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00214/0.3144, allocations: 1.183 MB / 428 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006316/0.3151, allocations: 160 kB / 428.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001752/0.3168, allocations: 0.6592 MB / 428.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001471/0.3183, allocations: 1.161 MB / 430 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001519/0.3198, allocations: 1.355 MB / 431.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004974/0.3248, allocations: 4.289 MB / 435.6 MB, free: 6.711 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3248, allocations: 0 / 435.6 MB, free: 6.711 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3249, allocations: 0 / 435.6 MB, free: 6.711 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.823e-05/0.3249, allocations: 0 / 435.6 MB, free: 6.711 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.004571/0.3295, allocations: 3.01 MB / 438.6 MB, free: 3.633 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.3296, allocations: 12.03 kB / 438.6 MB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005933/0.3302, allocations: 0.5259 MB / 439.2 MB, free: 3.082 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006549/0.3367, allocations: 1.797 MB / 441 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001933/0.3387, allocations: 1.166 MB / 442.1 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001445/0.3388, allocations: 147.9 kB / 442.3 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003707/0.3392, allocations: 215.8 kB / 442.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01885/0.3581, allocations: 8.611 MB / 451.1 MB, free: 6.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.304e-05/0.3582, allocations: 47.56 kB / 451.1 MB, free: 6.453 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000275/0.3585, allocations: 103.9 kB / 451.2 MB, free: 6.352 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00286/0.3614, allocations: 1.659 MB / 452.9 MB, free: 4.695 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01807/0.3794, allocations: 7.19 MB / 460.1 MB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03649/0.416, allocations: 30.13 MB / 490.2 MB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02231/0.4383, allocations: 5.063 MB / 495.3 MB, free: 9.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00192/0.4403, allocations: 1.255 MB / 496.5 MB, free: 7.977 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006004/0.4463, allocations: 3.838 MB / 0.4887 GB, free: 3.973 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.775e-05/0.4464, allocations: 46.89 kB / 0.4887 GB, free: 3.918 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 3.667e-06/0.4464, allocations: 0 / 0.4887 GB, free: 3.918 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04579/0.4922, allocations: 9.292 MB / 0.4978 GB, free: 10.54 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001299/0.4924, allocations: 195.9 kB / 0.498 GB, free: 10.3 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004454/0.4968, allocations: 3.035 MB / 0.5009 GB, free: 7.25 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001789/0.497, allocations: 37.7 kB / 0.501 GB, free: 7.207 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001945/0.499, allocations: 2.539 MB / 0.5034 GB, free: 4.641 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005697/0.4996, allocations: 0.508 MB / 0.5039 GB, free: 4.129 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001351/0.5009, allocations: 1.1 MB / 0.505 GB, free: 3.02 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.5011, allocations: 301.1 kB / 0.5053 GB, free: 2.723 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00237/0.5034, allocations: 1.607 MB / 0.5069 GB, free: 1.109 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006384/0.5098, allocations: 5.173 MB / 0.5119 GB, free: 10.13 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009584/0.5195, allocations: 7.326 MB / 0.5191 GB, free: 1.023 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001091/0.5196, allocations: 40 kB / 0.5191 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01192/0.5316, allocations: 6.466 MB / 0.5254 GB, free: 10.52 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.349e-05/0.5317, allocations: 60 kB / 0.5255 GB, free: 10.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001471/0.5319, allocations: 128.8 kB / 0.5256 GB, free: 10.33 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001816/0.532, allocations: 171.9 kB / 0.5258 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004895/0.537, allocations: 1.458 MB / 0.5272 GB, free: 8.703 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002044/0.5372, allocations: 243.5 kB / 0.5274 GB, free: 8.465 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00365/0.5408, allocations: 0.7639 MB / 0.5282 GB, free: 7.695 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005321/0.5414, allocations: 344 kB / 0.5285 GB, free: 7.359 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.002286/0.5437, allocations: 1.575 MB / 0.53 GB, free: 5.77 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004651/0.5442, allocations: 274.2 kB / 0.5303 GB, free: 5.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005462/0.5447, allocations: 315.3 kB / 0.5306 GB, free: 5.191 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.743e-05/0.5447, allocations: 19.94 kB / 0.5306 GB, free: 5.172 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/0.5448, allocations: 0 / 0.5306 GB, free: 5.172 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.5448, allocations: 3.984 kB / 0.5306 GB, free: 5.168 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005691/0.5505, allocations: 3.4 MB / 0.5339 GB, free: 1.707 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.5505, allocations: 8 kB / 0.534 GB, free: 1.699 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002289/0.5528, allocations: 407.5 kB / 0.5343 GB, free: 1.301 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.11e-05/0.5528, allocations: 4 kB / 0.5343 GB, free: 1.297 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.244e-05/0.5529, allocations: 35.97 kB / 0.5344 GB, free: 1.262 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-05/0.5529, allocations: 7.984 kB / 0.5344 GB, free: 1.254 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.553, allocations: 4 kB / 0.5344 GB, free: 1.25 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2296/0.7826, allocations: 2.812 MB / 0.5371 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005762/0.7832, allocations: 313.9 kB / 0.5374 GB, free: 123.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002441/0.7834, allocations: 31.33 kB / 0.5375 GB, free: 123.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008632/0.7843, allocations: 44.02 kB / 0.5375 GB, free: 123.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/0.7844, allocations: 55.36 kB / 0.5376 GB, free: 123.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.049e-05/0.7845, allocations: 37.66 kB / 0.5376 GB, free: 123.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002612/0.7871, allocations: 1.839 MB / 0.5394 GB, free: 122.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.7872, allocations: 3.938 kB / 0.5394 GB, free: 122.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003396/0.7906, allocations: 0.8237 MB / 0.5402 GB, free: 122.6 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.002968/0.7935, allocations: 3.447 MB / 0.5436 GB, free: 120.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004668/0.7982, allocations: 3.619 MB / 0.5471 GB, free: 119.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.391e-06/0.7982, allocations: 3.812 kB / 0.5471 GB, free: 119.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007083/0.799, allocations: 0.7227 MB / 0.5478 GB, free: 119.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001438/0.8004, allocations: 268.4 kB / 0.5481 GB, free: 119.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0323/0.8327, allocations: 34.3 MB / 0.5816 GB, free: 82.87 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001693/0.8345, allocations: 2.383 MB / 0.5839 GB, free: 80.46 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00285/0.8373, allocations: 1.633 MB / 0.5855 GB, free: 78.82 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001349/0.8387, allocations: 1.214 MB / 0.5867 GB, free: 77.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.242e-06/0.8387, allocations: 0 / 0.5867 GB, free: 77.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07191/0.9106, allocations: 43.29 MB / 0.6289 GB, free: 34.73 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.68/16.59, allocations: 4.312 kB / 0.629 GB, free: 34.73 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1)