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.799/3.799, allocations: 403.3 MB / 415.4 MB, free: 13 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.107e-05/4.105e-05, allocations: 4 kB / 0.4991 GB, free: 13.35 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6253/0.6254, allocations: 92.68 MB / 0.5896 GB, free: 14.39 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.261/1.886, allocations: 417.4 MB / 0.9973 GB, free: 5.016 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003243/1.887, allocations: 95.25 kB / 0.9974 GB, free: 4.965 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 3.272/5.159, allocations: 0.6463 GB / 1.644 GB, free: 29.63 MB / 0.7761 GB Notification: Performance of FrontEnd: time 2.354e-06/5.159, allocations: 0 / 1.644 GB, free: 29.63 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 0.0002243/5.159, allocations: 35.98 kB / 1.644 GB, free: 29.59 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.005032/5.164, allocations: 1.735 MB / 1.645 GB, free: 27.8 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 6.019e-05/5.164, allocations: 8.031 kB / 1.645 GB, free: 27.79 MB / 0.7761 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003918/5.165, allocations: 139.6 kB / 1.646 GB, free: 27.65 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00358/5.168, allocations: 401.5 kB / 1.646 GB, free: 27.25 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02593/5.194, allocations: 8.15 MB / 1.654 GB, free: 18.98 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.806e-05/5.194, allocations: 74 kB / 1.654 GB, free: 18.91 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002184/5.195, allocations: 88 kB / 1.654 GB, free: 18.82 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002338/5.197, allocations: 1.068 MB / 1.655 GB, free: 17.67 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.285e-05/5.197, allocations: 0 / 1.655 GB, free: 17.67 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001436/5.197, allocations: 43.95 kB / 1.655 GB, free: 17.63 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.381e-05/5.197, allocations: 27.98 kB / 1.655 GB, free: 17.6 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001767/5.199, allocations: 0.6715 MB / 1.656 GB, free: 16.93 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.009076/5.208, allocations: 5.757 MB / 1.661 GB, free: 10.83 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/5.209, allocations: 494.8 kB / 1.662 GB, free: 10.31 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000526/5.21, allocations: 261.9 kB / 1.662 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002864/5.213, allocations: 1.704 MB / 1.664 GB, free: 8.238 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007271/5.213, allocations: 389.1 kB / 1.664 GB, free: 7.828 MB / 0.7761 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006867/5.214, allocations: 99.16 kB / 1.664 GB, free: 7.73 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=47): time 3.346e-06/5.214, allocations: 0 / 1.664 GB, free: 7.73 MB / 0.7761 GB Notification: Performance of matching and sorting (n=47): time 0.001603/5.216, allocations: 0.6169 MB / 1.665 GB, free: 7.094 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.061e-05/5.216, allocations: 170.2 kB / 1.665 GB, free: 6.891 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002084/5.218, allocations: 1.129 MB / 1.666 GB, free: 5.754 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.0001209/5.218, allocations: 37.64 kB / 1.666 GB, free: 5.711 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006854/5.219, allocations: 0.6959 MB / 1.667 GB, free: 5.008 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001672/5.219, allocations: 157.7 kB / 1.667 GB, free: 4.852 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.852e-05/5.219, allocations: 16 kB / 1.667 GB, free: 4.836 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 8.018e-05/5.219, allocations: 337.9 kB / 1.667 GB, free: 4.5 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005225/5.22, allocations: 205.5 kB / 1.668 GB, free: 4.297 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006857/5.22, allocations: 0.5303 MB / 1.668 GB, free: 3.617 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006627/5.221, allocations: 322.6 kB / 1.668 GB, free: 3.297 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.435e-06/5.221, allocations: 0 / 1.668 GB, free: 3.297 MB / 0.7761 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002231/5.223, allocations: 0.8953 MB / 1.669 GB, free: 2.383 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.679/5.902, allocations: 3.844 MB / 1.673 GB, free: 109.6 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-05/5.902, allocations: 12.47 kB / 1.673 GB, free: 109.6 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007233/5.903, allocations: 86.03 kB / 1.673 GB, free: 109.6 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001589/5.905, allocations: 185.5 kB / 1.673 GB, free: 109.6 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009584/5.906, allocations: 1.13 MB / 1.674 GB, free: 108.6 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001926/5.908, allocations: 79.53 kB / 1.674 GB, free: 108.6 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002707/5.908, allocations: 47.7 kB / 1.675 GB, free: 108.6 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/5.908, allocations: 7.375 kB / 1.675 GB, free: 108.6 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002652/5.911, allocations: 0.7482 MB / 1.675 GB, free: 108.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.28e-05/5.911, allocations: 12.38 kB / 1.675 GB, free: 108.5 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005255/5.911, allocations: 84.25 kB / 1.675 GB, free: 108.5 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001405/5.913, allocations: 180.2 kB / 1.676 GB, free: 108.5 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007746/5.914, allocations: 1.131 MB / 1.677 GB, free: 107.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001643/5.915, allocations: 85.12 kB / 1.677 GB, free: 107.5 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001399/5.915, allocations: 49.23 kB / 1.677 GB, free: 107.5 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.0003824/5.916, allocations: 195.5 kB / 1.677 GB, free: 107.3 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003253/5.916, allocations: 143.6 kB / 1.677 GB, free: 107.3 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002472/5.919, allocations: 0.7317 MB / 1.678 GB, free: 107.2 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-05/5.919, allocations: 6.359 kB / 1.678 GB, free: 107.2 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/5.919, allocations: 1.5 kB / 1.678 GB, free: 107.2 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/5.919, allocations: 5.172 kB / 1.678 GB, free: 107.2 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004812/5.924, allocations: 1.913 MB / 1.68 GB, free: 106.7 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/5.924, allocations: 0.9375 kB / 1.68 GB, free: 106.7 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/5.925, allocations: 111.6 kB / 1.68 GB, free: 106.7 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004429/5.925, allocations: 79.38 kB / 1.68 GB, free: 106.7 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.038e-05/5.925, allocations: 17.88 kB / 1.68 GB, free: 106.7 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006962/5.926, allocations: 1.114 MB / 1.681 GB, free: 105.6 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/5.926, allocations: 4.953 kB / 1.681 GB, free: 105.6 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002024/5.928, allocations: 0.8573 MB / 1.682 GB, free: 105.4 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007228/5.929, allocations: 281.9 kB / 1.682 GB, free: 105.2 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002479/5.929, allocations: 13.53 kB / 1.682 GB, free: 105.2 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001507/5.93, allocations: 88.36 kB / 1.682 GB, free: 105.2 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/5.931, allocations: 31.91 kB / 1.682 GB, free: 105.2 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/5.931, allocations: 28.52 kB / 1.682 GB, free: 105.2 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.001971/5.933, allocations: 0.8771 MB / 1.683 GB, free: 105.1 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.423e-06/5.933, allocations: 0 / 1.683 GB, free: 105.1 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.003515/5.936, allocations: 0.7596 MB / 1.684 GB, free: 105 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.004033/5.94, allocations: 2.469 MB / 1.686 GB, free: 103.9 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.002747/5.943, allocations: 1.125 MB / 1.687 GB, free: 103.8 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/5.943, allocations: 0 / 1.687 GB, free: 103.8 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0007313/5.944, allocations: 347.2 kB / 1.688 GB, free: 103.7 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004683/5.949, allocations: 0.6369 MB / 1.688 GB, free: 103.7 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005604/5.954, allocations: 1.971 MB / 1.69 GB, free: 103.1 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008636/5.955, allocations: 1.247 MB / 1.691 GB, free: 102.4 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.003187/5.958, allocations: 440.5 kB / 1.692 GB, free: 102.4 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008917/5.959, allocations: 0.5106 MB / 1.692 GB, free: 102.4 MB / 0.7761 GB Notification: Performance of SimCode: time 1.312e-06/5.959, allocations: 0 / 1.692 GB, free: 102.4 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1164/6.076, allocations: 48.66 MB / 1.74 GB, free: 101 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002666/6.076, allocations: 271.2 kB / 1.74 GB, free: 100.7 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.028/11.1, allocations: 3.938 kB / 1.74 GB, free: 100.7 MB / 0.7761 GB