Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_FixedInitial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.564/2.564, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.93e-05/3.947e-05, allocations: 4 kB / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4021/0.4021, allocations: 54.85 MB / 359.9 MB, free: 2.703 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.839/8.241, allocations: 2.67 GB / 3.022 GB, free: 87.47 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003041/8.241, allocations: 79.52 kB / 3.022 GB, free: 87.43 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.192/13.43, allocations: 1.022 GB / 4.044 GB, free: 25.03 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.724e-06/13.43, allocations: 4 kB / 4.044 GB, free: 25.03 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003081/13.43, allocations: 67.98 kB / 4.044 GB, free: 24.96 MB / 0.5105 GB 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.02064/13.45, allocations: 4.402 MB / 4.048 GB, free: 20.5 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/13.45, allocations: 8.031 kB / 4.048 GB, free: 20.49 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001803/13.46, allocations: 411.9 kB / 4.049 GB, free: 20.07 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01158/13.47, allocations: 1.03 MB / 4.05 GB, free: 19.04 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008853/13.48, allocations: 2.258 MB / 4.052 GB, free: 16.73 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004232/13.48, allocations: 288.2 kB / 4.052 GB, free: 16.43 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001255/13.48, allocations: 244 kB / 4.052 GB, free: 16.2 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01395/13.49, allocations: 4.452 MB / 4.057 GB, free: 11.52 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001007/13.49, allocations: 7.938 kB / 4.057 GB, free: 11.51 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005507/13.49, allocations: 111.9 kB / 4.057 GB, free: 11.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003711/13.49, allocations: 212.8 kB / 4.057 GB, free: 11.19 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01335/13.51, allocations: 4.007 MB / 4.061 GB, free: 7.176 MB / 0.5105 GB 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.04226/13.55, allocations: 19.04 MB / 4.08 GB, free: 2.621 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.44/13.99, allocations: 2.758 MB / 4.082 GB, free: 40.76 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004445/13.99, allocations: 1.48 MB / 4.084 GB, free: 40.75 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05709/14.05, allocations: 17.06 MB / 4.1 GB, free: 30.25 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.584e-05/14.05, allocations: 55 kB / 4.1 GB, free: 30.21 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002671/14.05, allocations: 238.9 kB / 4.101 GB, free: 30.21 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=194): time 8.416e-06/14.05, allocations: 2.531 kB / 4.101 GB, free: 30.21 MB / 0.5261 GB 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.07319/14.13, allocations: 13.11 MB / 4.113 GB, free: 29.45 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.678e-05/14.13, allocations: 131 kB / 4.114 GB, free: 29.32 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003546/14.13, allocations: 1.659 MB / 4.115 GB, free: 29.09 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006603/14.13, allocations: 62.11 kB / 4.115 GB, free: 29.06 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008663/14.13, allocations: 1.072 MB / 4.116 GB, free: 28.64 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001107/14.13, allocations: 0.7284 MB / 4.117 GB, free: 28.27 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002803/14.13, allocations: 53.19 kB / 4.117 GB, free: 28.27 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001607/14.13, allocations: 407.4 kB / 4.117 GB, free: 27.96 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003156/14.14, allocations: 1.32 MB / 4.119 GB, free: 27.95 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003413/14.14, allocations: 1.801 MB / 4.121 GB, free: 27.43 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003626/14.14, allocations: 1.533 MB / 4.122 GB, free: 27.41 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.606e-05/14.14, allocations: 10.98 kB / 4.122 GB, free: 27.41 MB / 0.5261 GB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01044/14.15, allocations: 3.886 MB / 4.126 GB, free: 27.21 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001173/14.16, allocations: 5.322 MB / 4.131 GB, free: 21.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.788e-05/14.16, allocations: 12.62 kB / 4.131 GB, free: 21.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006833/14.16, allocations: 1.137 MB / 4.132 GB, free: 21.62 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004506/14.17, allocations: 0.5357 MB / 4.133 GB, free: 21.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005898/14.17, allocations: 5.696 MB / 4.138 GB, free: 17.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005043/14.18, allocations: 317.7 kB / 4.139 GB, free: 17.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004171/14.18, allocations: 120.3 kB / 4.139 GB, free: 17.45 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/14.18, allocations: 3.938 kB / 4.139 GB, free: 17.45 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009374/14.19, allocations: 3.464 MB / 4.142 GB, free: 17.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.793e-05/14.19, allocations: 17.25 kB / 4.142 GB, free: 17.33 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002809/14.19, allocations: 0.6115 MB / 4.143 GB, free: 17.27 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004908/14.2, allocations: 0.5944 MB / 4.143 GB, free: 17.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008777/14.2, allocations: 8.426 MB / 4.151 GB, free: 10.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004042/14.21, allocations: 311.9 kB / 4.152 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003396/14.21, allocations: 117.3 kB / 4.152 GB, free: 10.68 MB / 0.5261 GB 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.0009949/14.21, allocations: 253.8 kB / 4.152 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008628/14.21, allocations: 230.8 kB / 4.152 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01703/14.23, allocations: 9.387 MB / 4.161 GB, free: 9.684 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001204/14.23, allocations: 108.7 kB / 4.162 GB, free: 9.684 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/14.23, allocations: 1.312 kB / 4.162 GB, free: 9.684 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0137/14.24, allocations: 8.259 MB / 4.17 GB, free: 8.762 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02797/14.27, allocations: 13.6 MB / 4.183 GB, free: 7.805 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.451e-05/14.27, allocations: 11.17 kB / 4.183 GB, free: 7.801 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003555/14.27, allocations: 408.7 kB / 4.183 GB, free: 7.801 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009498/14.28, allocations: 2.674 MB / 4.186 GB, free: 7.664 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007234/14.28, allocations: 78.33 kB / 4.186 GB, free: 7.664 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008185/14.29, allocations: 6.915 MB / 4.193 GB, free: 19.48 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/14.29, allocations: 0 / 4.193 GB, free: 19.48 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0189/14.31, allocations: 9.963 MB / 4.203 GB, free: 18.66 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002863/14.31, allocations: 0.8307 MB / 4.203 GB, free: 18.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007073/14.31, allocations: 54.33 kB / 4.203 GB, free: 18.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003624/14.32, allocations: 263.7 kB / 4.204 GB, free: 18.29 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005803/14.32, allocations: 202.7 kB / 4.204 GB, free: 18.28 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000304/14.32, allocations: 88.33 kB / 4.204 GB, free: 18.28 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002795/14.32, allocations: 1.318 MB / 4.205 GB, free: 18.12 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.81e-07/14.32, allocations: 0 / 4.205 GB, free: 18.12 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01429/14.34, allocations: 3.091 MB / 4.208 GB, free: 17.99 MB / 0.5417 GB 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.03385/14.37, allocations: 12.89 MB / 4.221 GB, free: 16.2 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01745/14.39, allocations: 6.269 MB / 4.227 GB, free: 13.88 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/14.39, allocations: 0 / 4.227 GB, free: 13.88 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.007856/14.4, allocations: 2.942 MB / 4.23 GB, free: 12.67 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00962/14.41, allocations: 1.08 MB / 4.231 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02856/14.43, allocations: 8.94 MB / 4.24 GB, free: 9.387 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00301/14.44, allocations: 2.53 MB / 4.242 GB, free: 8.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003636/14.44, allocations: 1.536 MB / 4.244 GB, free: 7.277 MB / 0.5417 GB Notification: Performance of SimCode: time 1.603e-06/14.44, allocations: 0 / 4.244 GB, free: 7.277 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.114/20.55, allocations: 204.4 MB / 4.443 GB, free: 28.03 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial_res.mat does not exist to compare? outputFormat=mat