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={"dynamic"}) Notification: Performance of loadModel(Buildings): time 4.719/4.719, allocations: 404.1 MB / 411.3 MB, free: 400 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.343e-05/2.349e-05, allocations: 0 / 0.4945 GB, free: 1.312 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8259/0.826, allocations: 92.69 MB / 0.585 GB, free: 2.316 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.403/2.229, allocations: 416.8 MB / 0.992 GB, free: 12.96 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004484/2.229, allocations: 91.14 kB / 0.9921 GB, free: 12.91 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.657/6.886, allocations: 0.6429 GB / 1.635 GB, free: 47.12 MB / 0.7761 GB Notification: Performance of FrontEnd: time 2.956e-06/6.886, allocations: 4 kB / 1.635 GB, free: 47.12 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 0.0004478/6.887, allocations: 35.05 kB / 1.635 GB, free: 47.09 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.007921/6.895, allocations: 1.737 MB / 1.637 GB, free: 45.3 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 7.118e-05/6.895, allocations: 12.03 kB / 1.637 GB, free: 45.29 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006258/6.901, allocations: 405.5 kB / 1.637 GB, free: 44.89 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04609/6.947, allocations: 8.104 MB / 1.645 GB, free: 36.74 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001524/6.948, allocations: 36 kB / 1.645 GB, free: 36.7 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005109/6.948, allocations: 52 kB / 1.645 GB, free: 36.65 MB / 0.7761 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003699/6.952, allocations: 0.6521 MB / 1.646 GB, free: 36 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00435/6.956, allocations: 0.9389 MB / 1.647 GB, free: 34.97 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.2e-05/6.956, allocations: 15.89 kB / 1.647 GB, free: 34.96 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000249/6.957, allocations: 4 kB / 1.647 GB, free: 34.95 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.754e-05/6.957, allocations: 27.98 kB / 1.647 GB, free: 34.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.01614/6.973, allocations: 5.556 MB / 1.652 GB, free: 29.05 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002196/6.975, allocations: 0.5175 MB / 1.653 GB, free: 28.5 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009408/6.976, allocations: 249.9 kB / 1.653 GB, free: 28.24 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005475/6.982, allocations: 1.673 MB / 1.655 GB, free: 26.46 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001136/6.983, allocations: 365.2 kB / 1.655 GB, free: 26.08 MB / 0.7761 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001134/6.984, allocations: 67.42 kB / 1.655 GB, free: 26.01 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=47): time 7.063e-06/6.984, allocations: 7.938 kB / 1.655 GB, free: 26 MB / 0.7761 GB Notification: Performance of matching and sorting (n=47): time 0.004685/6.989, allocations: 0.627 MB / 1.656 GB, free: 25.36 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.964e-05/6.989, allocations: 162.2 kB / 1.656 GB, free: 25.16 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003877/6.993, allocations: 0.9775 MB / 1.657 GB, free: 24.18 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.0002672/6.993, allocations: 33.69 kB / 1.657 GB, free: 24.14 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.001388/6.995, allocations: 0.7029 MB / 1.657 GB, free: 23.43 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004057/6.995, allocations: 153.8 kB / 1.658 GB, free: 23.27 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/6.995, allocations: 0 / 1.658 GB, free: 23.27 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001466/6.995, allocations: 337.9 kB / 1.658 GB, free: 22.94 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009412/6.996, allocations: 205.5 kB / 1.658 GB, free: 22.74 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001201/6.998, allocations: 0.5183 MB / 1.659 GB, free: 22.07 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002751/7, allocations: 347.1 kB / 1.659 GB, free: 21.73 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.237e-05/7, allocations: 0 / 1.659 GB, free: 21.73 MB / 0.7761 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.005629/7.006, allocations: 0.8786 MB / 1.66 GB, free: 20.84 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.001298/7.007, allocations: 3.83 MB / 1.664 GB, free: 16.77 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.657e-05/7.008, allocations: 12 kB / 1.664 GB, free: 16.75 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007698/7.008, allocations: 81.77 kB / 1.664 GB, free: 16.67 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002412/7.011, allocations: 183.7 kB / 1.664 GB, free: 16.49 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001659/7.012, allocations: 1.151 MB / 1.665 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003027/7.016, allocations: 71.91 kB / 1.665 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004187/7.016, allocations: 47.97 kB / 1.665 GB, free: 15.17 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/7.016, allocations: 4 kB / 1.665 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005244/7.021, allocations: 0.7043 MB / 1.666 GB, free: 14.45 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.257e-05/7.021, allocations: 8 kB / 1.666 GB, free: 14.45 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006617/7.022, allocations: 85.78 kB / 1.666 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002471/7.025, allocations: 171.7 kB / 1.666 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001632/7.026, allocations: 1.148 MB / 1.667 GB, free: 12.99 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002943/7.029, allocations: 64.06 kB / 1.667 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003492/7.03, allocations: 43.98 kB / 1.667 GB, free: 12.88 MB / 0.7761 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: subSta.pum.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real 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.0006579/7.03, allocations: 175.7 kB / 1.667 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004529/7.035, allocations: 0.6267 MB / 1.668 GB, free: 12.06 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005592/7.036, allocations: 130.4 kB / 1.668 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004665/7.04, allocations: 0.6917 MB / 1.669 GB, free: 11.22 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.962e-05/7.04, allocations: 11.98 kB / 1.669 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.499e-05/7.04, allocations: 3.953 kB / 1.669 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.05e-05/7.04, allocations: 0 / 1.669 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008323/7.049, allocations: 1.755 MB / 1.671 GB, free: 9.387 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.685e-05/7.049, allocations: 4 kB / 1.671 GB, free: 9.383 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001864/7.051, allocations: 107.8 kB / 1.671 GB, free: 9.277 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000751/7.052, allocations: 65.75 kB / 1.671 GB, free: 9.207 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001578/7.052, allocations: 15.98 kB / 1.671 GB, free: 9.191 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001489/7.053, allocations: 1.128 MB / 1.672 GB, free: 8.012 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-05/7.053, allocations: 128 / 1.672 GB, free: 8.012 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003935/7.057, allocations: 0.814 MB / 1.673 GB, free: 7.145 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001904/7.059, allocations: 275.4 kB / 1.673 GB, free: 6.855 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008785/7.06, allocations: 4 kB / 1.673 GB, free: 6.852 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003014/7.063, allocations: 79.86 kB / 1.673 GB, free: 6.773 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002789/7.064, allocations: 31.95 kB / 1.673 GB, free: 6.742 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002092/7.064, allocations: 35.98 kB / 1.673 GB, free: 6.707 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.002994/7.067, allocations: 0.7448 MB / 1.674 GB, free: 5.961 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.393e-06/7.067, allocations: 0 / 1.674 GB, free: 5.961 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.006655/7.074, allocations: 0.7404 MB / 1.674 GB, free: 5.219 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.007692/7.081, allocations: 2.356 MB / 1.677 GB, free: 2.816 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.004846/7.086, allocations: 1.099 MB / 1.678 GB, free: 1.695 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.387e-05/7.086, allocations: 4.25 kB / 1.678 GB, free: 1.691 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.001505/7.088, allocations: 355.4 kB / 1.678 GB, free: 1.332 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007766/7.096, allocations: 0.5481 MB / 1.679 GB, free: 0.7891 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9042/8, allocations: 1.902 MB / 1.681 GB, free: 117 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00181/8.002, allocations: 1.251 MB / 1.682 GB, free: 116.3 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.005537/8.007, allocations: 408.9 kB / 1.682 GB, free: 116.3 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002475/8.01, allocations: 0.5078 MB / 1.683 GB, free: 116.3 MB / 0.7761 GB Notification: Performance of SimCode: time 2.104e-06/8.01, allocations: 4.938 kB / 1.683 GB, free: 116.3 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3173/8.327, allocations: 39.42 MB / 1.721 GB, free: 115.7 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002988/8.328, allocations: 214.6 kB / 1.721 GB, free: 115.4 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.455/13.78, allocations: 3.938 kB / 1.721 GB, free: 115.4 MB / 0.7761 GB