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.PointGravity.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.PointGravity,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001879/0.001879, allocations: 122.2 kB / 17.79 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.002119/0.002119, allocations: 197.2 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.461/1.461, allocations: 227.7 MB / 247.2 MB, free: 10.21 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.001887/0.001887, allocations: 67.89 kB / 358.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2815, allocations: 50.56 MB / 409.1 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.008796/0.2903, allocations: 6.949 MB / 416 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006045/0.2964, allocations: 3.111 MB / 419.1 MB, free: 7.305 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008673/0.2973, allocations: 31.94 kB / 419.2 MB, free: 7.273 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001603/0.299, allocations: 0.6614 MB / 419.8 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002996/0.302, allocations: 1.362 MB / 421.2 MB, free: 5.242 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.303, allocations: 0.4913 MB / 421.7 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004205/0.3072, allocations: 3.21 MB / 424.9 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007903/0.308, allocations: 447.1 kB / 425.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001103/0.3091, allocations: 0.7822 MB / 426.1 MB, free: 308 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001577/0.3107, allocations: 1.211 MB / 427.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000358/0.3111, allocations: 132 kB / 427.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001844/0.3129, allocations: 0.932 MB / 428.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001185/0.3141, allocations: 1.071 MB / 429.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001464/0.3156, allocations: 1.215 MB / 430.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005413/0.321, allocations: 4.025 MB / 434.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3211, allocations: 0 / 434.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.3211, allocations: 0 / 434.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001015/0.3212, allocations: 4 kB / 434.7 MB, free: 7.684 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.007611/0.3288, allocations: 3.282 MB / 438 MB, free: 4.336 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.3289, allocations: 8.031 kB / 438 MB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005942/0.3295, allocations: 433.4 kB / 438.4 MB, free: 3.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008734/0.3382, allocations: 2.05 MB / 440.5 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004232/0.3425, allocations: 2.054 MB / 442.5 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001171/0.3426, allocations: 110.6 kB / 442.6 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009402/0.3436, allocations: 311.5 kB / 442.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01566/0.3593, allocations: 8.215 MB / 451.1 MB, free: 6.539 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-05/0.3594, allocations: 39.64 kB / 451.2 MB, free: 6.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002835/0.3597, allocations: 79.89 kB / 451.3 MB, free: 6.422 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002378/0.3621, allocations: 1.393 MB / 452.7 MB, free: 5.023 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0192/0.3813, allocations: 9.542 MB / 462.2 MB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03925/0.4206, allocations: 30.5 MB / 492.7 MB, free: 12.13 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01223/0.4329, allocations: 4.386 MB / 497.1 MB, free: 7.586 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003376/0.4363, allocations: 2.109 MB / 499.2 MB, free: 5.461 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001149/0.4365, allocations: 19.98 kB / 499.2 MB, free: 5.441 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.97e-05/0.4365, allocations: 50.48 kB / 499.3 MB, free: 5.383 MB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 5.17e-06/0.4365, allocations: 0 / 499.3 MB, free: 5.383 MB / 414.1 MB Notification: Performance of matching and sorting (n=136): time 0.04767/0.4842, allocations: 18.46 MB / 0.5056 GB, free: 2.645 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002704/0.487, allocations: 3.243 MB / 0.5088 GB, free: 15.07 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004432/0.4914, allocations: 3.004 MB / 0.5117 GB, free: 12.04 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006189/0.4921, allocations: 41.7 kB / 0.5117 GB, free: 12 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001826/0.4939, allocations: 2.163 MB / 0.5138 GB, free: 9.812 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000881/0.4948, allocations: 0.5854 MB / 0.5144 GB, free: 9.223 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001497/0.4963, allocations: 1.012 MB / 0.5154 GB, free: 8.199 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.4964, allocations: 305.1 kB / 0.5157 GB, free: 7.898 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003916/0.5003, allocations: 2.574 MB / 0.5182 GB, free: 5.316 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006369/0.5067, allocations: 5.528 MB / 0.5236 GB, free: 14.31 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01199/0.5187, allocations: 8.519 MB / 0.5319 GB, free: 4.332 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000111/0.5189, allocations: 28 kB / 0.532 GB, free: 4.305 MB / 462.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.2545/0.7734, allocations: 9.876 MB / 0.5416 GB, free: 120.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.201e-05/0.7735, allocations: 54.25 kB / 0.5416 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01077/0.7843, allocations: 5.106 MB / 0.5466 GB, free: 119.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008288/0.7926, allocations: 2.35 MB / 0.5489 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003896/0.7966, allocations: 1.23 MB / 0.5501 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007129/0.8037, allocations: 8.693 MB / 0.5586 GB, free: 111.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004904/0.8087, allocations: 0.5673 MB / 0.5592 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008219/0.8095, allocations: 315.6 kB / 0.5595 GB, free: 110.6 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 475 * Number of states: 0 () * Number of discrete variables: 18 (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 (584): * Single equations (assignments): 569 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002249/0.8118, allocations: 1.412 MB / 0.5609 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000614/0.8124, allocations: 266.2 kB / 0.5611 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007953/0.8132, allocations: 415.2 kB / 0.5615 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01026/0.8235, allocations: 5.01 MB / 0.5664 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.377e-05/0.8235, allocations: 9.359 kB / 0.5664 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.237e-05/0.8236, allocations: 3.984 kB / 0.5664 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006951/0.8305, allocations: 5.361 MB / 0.5716 GB, free: 98.39 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.246e-06/0.8306, allocations: 0 / 0.5716 GB, free: 98.39 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001639/0.8322, allocations: 367.4 kB / 0.572 GB, free: 98.04 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007804/0.84, allocations: 2.393 MB / 0.5743 GB, free: 95.63 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003879/0.8404, allocations: 54.23 kB / 0.5744 GB, free: 95.58 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007128/0.8476, allocations: 9.446 MB / 0.5836 GB, free: 85.64 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001329/0.8489, allocations: 3.063 MB / 0.5866 GB, free: 82.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01416/0.8631, allocations: 8.794 MB / 0.5952 GB, free: 73.47 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000631/0.8638, allocations: 336 kB / 0.5955 GB, free: 73.14 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004839/0.8643, allocations: 43.92 kB / 0.5955 GB, free: 73.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002/0.8663, allocations: 311.4 kB / 0.5958 GB, free: 72.79 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004145/0.8667, allocations: 107.6 kB / 0.5959 GB, free: 72.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001603/0.8669, allocations: 55.95 kB / 0.596 GB, free: 72.63 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002205/0.8691, allocations: 1.867 MB / 0.5978 GB, free: 70.76 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.8691, allocations: 0 / 0.5978 GB, free: 70.76 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0037/0.8728, allocations: 0.9493 MB / 0.5988 GB, free: 69.82 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[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 (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01442/0.8872, allocations: 9.421 MB / 0.608 GB, free: 60.34 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01016/0.8974, allocations: 7.271 MB / 0.6151 GB, free: 52.95 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.8975, allocations: 0 / 0.6151 GB, free: 52.95 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005287/0.9028, allocations: 3.653 MB / 0.6186 GB, free: 49.17 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002123/0.9049, allocations: 306.3 kB / 0.6189 GB, free: 48.87 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06569/0.9706, allocations: 45.2 MB / 0.6631 GB, free: 15.37 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00259/0.9733, allocations: 2.29 MB / 0.6653 GB, free: 13.05 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004175/0.9775, allocations: 1.663 MB / 0.6669 GB, free: 11.38 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001985/0.9795, allocations: 1.163 MB / 0.6681 GB, free: 10.22 MB / 478.1 MB Notification: Performance of SimCode: time 1.012e-06/0.9795, allocations: 0 / 0.6681 GB, free: 10.22 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1269/1.106, allocations: 62.6 MB / 0.7292 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.44/19.55, allocations: 8.25 kB / 0.7292 GB, free: 12.03 MB / 0.5294 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1)