Running command: "" <> buildModelFMU(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,fileNamePrefix="Buildings_latest_Buildings_Experimental_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.295/4.295, allocations: 464.6 MB / 476.8 MB, free: 2.223 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.491e-05/3.523e-05, allocations: 4 kB / 0.5732 GB, free: 5.656 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.249, allocations: 107.2 MB / 0.6778 GB, free: 10.31 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.023/2.272, allocations: 435.6 MB / 1.103 GB, free: 257.4 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003361/2.273, allocations: 93.3 kB / 1.103 GB, free: 257.4 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 3.584/5.856, allocations: 0.6744 GB / 1.778 GB, free: 150.7 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.134e-06/5.857, allocations: 0 / 1.778 GB, free: 150.7 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0003574/5.857, allocations: 33.84 kB / 1.778 GB, free: 150.7 MB / 0.8855 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.006511/5.863, allocations: 1.714 MB / 1.779 GB, free: 150.2 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.961e-05/5.864, allocations: 14.06 kB / 1.779 GB, free: 150.2 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005082/5.864, allocations: 130.3 kB / 1.78 GB, free: 150.2 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003137/5.867, allocations: 346.4 kB / 1.78 GB, free: 150.1 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03239/5.9, allocations: 8.318 MB / 1.788 GB, free: 149.6 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001652/5.9, allocations: 69.22 kB / 1.788 GB, free: 149.6 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003468/5.9, allocations: 90.02 kB / 1.788 GB, free: 149.6 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002858/5.903, allocations: 0.9614 MB / 1.789 GB, free: 149.4 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.465e-05/5.903, allocations: 4.359 kB / 1.789 GB, free: 149.4 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001602/5.903, allocations: 37.47 kB / 1.789 GB, free: 149.4 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.039e-05/5.903, allocations: 19.97 kB / 1.789 GB, free: 149.4 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002171/5.906, allocations: 0.6331 MB / 1.79 GB, free: 149.4 MB / 0.8855 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.01193/5.918, allocations: 4.735 MB / 1.794 GB, free: 147.2 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/5.919, allocations: 424.8 kB / 1.795 GB, free: 147.2 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006563/5.92, allocations: 243 kB / 1.795 GB, free: 147.2 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004339/5.924, allocations: 1.684 MB / 1.797 GB, free: 146.1 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009187/5.925, allocations: 376.5 kB / 1.797 GB, free: 146 MB / 0.8855 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001022/5.926, allocations: 82.25 kB / 1.797 GB, free: 146 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=47): time 4.658e-06/5.926, allocations: 0 / 1.797 GB, free: 146 MB / 0.8855 GB Notification: Performance of matching and sorting (n=47): time 0.002473/5.929, allocations: 0.6826 MB / 1.798 GB, free: 145.8 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.86e-05/5.929, allocations: 112.4 kB / 1.798 GB, free: 145.7 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002939/5.932, allocations: 1.104 MB / 1.799 GB, free: 145.6 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0002879/5.932, allocations: 38.14 kB / 1.799 GB, free: 145.5 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009043/5.933, allocations: 0.6448 MB / 1.8 GB, free: 145.4 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003258/5.933, allocations: 159.1 kB / 1.8 GB, free: 145.3 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.608e-05/5.933, allocations: 9.375 kB / 1.8 GB, free: 145.3 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.924e-05/5.933, allocations: 333.8 kB / 1.8 GB, free: 145 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006435/5.934, allocations: 207.3 kB / 1.8 GB, free: 145 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008355/5.935, allocations: 490.5 kB / 1.801 GB, free: 144.6 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007748/5.936, allocations: 296.9 kB / 1.801 GB, free: 144.6 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.697e-05/5.936, allocations: 3.781 kB / 1.801 GB, free: 144.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.002814/5.939, allocations: 0.8813 MB / 1.802 GB, free: 144.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.000655/5.939, allocations: 2.782 MB / 1.805 GB, free: 141.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.552e-05/5.939, allocations: 6.406 kB / 1.805 GB, free: 141.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006607/5.94, allocations: 89.31 kB / 1.805 GB, free: 141.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/5.941, allocations: 158.1 kB / 1.805 GB, free: 141.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000833/5.942, allocations: 1.131 MB / 1.806 GB, free: 140.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002053/5.944, allocations: 88.52 kB / 1.806 GB, free: 140.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000243/5.945, allocations: 45.06 kB / 1.806 GB, free: 140.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/5.945, allocations: 3.406 kB / 1.806 GB, free: 140.6 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002357/5.947, allocations: 0.7448 MB / 1.807 GB, free: 140.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.109e-05/5.947, allocations: 6.625 kB / 1.807 GB, free: 140.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004723/5.948, allocations: 84.75 kB / 1.807 GB, free: 140.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/5.949, allocations: 150.6 kB / 1.807 GB, free: 140.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007667/5.95, allocations: 1.127 MB / 1.808 GB, free: 139.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001838/5.951, allocations: 81.62 kB / 1.808 GB, free: 139.4 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00019/5.952, allocations: 41.33 kB / 1.808 GB, free: 139.4 MB / 0.8855 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 (70): * Single equations (assignments): 66 * 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.0004399/5.952, allocations: 181.3 kB / 1.808 GB, free: 139.3 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004845/5.953, allocations: 138.3 kB / 1.809 GB, free: 139.2 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002955/5.956, allocations: 0.8905 MB / 1.809 GB, free: 139.1 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.076e-05/5.956, allocations: 8.594 kB / 1.809 GB, free: 139.1 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.788e-06/5.956, allocations: 0 / 1.809 GB, free: 139.1 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/5.956, allocations: 8.062 kB / 1.809 GB, free: 139.1 MB / 0.8855 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.005838/5.962, allocations: 1.984 MB / 1.811 GB, free: 138.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/5.962, allocations: 2.094 kB / 1.811 GB, free: 138.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009363/5.963, allocations: 101.1 kB / 1.811 GB, free: 138.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004558/5.963, allocations: 74.45 kB / 1.812 GB, free: 138.6 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/5.963, allocations: 25.38 kB / 1.812 GB, free: 138.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007716/5.964, allocations: 1.117 MB / 1.813 GB, free: 137.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/5.964, allocations: 1.281 kB / 1.813 GB, free: 137.6 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002667/5.967, allocations: 1.063 MB / 1.814 GB, free: 137.1 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001001/5.968, allocations: 293.5 kB / 1.814 GB, free: 136.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003441/5.968, allocations: 14.5 kB / 1.814 GB, free: 136.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001558/5.97, allocations: 84.88 kB / 1.814 GB, free: 136.9 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/5.97, allocations: 38.28 kB / 1.814 GB, free: 136.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/5.97, allocations: 34.84 kB / 1.814 GB, free: 136.9 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.002149/5.972, allocations: 0.8593 MB / 1.815 GB, free: 136.8 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.533e-06/5.972, allocations: 0 / 1.815 GB, free: 136.8 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.004378/5.977, allocations: 0.7747 MB / 1.816 GB, free: 136.8 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (45): * Single equations (assignments): 38 * 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.005347/5.982, allocations: 2.852 MB / 1.819 GB, free: 135.4 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002974/5.985, allocations: 1.096 MB / 1.82 GB, free: 135.2 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 9.909e-06/5.985, allocations: 3.25 kB / 1.82 GB, free: 135.2 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0009318/5.986, allocations: 373.8 kB / 1.82 GB, free: 135.2 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005404/5.991, allocations: 0.6195 MB / 1.821 GB, free: 135.1 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007504/5.999, allocations: 2.008 MB / 1.823 GB, free: 134.6 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009228/6, allocations: 1.236 MB / 1.824 GB, free: 133.9 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.003245/6.003, allocations: 423.1 kB / 1.824 GB, free: 133.9 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001055/6.004, allocations: 0.5063 MB / 1.825 GB, free: 133.9 MB / 0.8855 GB Notification: Performance of SimCode: time 1.403e-06/6.004, allocations: 4.719 kB / 1.825 GB, free: 133.9 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1304/6.135, allocations: 49.07 MB / 1.873 GB, free: 132.5 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002397/6.135, allocations: 255.2 kB / 1.873 GB, free: 132.1 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.923/11.06, allocations: 0 / 1.873 GB, free: 132.1 MB / 0.8855 GB