Running command: "" <> buildModelFMU(ThermalSeparation.Examples.Testing.Pump.PumpSystem,fileNamePrefix="ThermalSeparation_ThermalSeparation_Examples_Testing_Pump_PumpSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ThermalSeparation): time 2.885/2.885, allocations: 260.3 MB / 272.9 MB, free: 6.406 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.716e-05/3.724e-05, allocations: 4 kB / 334.9 MB, free: 8.312 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4049/0.405, allocations: 58.97 MB / 393.9 MB, free: 1.293 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7591/1.164, allocations: 245.3 MB / 0.6242 GB, free: 21.52 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/1.164, allocations: 58.03 kB / 0.6243 GB, free: 21.49 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2274/1.392, allocations: 59.11 MB / 0.682 GB, free: 3.82 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.274e-06/1.392, allocations: 0 / 0.682 GB, free: 3.82 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.67e-05/1.392, allocations: 40 kB / 0.6821 GB, free: 3.781 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 546 * Number of variables: 546 Notification: Performance of Generate backend data structure: time 0.007999/1.4, allocations: 1.795 MB / 0.6838 GB, free: 1.93 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/1.4, allocations: 8.031 kB / 0.6838 GB, free: 1.922 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00115/1.401, allocations: 291.9 kB / 0.6841 GB, free: 1.625 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006448/1.402, allocations: 201.6 kB / 0.6843 GB, free: 1.426 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00242/1.404, allocations: 0.7619 MB / 0.685 GB, free: 0.625 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001677/1.405, allocations: 152 kB / 0.6852 GB, free: 484 kB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001354/1.406, allocations: 263.9 kB / 0.6854 GB, free: 220 kB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008326/1.414, allocations: 2.603 MB / 0.688 GB, free: 13.41 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.765e-05/1.414, allocations: 11.88 kB / 0.688 GB, free: 13.4 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003595/1.415, allocations: 84 kB / 0.6881 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002315/1.415, allocations: 123.5 kB / 0.6882 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007465/1.423, allocations: 2.037 MB / 0.6902 GB, free: 11.16 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02241/1.445, allocations: 10.33 MB / 0.7003 GB, free: 428 kB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004349/1.449, allocations: 2.741 MB / 0.7029 GB, free: 13.22 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001859/1.451, allocations: 0.5815 MB / 0.7035 GB, free: 12.62 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001709/1.452, allocations: 29.06 kB / 0.7035 GB, free: 12.59 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.013e-05/1.452, allocations: 51.56 kB / 0.7036 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=114): time 4.909e-06/1.452, allocations: 3.938 kB / 0.7036 GB, free: 12.53 MB / 0.5105 GB Notification: Performance of matching and sorting (n=139): time 0.03371/1.485, allocations: 6.658 MB / 0.7101 GB, free: 5.785 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02181/1.507, allocations: 6.045 MB / 0.716 GB, free: 15.4 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002089/1.509, allocations: 0.9531 MB / 0.7169 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003535/1.51, allocations: 57.77 kB / 0.717 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008494/1.511, allocations: 0.9317 MB / 0.7179 GB, free: 13.41 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00072/1.511, allocations: 0.4892 MB / 0.7184 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002165/1.512, allocations: 48 kB / 0.7184 GB, free: 12.87 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003013/1.512, allocations: 443.5 kB / 0.7188 GB, free: 12.43 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002496/1.514, allocations: 0.8637 MB / 0.7197 GB, free: 11.56 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003306/1.518, allocations: 1.808 MB / 0.7214 GB, free: 9.289 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00332/1.521, allocations: 1.203 MB / 0.7226 GB, free: 8.09 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.787e-05/1.521, allocations: 12 kB / 0.7226 GB, free: 8.078 MB / 0.5261 GB Notification: Performance of matching and sorting (n=301) (initialization): time 0.01498/1.536, allocations: 3.486 MB / 0.726 GB, free: 4.574 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 4.946e-05/1.536, allocations: 16 kB / 0.726 GB, free: 4.559 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-05/1.536, allocations: 36 kB / 0.7261 GB, free: 4.523 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008085/1.544, allocations: 0.9391 MB / 0.727 GB, free: 3.574 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00582/1.55, allocations: 0.5343 MB / 0.7275 GB, free: 3.039 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4032/1.953, allocations: 6.061 MB / 0.7334 GB, free: 140.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005975/1.96, allocations: 227.8 kB / 0.7336 GB, free: 140.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006804/1.96, allocations: 120.8 kB / 0.7338 GB, free: 140.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 147 * Number of states: 0 () * Number of discrete variables: 5 (tank.mediumLiquidIn.state.phase,tank.mediumLiquid.state.phase,sourceLiquid.medium.state.phase,idealPumpControlledVdot.mediumLiquidIn.state.phase,idealPumpControlledVdot.mediumLiquid.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 264 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,67.2%) 15} * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.00127/1.962, allocations: 259.9 kB / 0.734 GB, free: 140.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008558/1.962, allocations: 130.7 kB / 0.7341 GB, free: 140.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03288/1.995, allocations: 2.828 MB / 0.7369 GB, free: 140.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03429/2.03, allocations: 2.46 MB / 0.7393 GB, free: 140 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-05/2.03, allocations: 7.906 kB / 0.7393 GB, free: 140 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.739e-05/2.03, allocations: 7.688 kB / 0.7393 GB, free: 140 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02137/2.051, allocations: 6.009 MB / 0.7452 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.19e-05/2.051, allocations: 10.5 kB / 0.7452 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003338/2.055, allocations: 250.4 kB / 0.7454 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009823/2.065, allocations: 1.248 MB / 0.7466 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003703/2.065, allocations: 38.44 kB / 0.7467 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01307/2.078, allocations: 5.891 MB / 0.7524 GB, free: 136.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01456/2.093, allocations: 5.297 MB / 0.7576 GB, free: 133.7 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01462/2.107, allocations: 4.525 MB / 0.762 GB, free: 132.5 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000608/2.108, allocations: 212.7 kB / 0.7622 GB, free: 132.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003749/2.108, allocations: 41.58 kB / 0.7623 GB, free: 132.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00263/2.111, allocations: 138.5 kB / 0.7624 GB, free: 132.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004141/2.111, allocations: 116 kB / 0.7625 GB, free: 132.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001602/2.112, allocations: 50.89 kB / 0.7626 GB, free: 132.3 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001294/2.113, allocations: 0.6802 MB / 0.7632 GB, free: 132.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.91e-07/2.113, allocations: 3.5 kB / 0.7632 GB, free: 132.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004291/2.117, allocations: 0.5869 MB / 0.7638 GB, free: 132.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],tank.level) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(7,61.2%) 10} * Non-linear torn systems: 3 {1 3,6 7,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01531/2.133, allocations: 6.835 MB / 0.7705 GB, free: 127.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009375/2.142, allocations: 2.453 MB / 0.7729 GB, free: 127.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/2.142, allocations: 0 / 0.7729 GB, free: 127.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006244/2.148, allocations: 1.313 MB / 0.7742 GB, free: 126.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003364/2.152, allocations: 365.3 kB / 0.7745 GB, free: 126.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01245/2.164, allocations: 3.473 MB / 0.7779 GB, free: 124.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001918/2.166, allocations: 1.454 MB / 0.7793 GB, free: 124.1 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003969/2.17, allocations: 450.3 kB / 0.7797 GB, free: 124.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002051/2.172, allocations: 0.6512 MB / 0.7804 GB, free: 123.6 MB / 0.5261 GB Notification: Performance of SimCode: time 1.393e-06/2.172, allocations: 0 / 0.7804 GB, free: 123.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1339/2.306, allocations: 42.01 MB / 0.8214 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002717/2.306, allocations: 192.5 kB / 0.8216 GB, free: 113.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.033/6.339, allocations: 0 / 0.8216 GB, free: 113.5 MB / 0.5261 GB