Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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.TwoTanks,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001734/0.001734, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001997/0.001997, allocations: 205.2 kB / 18.74 MB, free: 4.312 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.401/1.401, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.001885/0.001885, allocations: 59.91 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2681, allocations: 50.56 MB / 409.1 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003812/0.2719, allocations: 2.748 MB / 411.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.2733, allocations: 0.8606 MB / 412.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.2735, allocations: 8 kB / 412.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002523/0.2738, allocations: 71.41 kB / 412.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002799/0.274, allocations: 130.9 kB / 412.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002168/0.2743, allocations: 91.83 kB / 413 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004934/0.2748, allocations: 442.3 kB / 413.4 MB, free: 13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001863/0.275, allocations: 99.34 kB / 413.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001794/0.2752, allocations: 159.4 kB / 413.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002444/0.2754, allocations: 179.2 kB / 413.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.006e-05/0.2755, allocations: 36 kB / 413.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.864e-05/0.2755, allocations: 40 kB / 413.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.922e-05/0.2756, allocations: 71.75 kB / 414 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001945/0.2758, allocations: 195 kB / 414.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004841/0.2763, allocations: 445.3 kB / 414.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2763, allocations: 0 / 414.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2763, allocations: 0 / 414.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.2764, allocations: 3.938 kB / 414.6 MB, free: 11.8 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001131/0.2775, allocations: 0.6871 MB / 415.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.2776, allocations: 12.03 kB / 415.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.531e-05/0.2777, allocations: 63.23 kB / 415.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.526e-05/0.2777, allocations: 48.66 kB / 415.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004282/0.2782, allocations: 307.6 kB / 415.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.982e-05/0.2783, allocations: 54.81 kB / 415.8 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.661e-05/0.2783, allocations: 28.33 kB / 415.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000534/0.2789, allocations: 335.3 kB / 416.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.2789, allocations: 0 / 416.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.574e-05/0.2789, allocations: 12 kB / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.279, allocations: 4 kB / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004439/0.2794, allocations: 210.1 kB / 416.3 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001406/0.2808, allocations: 0.8227 MB / 417.2 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005757/0.2814, allocations: 275 kB / 417.4 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002235/0.2816, allocations: 112.8 kB / 417.5 MB, free: 8.648 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.386e-05/0.2817, allocations: 8 kB / 417.5 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.2817, allocations: 38.56 kB / 417.6 MB, free: 8.594 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 3.377e-06/0.2817, allocations: 96 / 417.6 MB, free: 8.594 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001055/0.2828, allocations: 499.2 kB / 418.1 MB, free: 8.078 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001801/0.283, allocations: 316.4 kB / 418.4 MB, free: 7.695 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000302/0.2833, allocations: 283 kB / 418.7 MB, free: 7.406 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.484e-05/0.2833, allocations: 33.7 kB / 418.7 MB, free: 7.367 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.2835, allocations: 180.7 kB / 418.9 MB, free: 7.188 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.958e-05/0.2836, allocations: 111 kB / 419 MB, free: 7.078 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.2837, allocations: 69.7 kB / 419 MB, free: 7.004 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.2839, allocations: 346.7 kB / 419.4 MB, free: 6.656 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000218/0.2841, allocations: 91.95 kB / 419.5 MB, free: 6.566 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003141/0.2844, allocations: 212.2 kB / 419.7 MB, free: 6.312 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004585/0.2849, allocations: 263.5 kB / 419.9 MB, free: 6.039 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2849, allocations: 4 kB / 419.9 MB, free: 6.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006555/0.2856, allocations: 361.8 kB / 420.3 MB, free: 5.668 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.668e-05/0.2856, allocations: 29.7 kB / 420.3 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.2856, allocations: 4 kB / 420.3 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001607/0.2858, allocations: 40.77 kB / 420.4 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009795/0.2868, allocations: 159.9 kB / 420.5 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003925/0.2907, allocations: 3.232 MB / 423.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002798/0.291, allocations: 31.97 kB / 423.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.947e-05/0.2911, allocations: 16 kB / 423.8 MB, free: 1.867 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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): 1 system {(3,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002021/0.2913, allocations: 158.8 kB / 424 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.585e-05/0.2913, allocations: 31.91 kB / 424 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.339e-05/0.2914, allocations: 43.02 kB / 424 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.2914, allocations: 4 kB / 424 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.2915, allocations: 3.938 kB / 424 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007281/0.2922, allocations: 0.6579 MB / 424.7 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004668/0.2927, allocations: 393.2 kB / 425.1 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.2927, allocations: 0 / 425.1 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0013/0.294, allocations: 211.9 kB / 425.3 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.02e-05/0.2941, allocations: 24.84 kB / 425.3 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.34e-05/0.2941, allocations: 8 kB / 425.3 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003381/0.2975, allocations: 3.034 MB / 428.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2975, allocations: 0 / 428.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008488/0.2984, allocations: 0.5131 MB / 428.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001568/0.2985, allocations: 140.8 kB / 429 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.394e-05/0.2986, allocations: 11.94 kB / 429 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000252/0.2988, allocations: 19.92 kB / 429 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.656e-05/0.2989, allocations: 19.97 kB / 429.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/0.299, allocations: 11.98 kB / 429.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002257/0.2992, allocations: 206 kB / 429.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2992, allocations: 0 / 429.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004291/0.2996, allocations: 107.9 kB / 429.4 MB, free: 11.81 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001242/0.3009, allocations: 1.057 MB / 430.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001586/0.3025, allocations: 0.5412 MB / 431 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3025, allocations: 0 / 431 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001377/0.3039, allocations: 398.3 kB / 431.4 MB, free: 9.754 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005041/0.3044, allocations: 92.47 kB / 431.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004946/0.3094, allocations: 3.415 MB / 434.9 MB, free: 6.137 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004261/0.3098, allocations: 0.7876 MB / 435.6 MB, free: 5.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001711/0.31, allocations: 38.95 kB / 435.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000162/0.3101, allocations: 107.4 kB / 435.8 MB, free: 5.18 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3102, allocations: 0 / 435.8 MB, free: 5.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03824/0.3484, allocations: 9.616 MB / 445.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/12.55, allocations: 7.703 kB / 445.4 MB, free: 11.8 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0006 Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1)