Running command: "" <> buildModelFMU(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,fileNamePrefix="Buildings_6_0_0_Buildings_Experimental_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.058/4.058, allocations: 432.7 MB / 444.9 MB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.622e-05/3.622e-05, allocations: 3.781 kB / 0.5338 GB, free: 12.25 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/0.227, allocations: 98.72 MB / 0.6302 GB, free: 6.133 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.255/1.482, allocations: 426.7 MB / 1.047 GB, free: 1.941 MB / 0.7917 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003473/1.483, allocations: 98.84 kB / 1.047 GB, free: 1.891 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 3.441/4.924, allocations: 0.6683 GB / 1.715 GB, free: 9.605 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.785e-06/4.924, allocations: 4 kB / 1.715 GB, free: 9.602 MB / 0.823 GB Notification: Performance of Transformations before backend: time 0.0002526/4.924, allocations: 43.92 kB / 1.715 GB, free: 9.559 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 0.004914/4.929, allocations: 1.707 MB / 1.717 GB, free: 7.789 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/4.929, allocations: 11.97 kB / 1.717 GB, free: 7.777 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003129/4.93, allocations: 131.8 kB / 1.717 GB, free: 7.641 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003403/4.933, allocations: 389.6 kB / 1.718 GB, free: 7.258 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.705/5.638, allocations: 8.258 MB / 1.726 GB, free: 122 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001367/5.638, allocations: 65.91 kB / 1.726 GB, free: 122 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003027/5.639, allocations: 90.25 kB / 1.726 GB, free: 122 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002712/5.641, allocations: 0.9426 MB / 1.727 GB, free: 121.8 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.792e-05/5.641, allocations: 2.344 kB / 1.727 GB, free: 121.8 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001512/5.642, allocations: 36.47 kB / 1.727 GB, free: 121.8 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.304e-05/5.642, allocations: 24.44 kB / 1.727 GB, free: 121.8 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002272/5.644, allocations: 0.6331 MB / 1.727 GB, free: 121.8 MB / 0.823 GB Warning: The model contains alias variables with conflicting start and/or 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.01113/5.655, allocations: 4.703 MB / 1.732 GB, free: 119.5 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/5.657, allocations: 441.9 kB / 1.732 GB, free: 119.5 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005632/5.657, allocations: 224 kB / 1.733 GB, free: 119.5 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003806/5.661, allocations: 1.649 MB / 1.734 GB, free: 118.4 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008514/5.662, allocations: 355.5 kB / 1.734 GB, free: 118.3 MB / 0.823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009223/5.663, allocations: 83.58 kB / 1.735 GB, free: 118.3 MB / 0.823 GB Notification: Performance of pre-optimization done (n=45): time 4.088e-06/5.663, allocations: 3.312 kB / 1.735 GB, free: 118.3 MB / 0.823 GB Notification: Performance of matching and sorting (n=45): time 0.002098/5.665, allocations: 0.6235 MB / 1.735 GB, free: 118.2 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.282e-05/5.665, allocations: 117.4 kB / 1.735 GB, free: 118 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002868/5.668, allocations: 1.095 MB / 1.736 GB, free: 117.9 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002543/5.668, allocations: 39.67 kB / 1.736 GB, free: 117.9 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008753/5.669, allocations: 0.6601 MB / 1.737 GB, free: 117.7 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002804/5.669, allocations: 148 kB / 1.737 GB, free: 117.6 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.14e-05/5.669, allocations: 15.09 kB / 1.737 GB, free: 117.6 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001029/5.67, allocations: 331.9 kB / 1.738 GB, free: 117.3 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006077/5.67, allocations: 197.9 kB / 1.738 GB, free: 117.3 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008265/5.671, allocations: 484.6 kB / 1.738 GB, free: 117 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007486/5.672, allocations: 297.8 kB / 1.738 GB, free: 116.9 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.161e-05/5.672, allocations: 2.406 kB / 1.738 GB, free: 116.9 MB / 0.823 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.002668/5.675, allocations: 0.8342 MB / 1.739 GB, free: 116.8 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006983/5.675, allocations: 2.792 MB / 1.742 GB, free: 113.9 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.663e-05/5.675, allocations: 6.672 kB / 1.742 GB, free: 113.9 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006362/5.676, allocations: 87.06 kB / 1.742 GB, free: 113.9 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001335/5.677, allocations: 156.6 kB / 1.742 GB, free: 113.9 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008536/5.678, allocations: 1.125 MB / 1.743 GB, free: 112.9 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001919/5.68, allocations: 82.16 kB / 1.743 GB, free: 112.9 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001678/5.68, allocations: 44.91 kB / 1.743 GB, free: 112.9 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/5.68, allocations: 6.062 kB / 1.743 GB, free: 112.9 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002105/5.682, allocations: 0.681 MB / 1.744 GB, free: 112.8 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.019e-05/5.683, allocations: 10.66 kB / 1.744 GB, free: 112.8 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005037/5.683, allocations: 84.11 kB / 1.744 GB, free: 112.8 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/5.684, allocations: 149.5 kB / 1.744 GB, free: 112.8 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007423/5.685, allocations: 1.123 MB / 1.745 GB, free: 111.8 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00169/5.687, allocations: 78.91 kB / 1.746 GB, free: 111.8 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001439/5.687, allocations: 41.42 kB / 1.746 GB, free: 111.8 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QHea.a,QHea.b,QHea.last,$PRE.QHea.nextEvent,QHea.nextEvent,QHea.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 65 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0004169/5.687, allocations: 187.2 kB / 1.746 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003361/5.688, allocations: 136.9 kB / 1.746 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002786/5.69, allocations: 0.8231 MB / 1.747 GB, free: 111.5 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.856e-05/5.69, allocations: 6.422 kB / 1.747 GB, free: 111.5 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/5.69, allocations: 2.047 kB / 1.747 GB, free: 111.5 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/5.69, allocations: 7.875 kB / 1.747 GB, free: 111.5 MB / 0.823 GB Warning: The model contains alias variables with conflicting start and/or 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 postOpt removeSimpleEquations (simulation): time 0.005007/5.695, allocations: 1.88 MB / 1.749 GB, free: 111 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/5.696, allocations: 0 / 1.749 GB, free: 111 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008931/5.696, allocations: 101.3 kB / 1.749 GB, free: 111 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004397/5.697, allocations: 71.78 kB / 1.749 GB, free: 111 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.663e-05/5.697, allocations: 24.25 kB / 1.749 GB, free: 111 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006941/5.698, allocations: 1.108 MB / 1.75 GB, free: 109.9 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/5.698, allocations: 4.406 kB / 1.75 GB, free: 109.9 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002311/5.7, allocations: 0.9526 MB / 1.751 GB, free: 109.5 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008573/5.701, allocations: 291.6 kB / 1.751 GB, free: 109.4 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002914/5.701, allocations: 9.906 kB / 1.751 GB, free: 109.4 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001535/5.703, allocations: 89.05 kB / 1.751 GB, free: 109.3 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001612/5.703, allocations: 37.44 kB / 1.751 GB, free: 109.3 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001113/5.703, allocations: 31.52 kB / 1.751 GB, free: 109.3 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.001849/5.705, allocations: 0.8653 MB / 1.752 GB, free: 109.2 MB / 0.823 GB Notification: Performance of sort global known variables: time 7.61e-07/5.705, allocations: 2.344 kB / 1.752 GB, free: 109.2 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.003838/5.709, allocations: 0.7436 MB / 1.753 GB, free: 109.2 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QHea.a,QHea.b,QHea.last,QHea.nextEvent,QHea.nextEventScaled) * Number of discrete states: 6 (QHea.nextEvent,QHea.last,QHea.nextEventScaled,QHea.b,QHea.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.004613/5.714, allocations: 2.602 MB / 1.755 GB, free: 108 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.003057/5.717, allocations: 1.08 MB / 1.756 GB, free: 107.8 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 7.014e-06/5.717, allocations: 1.812 kB / 1.756 GB, free: 107.8 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0008145/5.718, allocations: 355.5 kB / 1.757 GB, free: 107.8 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005194/5.723, allocations: 0.6197 MB / 1.757 GB, free: 107.8 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006686/5.729, allocations: 1.981 MB / 1.759 GB, free: 107.2 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001/5.731, allocations: 1.233 MB / 1.76 GB, free: 106.5 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.003258/5.734, allocations: 411.8 kB / 1.761 GB, free: 106.5 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001063/5.735, allocations: 0.5202 MB / 1.761 GB, free: 106.5 MB / 0.823 GB Notification: Performance of SimCode: time 1.342e-06/5.735, allocations: 0 / 1.761 GB, free: 106.5 MB / 0.823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.167/5.902, allocations: 48.79 MB / 1.809 GB, free: 105.1 MB / 0.823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003274/5.902, allocations: 276.9 kB / 1.809 GB, free: 104.7 MB / 0.823 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.68/10.58, allocations: 0 / 1.809 GB, free: 104.7 MB / 0.823 GB