Running command: "" <> buildModelFMU(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,fileNamePrefix="Buildings_5_0_1_Buildings_Experimental_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.772/3.772, allocations: 403.3 MB / 415.4 MB, free: 12.98 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.662e-05/3.694e-05, allocations: 4 kB / 0.4991 GB, free: 13.35 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6425/0.6425, allocations: 92.67 MB / 0.5896 GB, free: 14.46 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.16/1.803, allocations: 417.4 MB / 0.9973 GB, free: 5.172 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003333/1.803, allocations: 94.81 kB / 0.9974 GB, free: 5.121 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 3.231/5.034, allocations: 0.6463 GB / 1.644 GB, free: 30.05 MB / 0.7761 GB Notification: Performance of FrontEnd: time 2.044e-06/5.034, allocations: 0 / 1.644 GB, free: 30.05 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 0.0002391/5.034, allocations: 39.92 kB / 1.644 GB, free: 30.01 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.004867/5.039, allocations: 1.73 MB / 1.645 GB, free: 28.22 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/5.039, allocations: 8.031 kB / 1.645 GB, free: 28.21 MB / 0.7761 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003126/5.04, allocations: 147.6 kB / 1.646 GB, free: 28.06 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003468/5.043, allocations: 397.5 kB / 1.646 GB, free: 27.67 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02559/5.069, allocations: 8.142 MB / 1.654 GB, free: 19.41 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.613e-05/5.069, allocations: 74 kB / 1.654 GB, free: 19.33 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002509/5.069, allocations: 88 kB / 1.654 GB, free: 19.25 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002452/5.071, allocations: 1.079 MB / 1.655 GB, free: 18.08 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.467e-05/5.072, allocations: 0 / 1.655 GB, free: 18.08 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001424/5.072, allocations: 43.95 kB / 1.655 GB, free: 18.04 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-05/5.072, allocations: 24 kB / 1.655 GB, free: 18.02 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001812/5.074, allocations: 0.7026 MB / 1.656 GB, free: 17.31 MB / 0.7761 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.00912/5.083, allocations: 5.745 MB / 1.661 GB, free: 11.23 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001281/5.084, allocations: 0.5058 MB / 1.662 GB, free: 10.69 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005176/5.085, allocations: 255.4 kB / 1.662 GB, free: 10.43 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003038/5.088, allocations: 1.708 MB / 1.664 GB, free: 8.613 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007205/5.088, allocations: 385.2 kB / 1.664 GB, free: 8.207 MB / 0.7761 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007131/5.089, allocations: 95.19 kB / 1.664 GB, free: 8.113 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=47): time 3.437e-06/5.089, allocations: 0 / 1.664 GB, free: 8.113 MB / 0.7761 GB Notification: Performance of matching and sorting (n=47): time 0.001679/5.091, allocations: 0.6286 MB / 1.665 GB, free: 7.465 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.36e-05/5.091, allocations: 162.2 kB / 1.665 GB, free: 7.27 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002139/5.093, allocations: 1.121 MB / 1.666 GB, free: 6.141 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.0001617/5.093, allocations: 41.69 kB / 1.666 GB, free: 6.094 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007103/5.094, allocations: 0.692 MB / 1.667 GB, free: 5.395 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001729/5.094, allocations: 165.7 kB / 1.667 GB, free: 5.23 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.845e-05/5.094, allocations: 12 kB / 1.667 GB, free: 5.219 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 8.58e-05/5.094, allocations: 342.2 kB / 1.667 GB, free: 4.879 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005314/5.095, allocations: 209.5 kB / 1.668 GB, free: 4.672 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006914/5.096, allocations: 0.5277 MB / 1.668 GB, free: 3.996 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006546/5.096, allocations: 318.7 kB / 1.668 GB, free: 3.68 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/5.096, allocations: 0 / 1.668 GB, free: 3.68 MB / 0.7761 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002311/5.099, allocations: 0.9259 MB / 1.669 GB, free: 2.734 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.5844/5.683, allocations: 3.842 MB / 1.673 GB, free: 110 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.48e-05/5.683, allocations: 9.375 kB / 1.673 GB, free: 110 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000716/5.684, allocations: 91.14 kB / 1.673 GB, free: 109.9 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00165/5.686, allocations: 183.4 kB / 1.673 GB, free: 109.9 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009627/5.687, allocations: 1.131 MB / 1.674 GB, free: 108.9 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001889/5.688, allocations: 79.09 kB / 1.675 GB, free: 108.9 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002084/5.689, allocations: 48.75 kB / 1.675 GB, free: 108.9 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/5.689, allocations: 7.031 kB / 1.675 GB, free: 108.9 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002705/5.691, allocations: 0.7713 MB / 1.675 GB, free: 108.9 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.167e-05/5.692, allocations: 14 kB / 1.675 GB, free: 108.9 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005136/5.692, allocations: 85.91 kB / 1.675 GB, free: 108.8 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/5.693, allocations: 180.8 kB / 1.676 GB, free: 108.8 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007935/5.694, allocations: 1.13 MB / 1.677 GB, free: 107.8 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001767/5.696, allocations: 86.41 kB / 1.677 GB, free: 107.8 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001533/5.696, allocations: 45.89 kB / 1.677 GB, free: 107.8 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (79): * Single equations (assignments): 75 * 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.0004284/5.697, allocations: 197.1 kB / 1.677 GB, free: 107.7 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003357/5.697, allocations: 138.3 kB / 1.677 GB, free: 107.7 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002488/5.7, allocations: 0.7319 MB / 1.678 GB, free: 107.6 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.986e-05/5.7, allocations: 6.688 kB / 1.678 GB, free: 107.6 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/5.7, allocations: 9.984 kB / 1.678 GB, free: 107.6 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/5.7, allocations: 3.203 kB / 1.678 GB, free: 107.6 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005292/5.705, allocations: 1.918 MB / 1.68 GB, free: 107 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/5.705, allocations: 1.281 kB / 1.68 GB, free: 107 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/5.706, allocations: 110 kB / 1.68 GB, free: 107 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004886/5.707, allocations: 79.83 kB / 1.68 GB, free: 107 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.559e-05/5.707, allocations: 17.11 kB / 1.68 GB, free: 107 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007195/5.707, allocations: 1.116 MB / 1.681 GB, free: 106 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/5.707, allocations: 0.9375 kB / 1.681 GB, free: 106 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002207/5.71, allocations: 0.8576 MB / 1.682 GB, free: 105.7 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008729/5.711, allocations: 280.3 kB / 1.682 GB, free: 105.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002838/5.711, allocations: 18.27 kB / 1.682 GB, free: 105.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001539/5.712, allocations: 84.56 kB / 1.682 GB, free: 105.5 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001481/5.713, allocations: 32 kB / 1.682 GB, free: 105.5 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/5.713, allocations: 33.48 kB / 1.682 GB, free: 105.5 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.002176/5.715, allocations: 0.8751 MB / 1.683 GB, free: 105.4 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7.31e-07/5.715, allocations: 0 / 1.683 GB, free: 105.4 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.003674/5.719, allocations: 0.7569 MB / 1.684 GB, free: 105.4 MB / 0.7761 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): 37 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * 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.004312/5.723, allocations: 2.458 MB / 1.686 GB, free: 104.2 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.002911/5.726, allocations: 1.152 MB / 1.687 GB, free: 104.1 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/5.726, allocations: 0.8594 kB / 1.687 GB, free: 104.1 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0008304/5.727, allocations: 345.7 kB / 1.688 GB, free: 104 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005124/5.732, allocations: 0.6436 MB / 1.688 GB, free: 104 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006526/5.738, allocations: 1.979 MB / 1.69 GB, free: 103.5 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008616/5.739, allocations: 1.244 MB / 1.692 GB, free: 102.8 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.003436/5.743, allocations: 431.4 kB / 1.692 GB, free: 102.8 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001019/5.744, allocations: 0.5108 MB / 1.692 GB, free: 102.8 MB / 0.7761 GB Notification: Performance of SimCode: time 1.092e-06/5.744, allocations: 0 / 1.692 GB, free: 102.8 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.123/5.867, allocations: 48.74 MB / 1.74 GB, free: 101.5 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003343/5.867, allocations: 267 kB / 1.74 GB, free: 101.1 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.769/10.64, allocations: 2.438 kB / 1.74 GB, free: 101.1 MB / 0.7761 GB