Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001675/0.001675, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002112/0.002112, allocations: 200.7 kB / 18.74 MB, free: 4.184 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.479/1.479, allocations: 227.7 MB / 247.2 MB, free: 10.14 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.00202/0.00202, allocations: 71.88 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2726/0.2746, allocations: 50.54 MB / 409.1 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006155/0.2808, allocations: 4.839 MB / 413.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00284/0.2837, allocations: 1.382 MB / 415.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003288/0.2841, allocations: 11.94 kB / 415.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004145/0.2845, allocations: 162.6 kB / 415.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000812/0.2854, allocations: 341.4 kB / 415.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005281/0.2859, allocations: 207.7 kB / 416 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001161/0.2871, allocations: 1.023 MB / 417 MB, free: 9.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004418/0.2875, allocations: 297.9 kB / 417.3 MB, free: 9.055 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005316/0.2881, allocations: 414.5 kB / 417.7 MB, free: 8.648 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005108/0.2886, allocations: 450.1 kB / 418.1 MB, free: 8.207 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001262/0.2887, allocations: 92 kB / 418.2 MB, free: 8.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001555/0.2889, allocations: 92 kB / 418.3 MB, free: 8.027 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.2891, allocations: 191.4 kB / 418.5 MB, free: 7.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004475/0.2895, allocations: 477.8 kB / 419 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00115/0.2907, allocations: 1.077 MB / 420.1 MB, free: 6.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.485e-06/0.2907, allocations: 0 / 420.1 MB, free: 6.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2907, allocations: 3.938 kB / 420.1 MB, free: 6.289 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.921e-05/0.2907, allocations: 0 / 420.1 MB, free: 6.289 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002403/0.2931, allocations: 1.251 MB / 421.3 MB, free: 4.973 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.2932, allocations: 12.03 kB / 421.3 MB, free: 4.961 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001753/0.2934, allocations: 115.9 kB / 421.4 MB, free: 4.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000188/0.2936, allocations: 104.4 kB / 421.5 MB, free: 4.738 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009114/0.2945, allocations: 0.5167 MB / 422.1 MB, free: 4.176 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001683/0.2947, allocations: 105.3 kB / 422.2 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.412e-05/0.2948, allocations: 56.38 kB / 422.2 MB, free: 4.008 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.2962, allocations: 0.8049 MB / 423 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.944e-05/0.2962, allocations: 0 / 423 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.458e-05/0.2963, allocations: 28 kB / 423 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.2963, allocations: 12 kB / 423.1 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001251/0.2975, allocations: 0.5164 MB / 423.6 MB, free: 2.543 MB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003479/0.301, allocations: 2.168 MB / 425.7 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/0.3024, allocations: 0.5347 MB / 426.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006078/0.303, allocations: 254.4 kB / 426.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.211e-05/0.3031, allocations: 17.62 kB / 426.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007473/0.3038, allocations: 330.9 kB / 426.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.736e-06/0.3038, allocations: 0 / 426.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.005065/0.3089, allocations: 1.49 MB / 428.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004315/0.3094, allocations: 0.8194 MB / 429.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007775/0.3102, allocations: 0.5862 MB / 429.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.108e-05/0.3103, allocations: 45.69 kB / 429.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003108/0.3106, allocations: 349.1 kB / 430.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001894/0.3108, allocations: 206.2 kB / 430.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002174/0.311, allocations: 130.2 kB / 430.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001953/0.3112, allocations: 378.8 kB / 430.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006006/0.3118, allocations: 205 kB / 431 MB, free: 10.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009797/0.3128, allocations: 0.5247 MB / 431.6 MB, free: 9.977 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001262/0.3141, allocations: 0.5614 MB / 432.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.3141, allocations: 0 / 432.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002424/0.3165, allocations: 0.9094 MB / 433 MB, free: 8.438 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.176e-05/0.3166, allocations: 59.39 kB / 433.1 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.3166, allocations: 8.031 kB / 433.1 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007365/0.3174, allocations: 217.5 kB / 433.3 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006292/0.318, allocations: 115.8 kB / 433.4 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009544/0.3276, allocations: 4.605 MB / 438 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001283/0.3289, allocations: 83.62 kB / 438.1 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.065e-05/0.329, allocations: 27.98 kB / 438.1 MB, free: 3.043 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (oneWayValve.backward,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(9,3), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0005382/0.3295, allocations: 205.8 kB / 438.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002321/0.3298, allocations: 91.42 kB / 438.4 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002319/0.33, allocations: 78.84 kB / 438.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.3301, allocations: 8 kB / 438.5 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3301, allocations: 0 / 438.5 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003378/0.3335, allocations: 1.046 MB / 439.6 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004601/0.3381, allocations: 1.547 MB / 441.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/0.3381, allocations: 4 kB / 441.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008962/0.339, allocations: 111.8 kB / 441.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005912/0.3397, allocations: 173.6 kB / 441.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.302e-05/0.3397, allocations: 12 kB / 441.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005281/0.345, allocations: 3.929 MB / 445.3 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.345, allocations: 3.938 kB / 445.3 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002485/0.3475, allocations: 1.032 MB / 446.4 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000373/0.3479, allocations: 216.5 kB / 446.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.348, allocations: 16 kB / 446.6 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005857/0.3486, allocations: 43.95 kB / 446.6 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.3488, allocations: 56.73 kB / 446.7 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.902e-05/0.3488, allocations: 19.98 kB / 446.7 MB, free: 9.934 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005234/0.3494, allocations: 419 kB / 447.1 MB, free: 9.527 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3494, allocations: 0 / 447.1 MB, free: 9.527 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00086/0.3502, allocations: 255.8 kB / 447.4 MB, free: 9.277 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,3), (1,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002831/0.3531, allocations: 1.592 MB / 449 MB, free: 7.648 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002236/0.3554, allocations: 1.023 MB / 450 MB, free: 6.574 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.3554, allocations: 0 / 450 MB, free: 6.574 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001032/0.3564, allocations: 0.5438 MB / 450.5 MB, free: 6.008 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.3575, allocations: 211.1 kB / 450.7 MB, free: 5.805 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01095/0.3684, allocations: 6.141 MB / 456.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005713/0.369, allocations: 0.92 MB / 457.8 MB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004218/0.3695, allocations: 81.22 kB / 457.9 MB, free: 14.47 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003682/0.3699, allocations: 263.3 kB / 458.1 MB, free: 14.21 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3699, allocations: 0 / 458.1 MB, free: 14.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07657/0.4464, allocations: 22.78 MB / 480.9 MB, free: 7.844 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/13.72, allocations: 15.47 kB / 480.9 MB, free: 7.832 MB / 398.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1)