Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_SteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.131/2.131, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.806e-05/3.833e-05, allocations: 4 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1082, allocations: 48.7 MB / 321.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.947/8.055, allocations: 2.56 GB / 2.874 GB, free: 12.42 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000291/8.056, allocations: 76.64 kB / 2.874 GB, free: 12.38 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.428/13.48, allocations: 0.9956 GB / 3.87 GB, free: 24.01 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.475e-06/13.48, allocations: 0 / 3.87 GB, free: 24.01 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003166/13.48, allocations: 68.14 kB / 3.87 GB, free: 24 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.01994/13.5, allocations: 4.27 MB / 3.874 GB, free: 21.98 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.52e-05/13.5, allocations: 9.625 kB / 3.874 GB, free: 21.98 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001646/13.51, allocations: 426 kB / 3.874 GB, free: 21.92 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01126/13.52, allocations: 0.98 MB / 3.875 GB, free: 21.76 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008961/13.53, allocations: 2.245 MB / 3.877 GB, free: 21.2 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003817/13.53, allocations: 287.2 kB / 3.878 GB, free: 21.13 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008424/13.53, allocations: 234.8 kB / 3.878 GB, free: 21.13 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01347/13.54, allocations: 4.453 MB / 3.882 GB, free: 20.5 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.422e-05/13.54, allocations: 9.281 kB / 3.882 GB, free: 20.5 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005003/13.54, allocations: 109.4 kB / 3.882 GB, free: 20.5 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003866/13.54, allocations: 227.6 kB / 3.882 GB, free: 20.49 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01303/13.56, allocations: 4.029 MB / 3.886 GB, free: 20.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.03706/13.59, allocations: 19.06 MB / 3.905 GB, free: 9.332 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008498/13.6, allocations: 2.668 MB / 3.908 GB, free: 9.254 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003046/13.6, allocations: 1.301 MB / 3.909 GB, free: 8.758 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05482/13.66, allocations: 17.06 MB / 3.926 GB, free: 13.37 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.785e-05/13.66, allocations: 56.41 kB / 3.926 GB, free: 13.31 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00256/13.66, allocations: 362.8 kB / 3.926 GB, free: 13.16 MB / 490.7 MB Notification: Performance of pre-optimization done (n=181): time 6.031e-06/13.66, allocations: 3.5 kB / 3.926 GB, free: 13.16 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: pipe.mediums[2].p 4: pipe.mediums[1].p 5: radiator.mediums[1].p 6: pump.medium.h 7: heater.mediums[1].p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=283): time 1.666/15.33, allocations: 62.16 MB / 3.987 GB, free: 36.56 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.6346/15.96, allocations: 86.96 MB / 4.072 GB, free: 19.53 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005781/15.97, allocations: 1.666 MB / 4.073 GB, free: 18.43 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001324/15.97, allocations: 76.95 kB / 4.073 GB, free: 18.39 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001602/15.97, allocations: 1.098 MB / 4.074 GB, free: 17.82 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002533/15.97, allocations: 0.9474 MB / 4.075 GB, free: 17.08 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009215/15.97, allocations: 60 kB / 4.075 GB, free: 17.07 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003435/15.97, allocations: 427.5 kB / 4.076 GB, free: 16.72 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01026/15.99, allocations: 2.569 MB / 4.078 GB, free: 15.44 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01137/16, allocations: 3.129 MB / 4.081 GB, free: 13.48 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01289/16.01, allocations: 2.997 MB / 4.084 GB, free: 11.97 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.045e-05/16.01, allocations: 4 kB / 4.084 GB, free: 11.97 MB / 490.7 MB Notification: Performance of matching and sorting (n=372) (initialization): time 0.0348/16.04, allocations: 8.519 MB / 4.093 GB, free: 7.508 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001688/16.05, allocations: 5.834 MB / 4.098 GB, free: 1.332 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-05/16.05, allocations: 19.7 kB / 4.098 GB, free: 1.316 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1741/16.22, allocations: 16.42 MB / 4.114 GB, free: 6.543 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003476/16.22, allocations: 386 kB / 4.115 GB, free: 6.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03152/16.26, allocations: 10.07 MB / 4.125 GB, free: 0.707 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008821/16.26, allocations: 409.8 kB / 4.125 GB, free: 464 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001315/16.27, allocations: 175.6 kB / 4.125 GB, free: 340 kB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/16.27, allocations: 4 kB / 4.125 GB, free: 336 kB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.4588/16.72, allocations: 8.696 MB / 4.134 GB, free: 49.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.089e-05/16.72, allocations: 15.41 kB / 4.134 GB, free: 49.49 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05258/16.78, allocations: 8.1 MB / 4.142 GB, free: 49.45 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004014/16.78, allocations: 449.4 kB / 4.142 GB, free: 49.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0268/16.81, allocations: 9.169 MB / 4.151 GB, free: 48.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007648/16.82, allocations: 399.5 kB / 4.151 GB, free: 48.38 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001053/16.82, allocations: 175.9 kB / 4.151 GB, free: 48.38 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (178): * Single equations (assignments): 176 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {15 79,17 85} Notification: Performance of prepare postOptimizeDAE: time 0.001339/16.82, allocations: 268.9 kB / 4.152 GB, free: 48.27 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00105/16.82, allocations: 255.2 kB / 4.152 GB, free: 48.27 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03877/16.86, allocations: 17.22 MB / 4.169 GB, free: 47.68 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001744/16.86, allocations: 120.7 kB / 4.169 GB, free: 47.68 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/16.86, allocations: 5.219 kB / 4.169 GB, free: 47.68 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03096/16.89, allocations: 15.41 MB / 4.184 GB, free: 46.79 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06477/16.95, allocations: 27.17 MB / 4.21 GB, free: 43.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.565e-05/16.95, allocations: 5.938 kB / 4.21 GB, free: 43.61 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00211/16.96, allocations: 236.9 kB / 4.211 GB, free: 43.61 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1246/17.08, allocations: 26.6 MB / 4.237 GB, free: 40.55 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001015/17.08, allocations: 104.5 kB / 4.237 GB, free: 40.51 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03512/17.12, allocations: 15.49 MB / 4.252 GB, free: 33.78 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.9155/18.03, allocations: 145.6 MB / 4.394 GB, free: 52.64 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04725/18.08, allocations: 22.36 MB / 4.416 GB, free: 42.42 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004296/18.08, allocations: 1.149 MB / 4.417 GB, free: 41.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001443/18.09, allocations: 59.36 kB / 4.417 GB, free: 41.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007848/18.09, allocations: 432.6 kB / 4.417 GB, free: 41.68 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00127/18.1, allocations: 271.1 kB / 4.418 GB, free: 41.65 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005814/18.1, allocations: 136.8 kB / 4.418 GB, free: 41.63 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003108/18.1, allocations: 1.326 MB / 4.419 GB, free: 41.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.91e-07/18.1, allocations: 0 / 4.419 GB, free: 41.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.03807/18.14, allocations: 7.19 MB / 4.426 GB, free: 40.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 60 ($cse85.phase,$cse85.region,$cse88.phase,$cse88.region,$cse89.phase,$cse89.region,$cse91.phase,$cse91.region,$cse93.phase,$cse93.region,$cse94.region3boundary,$cse95.region3boundary,$cse96.phase,$cse96.region,$cse97.phase,$cse97.region,$cse101.phase,$cse101.region,$cse102.phase,$cse102.region,$cse105.phase,$cse105.region,$cse106.phase,$cse106.region,$cse107.region3boundary,$cse108.region3boundary,$cse109.phase,$cse109.region,$cse119.phase,$cse119.region,$cse120.phase,$cse120.region,$cse121.region3boundary,$cse122.region3boundary,$cse123.phase,$cse123.region,$cse130.phase,$cse130.region,$cse131.phase,$cse131.region,$cse132.phase,$cse132.region,$cse133.region3boundary,$cse134.region3boundary,$cse135.phase,$cse135.region,$cse136.region3boundary,$cse137.region3boundary,$cse138.phase,$cse138.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 (112): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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 {15 82,19 121} Notification: Performance of Backend phase and start with SimCode phase: time 0.09294/18.23, allocations: 24.96 MB / 4.451 GB, free: 30.49 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.06019/18.29, allocations: 11.78 MB / 4.462 GB, free: 26.45 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.36e-05/18.29, allocations: 0 / 4.462 GB, free: 26.45 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02268/18.31, allocations: 5.649 MB / 4.468 GB, free: 21.71 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01032/18.32, allocations: 1.062 MB / 4.469 GB, free: 20.98 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05204/18.38, allocations: 14.41 MB / 4.483 GB, free: 8.367 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007064/18.38, allocations: 2.989 MB / 4.486 GB, free: 6.145 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007082/18.39, allocations: 1.687 MB / 4.487 GB, free: 4.605 MB / 0.5105 GB Notification: Performance of SimCode: time 1.633e-06/18.39, allocations: 0 / 4.487 GB, free: 4.605 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.614/28, allocations: 232.4 MB / 4.714 GB, free: 82.36 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState_res.mat does not exist to compare? outputFormat=mat