Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.145/2.145, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.152e-05/3.174e-05, allocations: 4 kB / 292.2 MB, free: 8.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1161, allocations: 50.41 MB / 342.6 MB, free: 5.809 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.32/10.43, allocations: 3.161 GB / 3.495 GB, free: 35.01 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002673/10.43, allocations: 78.28 kB / 3.495 GB, free: 34.98 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 15.53/25.96, allocations: 3.108 GB / 6.604 GB, free: 40.19 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.919e-06/25.96, allocations: 0 / 6.604 GB, free: 40.19 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003666/25.96, allocations: 70.14 kB / 6.604 GB, free: 40.18 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.01923/25.98, allocations: 3.606 MB / 6.607 GB, free: 38.41 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/25.98, allocations: 9.562 kB / 6.607 GB, free: 38.41 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00187/25.98, allocations: 348.1 kB / 6.608 GB, free: 38.34 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002169/25.98, allocations: 311.7 kB / 6.608 GB, free: 38.2 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008799/25.99, allocations: 2.013 MB / 6.61 GB, free: 37.73 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003431/25.99, allocations: 221.7 kB / 6.61 GB, free: 37.67 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001197/25.99, allocations: 204.1 kB / 6.61 GB, free: 37.66 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009702/26, allocations: 3.289 MB / 6.614 GB, free: 37.18 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.065e-05/26, allocations: 8.812 kB / 6.614 GB, free: 37.18 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004706/26, allocations: 83.64 kB / 6.614 GB, free: 37.18 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003894/26, allocations: 202.5 kB / 6.614 GB, free: 37.18 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009762/26.01, allocations: 2.995 MB / 6.617 GB, free: 37.17 MB / 490.7 MB 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.04064/26.05, allocations: 12.43 MB / 6.629 GB, free: 32.17 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006522/26.06, allocations: 2.187 MB / 6.631 GB, free: 32.04 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003624/26.06, allocations: 1.342 MB / 6.632 GB, free: 32.02 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01463/26.08, allocations: 5.989 MB / 6.638 GB, free: 29.19 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.815e-05/26.08, allocations: 52.66 kB / 6.638 GB, free: 29.15 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001636/26.08, allocations: 193.2 kB / 6.638 GB, free: 29.05 MB / 490.7 MB Notification: Performance of pre-optimization done (n=172): time 7.684e-06/26.08, allocations: 0 / 6.638 GB, free: 29.05 MB / 490.7 MB Notification: Performance of matching and sorting (n=198): time 0.02644/26.11, allocations: 7.262 MB / 6.645 GB, free: 28.15 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.311e-05/26.11, allocations: 124.5 kB / 6.646 GB, free: 28.03 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003606/26.11, allocations: 1.657 MB / 6.647 GB, free: 27.79 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006672/26.11, allocations: 58.55 kB / 6.647 GB, free: 27.76 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000909/26.11, allocations: 1.046 MB / 6.648 GB, free: 27.35 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008654/26.11, allocations: 0.6833 MB / 6.649 GB, free: 26.91 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002543/26.11, allocations: 48.28 kB / 6.649 GB, free: 26.91 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001644/26.11, allocations: 396.3 kB / 6.649 GB, free: 26.61 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002982/26.12, allocations: 1.179 MB / 6.651 GB, free: 26.6 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006138/26.12, allocations: 1.687 MB / 6.652 GB, free: 26.04 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007294/26.13, allocations: 1.44 MB / 6.654 GB, free: 26.02 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.181e-05/26.13, allocations: 3.844 kB / 6.654 GB, free: 26.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.01381/26.14, allocations: 4.092 MB / 6.658 GB, free: 25.82 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001508/26.14, allocations: 5.89 MB / 6.663 GB, free: 19.67 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.277e-05/26.14, allocations: 17.44 kB / 6.663 GB, free: 19.67 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02397/26.17, allocations: 3.551 MB / 6.667 GB, free: 19.63 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002581/26.17, allocations: 316.5 kB / 6.667 GB, free: 19.63 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0105/26.18, allocations: 3.953 MB / 6.671 GB, free: 18.67 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004516/26.19, allocations: 199.6 kB / 6.671 GB, free: 18.61 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005112/26.19, allocations: 113 kB / 6.671 GB, free: 18.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/26.19, allocations: 3.406 kB / 6.671 GB, free: 18.6 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01075/26.2, allocations: 3.656 MB / 6.675 GB, free: 17.38 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.84e-05/26.2, allocations: 15.31 kB / 6.675 GB, free: 17.38 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01771/26.22, allocations: 2.886 MB / 6.678 GB, free: 16.99 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003161/26.22, allocations: 362.7 kB / 6.678 GB, free: 16.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008671/26.23, allocations: 3.436 MB / 6.681 GB, free: 15.47 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004356/26.23, allocations: 190.8 kB / 6.682 GB, free: 15.42 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006352/26.23, allocations: 107.8 kB / 6.682 GB, free: 15.4 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {18 107} Notification: Performance of prepare postOptimizeDAE: time 0.0009062/26.23, allocations: 229.7 kB / 6.682 GB, free: 15.22 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007963/26.23, allocations: 225.8 kB / 6.682 GB, free: 15.1 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01196/26.25, allocations: 3.891 MB / 6.686 GB, free: 13.71 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.415e-05/26.25, allocations: 25.91 kB / 6.686 GB, free: 13.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.769e-05/26.25, allocations: 4.531 kB / 6.686 GB, free: 13.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009168/26.26, allocations: 3.273 MB / 6.689 GB, free: 12.33 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01906/26.27, allocations: 6.333 MB / 6.695 GB, free: 9.934 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-05/26.27, allocations: 4.531 kB / 6.695 GB, free: 9.934 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004685/26.28, allocations: 325 kB / 6.696 GB, free: 9.906 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01141/26.29, allocations: 1.19 MB / 6.697 GB, free: 9.656 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007629/26.29, allocations: 76.22 kB / 6.697 GB, free: 9.625 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01195/26.3, allocations: 10.39 MB / 6.707 GB, free: 0.5391 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/26.3, allocations: 2.5 kB / 6.707 GB, free: 0.5391 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0169/26.32, allocations: 5.127 MB / 6.712 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003322/26.32, allocations: 0.6381 MB / 6.713 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001491/26.33, allocations: 54.06 kB / 6.713 GB, free: 14.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004208/26.33, allocations: 159.7 kB / 6.713 GB, free: 14.1 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000915/26.33, allocations: 178.2 kB / 6.713 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003645/26.33, allocations: 79.42 kB / 6.713 GB, free: 14.06 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003244/26.33, allocations: 1.27 MB / 6.714 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.022e-06/26.33, allocations: 0 / 6.714 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01023/26.34, allocations: 1.939 MB / 6.716 GB, free: 13.14 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.medium.T,tank.level,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 6,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,6 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.02367/26.37, allocations: 6.951 MB / 6.723 GB, free: 8.918 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02047/26.39, allocations: 4.888 MB / 6.728 GB, free: 4.586 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/26.39, allocations: 3.938 kB / 6.728 GB, free: 4.582 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007463/26.4, allocations: 2.165 MB / 6.73 GB, free: 2.586 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009114/26.41, allocations: 0.9567 MB / 6.731 GB, free: 1.914 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4404/26.85, allocations: 5.702 MB / 6.736 GB, free: 49.16 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003315/26.85, allocations: 1.931 MB / 6.738 GB, free: 48.41 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.00824/26.86, allocations: 1.194 MB / 6.739 GB, free: 48.39 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002881/26.86, allocations: 0.9863 MB / 6.74 GB, free: 48.39 MB / 0.4948 GB Notification: Performance of SimCode: time 1.923e-06/26.86, allocations: 1.062 kB / 6.74 GB, free: 48.39 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2475/27.11, allocations: 100.1 MB / 6.838 GB, free: 37.18 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002915/27.11, allocations: 170.9 kB / 6.838 GB, free: 36.96 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.541/34.65, allocations: 3.938 kB / 6.838 GB, free: 36.95 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat