Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_FixedInitial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.948/1.948, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.575e-05/3.591e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1126, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.978/8.09, allocations: 2.56 GB / 2.874 GB, free: 10.85 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003274/8.091, allocations: 77.14 kB / 2.874 GB, free: 10.81 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.502/13.59, allocations: 0.9967 GB / 3.871 GB, free: 25.04 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.907e-06/13.59, allocations: 3.531 kB / 3.871 GB, free: 25.04 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003757/13.59, allocations: 74.45 kB / 3.871 GB, free: 25.02 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 670 * Number of variables: 670 Notification: Performance of Generate backend data structure: time 0.02209/13.62, allocations: 4.275 MB / 3.875 GB, free: 22.99 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.711e-05/13.62, allocations: 11.34 kB / 3.875 GB, free: 22.99 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001937/13.62, allocations: 413.2 kB / 3.875 GB, free: 22.93 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01199/13.63, allocations: 0.9914 MB / 3.876 GB, free: 22.77 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009933/13.64, allocations: 2.257 MB / 3.878 GB, free: 22.2 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005206/13.64, allocations: 296.4 kB / 3.879 GB, free: 22.13 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001417/13.64, allocations: 245.3 kB / 3.879 GB, free: 22.12 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0154/13.66, allocations: 4.473 MB / 3.883 GB, free: 21.5 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001078/13.66, allocations: 6.938 kB / 3.883 GB, free: 21.5 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005398/13.66, allocations: 112.1 kB / 3.883 GB, free: 21.5 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004445/13.66, allocations: 222.8 kB / 3.884 GB, free: 21.48 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01442/13.67, allocations: 4.048 MB / 3.888 GB, free: 21.42 MB / 474.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.04287/13.72, allocations: 19.04 MB / 3.906 GB, free: 10.41 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009763/13.73, allocations: 2.783 MB / 3.909 GB, free: 9.422 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0044/13.73, allocations: 1.479 MB / 3.91 GB, free: 8.883 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0543/13.78, allocations: 17.06 MB / 3.927 GB, free: 13.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.665e-05/13.78, allocations: 56.56 kB / 3.927 GB, free: 13.23 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002591/13.79, allocations: 233.5 kB / 3.927 GB, free: 13.02 MB / 490.7 MB Notification: Performance of pre-optimization done (n=194): time 6.302e-06/13.79, allocations: 0 / 3.927 GB, free: 13.02 MB / 490.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pump.medium.p 2: tank.medium.h 3: heater.mediums[1].p 4: pump.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=215): time 0.0777/13.86, allocations: 13.12 MB / 3.94 GB, free: 2.367 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/13.86, allocations: 128.8 kB / 3.94 GB, free: 2.215 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004573/13.87, allocations: 1.657 MB / 3.942 GB, free: 0.6875 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007931/13.87, allocations: 65.7 kB / 3.942 GB, free: 0.6172 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.417/14.29, allocations: 1.063 MB / 3.943 GB, free: 41.35 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001483/14.29, allocations: 0.7338 MB / 3.944 GB, free: 41.12 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003387/14.29, allocations: 46.59 kB / 3.944 GB, free: 41.12 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002469/14.29, allocations: 410 kB / 3.944 GB, free: 40.8 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00443/14.29, allocations: 1.323 MB / 3.945 GB, free: 40.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005061/14.3, allocations: 1.82 MB / 3.947 GB, free: 40.27 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005231/14.3, allocations: 1.536 MB / 3.949 GB, free: 40.25 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.951e-05/14.3, allocations: 4.438 kB / 3.949 GB, free: 40.25 MB / 490.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01393/14.32, allocations: 3.918 MB / 3.952 GB, free: 40.07 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001169/14.32, allocations: 5.322 MB / 3.958 GB, free: 34.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.073e-05/14.32, allocations: 13.47 kB / 3.958 GB, free: 34.54 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007768/14.33, allocations: 1.141 MB / 3.959 GB, free: 34.47 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005109/14.33, allocations: 0.5312 MB / 3.959 GB, free: 34.47 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006929/14.34, allocations: 5.704 MB / 3.965 GB, free: 30.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00572/14.35, allocations: 310.3 kB / 3.965 GB, free: 30.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00105/14.35, allocations: 121.3 kB / 3.965 GB, free: 30.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/14.35, allocations: 6.125 kB / 3.965 GB, free: 30.3 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01377/14.36, allocations: 3.495 MB / 3.969 GB, free: 30.18 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.624e-05/14.36, allocations: 13 kB / 3.969 GB, free: 30.18 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003138/14.36, allocations: 0.625 MB / 3.969 GB, free: 30.12 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005415/14.37, allocations: 0.5876 MB / 3.97 GB, free: 30.12 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009451/14.38, allocations: 8.436 MB / 3.978 GB, free: 23.54 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004245/14.38, allocations: 315.5 kB / 3.978 GB, free: 23.53 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005139/14.38, allocations: 113.7 kB / 3.979 GB, free: 23.53 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 19 (radiator.state_b.phase,radiator.state_a.phase,heater.state_b.phase,heater.state_a.phase,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.state_b.phase,pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 257 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 5,1 1,2 7,1 1,4 14,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001/14.38, allocations: 255.1 kB / 3.979 GB, free: 23.42 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008027/14.39, allocations: 235.1 kB / 3.979 GB, free: 23.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01853/14.4, allocations: 9.386 MB / 3.988 GB, free: 22.58 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001341/14.4, allocations: 109.6 kB / 3.988 GB, free: 22.58 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/14.4, allocations: 0 / 3.988 GB, free: 22.58 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01505/14.42, allocations: 8.254 MB / 3.996 GB, free: 21.66 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.031/14.45, allocations: 13.6 MB / 4.01 GB, free: 20.78 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-05/14.45, allocations: 2.844 kB / 4.01 GB, free: 20.78 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003819/14.45, allocations: 406.9 kB / 4.01 GB, free: 20.78 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009973/14.46, allocations: 2.677 MB / 4.013 GB, free: 20.64 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007894/14.46, allocations: 74.14 kB / 4.013 GB, free: 20.64 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007853/14.47, allocations: 6.929 MB / 4.019 GB, free: 16.45 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/14.47, allocations: 3.719 kB / 4.019 GB, free: 16.45 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02244/14.5, allocations: 9.967 MB / 4.029 GB, free: 15.62 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00329/14.5, allocations: 0.8324 MB / 4.03 GB, free: 15.27 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001106/14.5, allocations: 53.44 kB / 4.03 GB, free: 15.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004856/14.5, allocations: 264.5 kB / 4.03 GB, free: 15.25 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001052/14.51, allocations: 197.1 kB / 4.031 GB, free: 15.25 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004217/14.51, allocations: 83.98 kB / 4.031 GB, free: 15.25 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003404/14.51, allocations: 1.314 MB / 4.032 GB, free: 15.09 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.333e-06/14.51, allocations: 3.656 kB / 4.032 GB, free: 15.09 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0169/14.53, allocations: 3.072 MB / 4.035 GB, free: 14.96 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (tank.medium.h,tank.level,heater.mediums[1].p,heater.mediums[1].h,radiator.mediums[1].p,radiator.mediums[1].h,pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h) * Number of discrete variables: 58 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.region3boundary,$cse20.region3boundary,$cse21.phase,$cse21.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse35.phase,$cse35.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.region,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (208): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 25 * 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: 0 * Non-linear torn systems: 8 {2 4,1 1,2 9,1 1,4 18,1 1,1 10,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03828/14.56, allocations: 12.84 MB / 4.047 GB, free: 13.22 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01916/14.58, allocations: 6.351 MB / 4.054 GB, free: 11.82 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/14.58, allocations: 6.406 kB / 4.054 GB, free: 11.82 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008328/14.59, allocations: 2.955 MB / 4.057 GB, free: 10.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01/14.6, allocations: 1.088 MB / 4.058 GB, free: 10.38 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02756/14.63, allocations: 8.934 MB / 4.066 GB, free: 7.211 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002642/14.63, allocations: 2.527 MB / 4.069 GB, free: 6.324 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003338/14.64, allocations: 1.534 MB / 4.07 GB, free: 5.102 MB / 490.7 MB Notification: Performance of SimCode: time 1.543e-06/14.64, allocations: 0 / 4.07 GB, free: 5.102 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.076/20.71, allocations: 205.2 MB / 4.271 GB, free: 10.5 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial_res.mat does not exist to compare? outputFormat=mat