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 1.993/1.993, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.007e-05/4.017e-05, allocations: 11.98 kB / 273.2 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1102, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.882/7.992, allocations: 2.56 GB / 2.874 GB, free: 11.41 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003315/7.993, allocations: 79.14 kB / 2.874 GB, free: 11.37 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.465/13.46, allocations: 0.9956 GB / 3.87 GB, free: 24.84 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.003e-06/13.46, allocations: 0 / 3.87 GB, free: 24.84 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002911/13.46, allocations: 77.33 kB / 3.87 GB, free: 24.83 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.0201/13.48, allocations: 4.263 MB / 3.874 GB, free: 22.79 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/13.48, allocations: 9.219 kB / 3.874 GB, free: 22.79 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001723/13.48, allocations: 420.4 kB / 3.874 GB, free: 22.73 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0115/13.49, allocations: 0.9893 MB / 3.875 GB, free: 22.56 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009079/13.5, allocations: 2.249 MB / 3.877 GB, free: 22 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004092/13.5, allocations: 280.7 kB / 3.878 GB, free: 21.93 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001113/13.5, allocations: 237.3 kB / 3.878 GB, free: 21.93 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01381/13.52, allocations: 4.434 MB / 3.882 GB, free: 21.32 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.721e-05/13.52, allocations: 7.219 kB / 3.882 GB, free: 21.31 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005129/13.52, allocations: 109.6 kB / 3.882 GB, free: 21.31 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004012/13.52, allocations: 218.2 kB / 3.882 GB, free: 21.3 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01374/13.53, allocations: 3.992 MB / 3.886 GB, free: 21.26 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.03952/13.57, allocations: 19.06 MB / 3.905 GB, free: 10.18 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008813/13.58, allocations: 2.646 MB / 3.908 GB, free: 9.5 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003139/13.58, allocations: 1.3 MB / 3.909 GB, free: 9.012 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05395/13.64, allocations: 17.07 MB / 3.926 GB, free: 13.58 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.449e-05/13.64, allocations: 56.25 kB / 3.926 GB, free: 13.52 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002682/13.64, allocations: 364.7 kB / 3.926 GB, free: 13.38 MB / 490.7 MB Notification: Performance of pre-optimization done (n=181): time 7.283e-06/13.64, allocations: 3.047 kB / 3.926 GB, free: 13.38 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: radiator.mediums[1].h 4: pipe.mediums[2].h 5: pipe.mediums[2].p 6: pipe.mediums[1].p 7: pipe.mediums[1].h 8: heater.mediums[1].h 9: radiator.mediums[1].p 10: pump.medium.h 11: heater.mediums[1].p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=283): time 1.527/15.17, allocations: 62.19 MB / 3.987 GB, free: 37.4 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.4551/15.62, allocations: 86.7 MB / 4.071 GB, free: 19.53 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00391/15.63, allocations: 1.668 MB / 4.073 GB, free: 18.43 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001019/15.63, allocations: 78.52 kB / 4.073 GB, free: 18.39 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001097/15.63, allocations: 1.1 MB / 4.074 GB, free: 17.81 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001769/15.63, allocations: 0.9432 MB / 4.075 GB, free: 17.08 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005853/15.63, allocations: 60.44 kB / 4.075 GB, free: 17.07 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002236/15.63, allocations: 426.4 kB / 4.076 GB, free: 16.72 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006889/15.64, allocations: 2.568 MB / 4.078 GB, free: 15.44 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007568/15.65, allocations: 3.122 MB / 4.081 GB, free: 13.49 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00914/15.65, allocations: 2.994 MB / 4.084 GB, free: 11.99 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.774e-05/15.65, allocations: 4 kB / 4.084 GB, free: 11.98 MB / 490.7 MB Notification: Performance of matching and sorting (n=372) (initialization): time 0.0245/15.68, allocations: 8.476 MB / 4.092 GB, free: 7.535 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00131/15.68, allocations: 5.84 MB / 4.098 GB, free: 1.355 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.094e-05/15.68, allocations: 16 kB / 4.098 GB, free: 1.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1264/15.81, allocations: 16.51 MB / 4.114 GB, free: 6.691 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003364/15.81, allocations: 377.2 kB / 4.114 GB, free: 6.422 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03158/15.84, allocations: 10.08 MB / 4.124 GB, free: 0.6719 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008664/15.85, allocations: 409.2 kB / 4.125 GB, free: 380 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001328/15.85, allocations: 186.6 kB / 4.125 GB, free: 220 kB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/15.85, allocations: 4 kB / 4.125 GB, free: 216 kB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.4563/16.31, allocations: 8.725 MB / 4.133 GB, free: 50.33 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.486e-05/16.31, allocations: 15.12 kB / 4.133 GB, free: 50.33 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05203/16.36, allocations: 8.129 MB / 4.141 GB, free: 50.29 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004004/16.36, allocations: 449 kB / 4.142 GB, free: 50.29 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02618/16.39, allocations: 9.175 MB / 4.151 GB, free: 49.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007605/16.4, allocations: 401.3 kB / 4.151 GB, free: 49.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001315/16.4, allocations: 176.2 kB / 4.151 GB, free: 49.21 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.001735/16.4, allocations: 280.5 kB / 4.152 GB, free: 49.11 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001221/16.4, allocations: 253.9 kB / 4.152 GB, free: 49.11 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04065/16.44, allocations: 17.2 MB / 4.169 GB, free: 48.51 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001721/16.44, allocations: 117.5 kB / 4.169 GB, free: 48.51 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/16.44, allocations: 0 / 4.169 GB, free: 48.51 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03222/16.48, allocations: 15.39 MB / 4.184 GB, free: 47.62 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06441/16.54, allocations: 27.25 MB / 4.21 GB, free: 44.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-05/16.54, allocations: 7.188 kB / 4.21 GB, free: 44.14 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002119/16.54, allocations: 234.9 kB / 4.211 GB, free: 44.13 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1237/16.67, allocations: 26.47 MB / 4.236 GB, free: 41.09 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001048/16.67, allocations: 101.2 kB / 4.237 GB, free: 41.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03447/16.7, allocations: 15.5 MB / 4.252 GB, free: 34.32 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.9099/17.61, allocations: 145.2 MB / 4.393 GB, free: 52.89 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04646/17.66, allocations: 22.45 MB / 4.415 GB, free: 42.63 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004219/17.66, allocations: 1.153 MB / 4.417 GB, free: 41.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001388/17.66, allocations: 61.38 kB / 4.417 GB, free: 41.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007779/17.67, allocations: 431.5 kB / 4.417 GB, free: 41.89 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001338/17.67, allocations: 269.4 kB / 4.417 GB, free: 41.86 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006639/17.67, allocations: 140.3 kB / 4.417 GB, free: 41.83 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003145/17.68, allocations: 1.329 MB / 4.419 GB, free: 41.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.032e-06/17.68, allocations: 0 / 4.419 GB, free: 41.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.03669/17.71, allocations: 7.19 MB / 4.426 GB, free: 40.7 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,$cse116.phase,$cse116.region,$cse117.phase,$cse117.region,$cse118.region3boundary,$cse119.region3boundary,$cse120.phase,$cse120.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.09072/17.81, allocations: 25.02 MB / 4.45 GB, free: 30.66 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.04467/17.85, allocations: 11.7 MB / 4.462 GB, free: 26.65 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.307e-05/17.85, allocations: 4.625 kB / 4.462 GB, free: 26.65 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01911/17.87, allocations: 5.629 MB / 4.467 GB, free: 21.68 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01079/17.88, allocations: 1.073 MB / 4.468 GB, free: 20.94 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04582/17.93, allocations: 14.03 MB / 4.482 GB, free: 8.621 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003658/17.93, allocations: 2.99 MB / 4.485 GB, free: 6.398 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00522/17.93, allocations: 1.687 MB / 4.486 GB, free: 4.859 MB / 0.5105 GB Notification: Performance of SimCode: time 1.764e-06/17.93, allocations: 0 / 4.486 GB, free: 4.859 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.434/27.37, allocations: 234 MB / 4.715 GB, free: 99.91 MB / 0.5573 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