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 2.09/2.09, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.666e-05/3.671e-05, allocations: 4 kB / 273.2 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.109, allocations: 48.7 MB / 321.9 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.741/7.851, allocations: 2.56 GB / 2.874 GB, free: 12.59 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000287/7.851, allocations: 73.72 kB / 2.874 GB, free: 12.55 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.353/13.2, allocations: 0.9967 GB / 3.871 GB, free: 24 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.974e-06/13.2, allocations: 0 / 3.871 GB, free: 24 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003409/13.2, allocations: 82.23 kB / 3.871 GB, free: 23.98 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.02037/13.22, allocations: 4.267 MB / 3.875 GB, free: 21.94 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/13.22, allocations: 8.812 kB / 3.875 GB, free: 21.94 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001794/13.23, allocations: 419.2 kB / 3.875 GB, free: 21.88 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01163/13.24, allocations: 0.9869 MB / 3.876 GB, free: 21.71 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01003/13.25, allocations: 2.247 MB / 3.878 GB, free: 21.15 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000486/13.25, allocations: 290.5 kB / 3.879 GB, free: 21.08 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001372/13.25, allocations: 252.9 kB / 3.879 GB, free: 21.07 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01483/13.26, allocations: 4.443 MB / 3.883 GB, free: 20.46 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001056/13.26, allocations: 7.531 kB / 3.883 GB, free: 20.46 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005667/13.27, allocations: 110.4 kB / 3.883 GB, free: 20.46 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003865/13.27, allocations: 222.5 kB / 3.884 GB, free: 20.45 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01393/13.28, allocations: 4.004 MB / 3.888 GB, free: 20.41 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.04011/13.32, allocations: 19.05 MB / 3.906 GB, free: 9.43 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009178/13.33, allocations: 2.762 MB / 3.909 GB, free: 9.102 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003888/13.33, allocations: 1.474 MB / 3.91 GB, free: 8.578 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05439/13.39, allocations: 17.06 MB / 3.927 GB, free: 13.18 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.861e-05/13.39, allocations: 55.83 kB / 3.927 GB, free: 13.13 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002621/13.39, allocations: 238.1 kB / 3.927 GB, free: 12.99 MB / 490.7 MB Notification: Performance of pre-optimization done (n=194): time 7.023e-06/13.39, allocations: 0 / 3.927 GB, free: 12.99 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.08012/13.47, allocations: 13.11 MB / 3.94 GB, free: 3.285 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/13.47, allocations: 124.8 kB / 3.94 GB, free: 3.141 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004345/13.47, allocations: 1.66 MB / 3.942 GB, free: 1.609 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000743/13.48, allocations: 69.64 kB / 3.942 GB, free: 1.535 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001192/13.48, allocations: 1.068 MB / 3.943 GB, free: 0.5352 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.4302/13.91, allocations: 0.721 MB / 3.944 GB, free: 40.2 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004218/13.91, allocations: 49.91 kB / 3.944 GB, free: 40.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000296/13.91, allocations: 406.8 kB / 3.944 GB, free: 39.89 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00452/13.91, allocations: 1.322 MB / 3.945 GB, free: 39.88 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005037/13.92, allocations: 1.804 MB / 3.947 GB, free: 39.36 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004835/13.92, allocations: 1.543 MB / 3.949 GB, free: 39.34 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.602e-05/13.92, allocations: 5.438 kB / 3.949 GB, free: 39.34 MB / 490.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01381/13.94, allocations: 3.879 MB / 3.952 GB, free: 39.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001265/13.94, allocations: 5.31 MB / 3.958 GB, free: 33.68 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.589e-05/13.94, allocations: 13.81 kB / 3.958 GB, free: 33.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008106/13.95, allocations: 1.138 MB / 3.959 GB, free: 33.61 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005541/13.95, allocations: 0.5285 MB / 3.959 GB, free: 33.61 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00691/13.96, allocations: 5.703 MB / 3.965 GB, free: 29.48 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005644/13.96, allocations: 322.1 kB / 3.965 GB, free: 29.48 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007039/13.96, allocations: 115 kB / 3.965 GB, free: 29.48 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/13.96, allocations: 5 kB / 3.965 GB, free: 29.48 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01105/13.98, allocations: 3.465 MB / 3.969 GB, free: 29.36 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.195e-05/13.98, allocations: 13.75 kB / 3.969 GB, free: 29.36 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002998/13.98, allocations: 0.6123 MB / 3.969 GB, free: 29.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005304/13.98, allocations: 0.595 MB / 3.97 GB, free: 29.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008973/13.99, allocations: 8.441 MB / 3.978 GB, free: 22.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004044/14, allocations: 311.5 kB / 3.978 GB, free: 22.75 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003684/14, allocations: 113.5 kB / 3.978 GB, free: 22.75 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.001014/14, allocations: 255.5 kB / 3.979 GB, free: 22.64 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007944/14, allocations: 230.6 kB / 3.979 GB, free: 22.64 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0175/14.02, allocations: 9.38 MB / 3.988 GB, free: 22.02 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001224/14.02, allocations: 103.8 kB / 3.988 GB, free: 22.02 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/14.02, allocations: 3.031 kB / 3.988 GB, free: 22.02 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01446/14.03, allocations: 8.25 MB / 3.996 GB, free: 21.11 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03/14.06, allocations: 13.61 MB / 4.009 GB, free: 20.24 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.824e-05/14.06, allocations: 3.906 kB / 4.009 GB, free: 20.24 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003606/14.07, allocations: 407.4 kB / 4.01 GB, free: 20.24 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009004/14.07, allocations: 2.668 MB / 4.012 GB, free: 20.11 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006336/14.08, allocations: 76.61 kB / 4.013 GB, free: 20.11 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006862/14.08, allocations: 6.92 MB / 4.019 GB, free: 15.92 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/14.08, allocations: 1.781 kB / 4.019 GB, free: 15.92 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01879/14.1, allocations: 9.978 MB / 4.029 GB, free: 15.08 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002766/14.1, allocations: 0.8265 MB / 4.03 GB, free: 14.79 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006848/14.1, allocations: 55.36 kB / 4.03 GB, free: 14.79 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003607/14.11, allocations: 268.1 kB / 4.03 GB, free: 14.79 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005812/14.11, allocations: 196.8 kB / 4.03 GB, free: 14.78 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002886/14.11, allocations: 89.83 kB / 4.03 GB, free: 14.78 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002701/14.11, allocations: 1.314 MB / 4.032 GB, free: 14.62 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.71e-07/14.11, allocations: 1.125 kB / 4.032 GB, free: 14.62 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01359/14.13, allocations: 3.073 MB / 4.035 GB, free: 14.57 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.03202/14.16, allocations: 12.86 MB / 4.047 GB, free: 12.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01615/14.17, allocations: 6.259 MB / 4.053 GB, free: 11.99 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/14.17, allocations: 0.9375 kB / 4.053 GB, free: 11.99 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007197/14.18, allocations: 2.945 MB / 4.056 GB, free: 10.79 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009186/14.19, allocations: 1.084 MB / 4.057 GB, free: 10.56 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02523/14.22, allocations: 8.93 MB / 4.066 GB, free: 7.406 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002482/14.22, allocations: 2.534 MB / 4.069 GB, free: 6.516 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003142/14.22, allocations: 1.53 MB / 4.07 GB, free: 5.293 MB / 490.7 MB Notification: Performance of SimCode: time 1.172e-06/14.22, allocations: 0 / 4.07 GB, free: 5.293 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.865/20.09, allocations: 204.8 MB / 4.27 GB, free: 6.242 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