Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestExamplesVariants_HeatingSystem_FixedInitial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.648/2.648, allocations: 235 MB / 247.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.706e-05/3.724e-05, allocations: 4 kB / 305 MB, free: 5.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4276/0.4276, allocations: 54.85 MB / 359.9 MB, free: 3.164 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.11/8.538, allocations: 2.67 GB / 3.022 GB, free: 88.84 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/8.538, allocations: 78.39 kB / 3.022 GB, free: 88.8 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.584/14.12, allocations: 1.022 GB / 4.044 GB, free: 25.91 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.605e-06/14.12, allocations: 0 / 4.044 GB, free: 25.91 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003526/14.12, allocations: 67.98 kB / 4.044 GB, free: 25.84 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.02229/14.15, allocations: 4.402 MB / 4.048 GB, free: 21.69 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.913e-05/14.15, allocations: 12.03 kB / 4.048 GB, free: 21.68 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00247/14.15, allocations: 418.9 kB / 4.049 GB, free: 21.26 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01237/14.16, allocations: 1.03 MB / 4.05 GB, free: 20.23 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01018/14.17, allocations: 2.258 MB / 4.052 GB, free: 17.91 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005595/14.17, allocations: 288.2 kB / 4.052 GB, free: 17.62 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001487/14.17, allocations: 244 kB / 4.052 GB, free: 17.38 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01664/14.19, allocations: 4.481 MB / 4.057 GB, free: 12.67 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001849/14.19, allocations: 7.938 kB / 4.057 GB, free: 12.66 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001648/14.19, allocations: 111.9 kB / 4.057 GB, free: 12.55 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004721/14.19, allocations: 220.8 kB / 4.057 GB, free: 12.33 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01479/14.21, allocations: 4.048 MB / 4.061 GB, free: 8.27 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.04784/14.25, allocations: 19.04 MB / 4.08 GB, free: 3.723 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01129/14.27, allocations: 2.776 MB / 4.082 GB, free: 0.9336 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.4681/14.73, allocations: 1.47 MB / 4.084 GB, free: 42.03 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0572/14.79, allocations: 17.06 MB / 4.1 GB, free: 31.52 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.313e-05/14.79, allocations: 56.12 kB / 4.101 GB, free: 31.48 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002593/14.79, allocations: 241.4 kB / 4.101 GB, free: 31.48 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=194): time 9.698e-06/14.79, allocations: 0 / 4.101 GB, free: 31.48 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.07956/14.87, allocations: 13.1 MB / 4.114 GB, free: 30.73 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.955e-05/14.87, allocations: 132.6 kB / 4.114 GB, free: 30.6 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003984/14.88, allocations: 1.656 MB / 4.115 GB, free: 30.37 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007332/14.88, allocations: 68.11 kB / 4.115 GB, free: 30.34 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001206/14.88, allocations: 1.146 MB / 4.116 GB, free: 29.98 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001395/14.88, allocations: 0.7341 MB / 4.117 GB, free: 29.61 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003389/14.88, allocations: 48.12 kB / 4.117 GB, free: 29.61 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002036/14.88, allocations: 401.7 kB / 4.118 GB, free: 29.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003598/14.89, allocations: 1.32 MB / 4.119 GB, free: 29.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004223/14.89, allocations: 1.819 MB / 4.121 GB, free: 28.77 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004451/14.89, allocations: 1.535 MB / 4.122 GB, free: 28.75 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.829e-05/14.89, allocations: 5.031 kB / 4.122 GB, free: 28.75 MB / 0.5261 GB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01401/14.91, allocations: 4.054 MB / 4.126 GB, free: 28.48 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001351/14.91, allocations: 5.532 MB / 4.132 GB, free: 22.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.278e-05/14.91, allocations: 15.44 kB / 4.132 GB, free: 22.71 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007297/14.92, allocations: 1.138 MB / 4.133 GB, free: 22.65 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004867/14.92, allocations: 0.5253 MB / 4.133 GB, free: 22.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006581/14.93, allocations: 5.708 MB / 4.139 GB, free: 18.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005367/14.93, allocations: 317.4 kB / 4.139 GB, free: 18.48 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009682/14.94, allocations: 114.5 kB / 4.139 GB, free: 18.48 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.489e-05/14.94, allocations: 4.438 kB / 4.139 GB, free: 18.48 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01158/14.95, allocations: 3.507 MB / 4.143 GB, free: 18.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.984e-05/14.95, allocations: 12.31 kB / 4.143 GB, free: 18.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003219/14.95, allocations: 0.6407 MB / 4.143 GB, free: 18.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005295/14.96, allocations: 0.5897 MB / 4.144 GB, free: 18.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009598/14.97, allocations: 8.472 MB / 4.152 GB, free: 11.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005018/14.97, allocations: 311.8 kB / 4.152 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008871/14.97, allocations: 111.7 kB / 4.153 GB, free: 11.64 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.001327/14.97, allocations: 258.1 kB / 4.153 GB, free: 11.53 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009341/14.97, allocations: 232.9 kB / 4.153 GB, free: 11.41 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02035/14.99, allocations: 9.385 MB / 4.162 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001354/14.99, allocations: 108 kB / 4.162 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/14.99, allocations: 2.75 kB / 4.162 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01619/15.01, allocations: 8.258 MB / 4.17 GB, free: 9.715 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03239/15.04, allocations: 13.61 MB / 4.184 GB, free: 8.758 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.764e-05/15.04, allocations: 0 / 4.184 GB, free: 8.758 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003796/15.05, allocations: 414.8 kB / 4.184 GB, free: 8.758 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009906/15.06, allocations: 2.68 MB / 4.187 GB, free: 8.609 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007519/15.06, allocations: 76.17 kB / 4.187 GB, free: 8.609 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008183/15.07, allocations: 6.92 MB / 4.193 GB, free: 20.43 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/15.07, allocations: 0 / 4.193 GB, free: 20.43 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02103/15.09, allocations: 9.959 MB / 4.203 GB, free: 19.61 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003067/15.09, allocations: 0.8284 MB / 4.204 GB, free: 19.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009653/15.09, allocations: 60.42 kB / 4.204 GB, free: 19.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004551/15.1, allocations: 255.9 kB / 4.204 GB, free: 19.24 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001016/15.1, allocations: 208.9 kB / 4.204 GB, free: 19.23 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004241/15.1, allocations: 81.72 kB / 4.205 GB, free: 19.23 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003671/15.1, allocations: 1.314 MB / 4.206 GB, free: 19.07 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.342e-06/15.1, allocations: 0.9844 kB / 4.206 GB, free: 19.07 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01583/15.12, allocations: 3.102 MB / 4.209 GB, free: 18.95 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.03745/15.15, allocations: 12.86 MB / 4.221 GB, free: 17.21 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01941/15.17, allocations: 6.432 MB / 4.228 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/15.17, allocations: 3.969 kB / 4.228 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.008611/15.18, allocations: 2.972 MB / 4.231 GB, free: 13.63 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01037/15.19, allocations: 1.085 MB / 4.232 GB, free: 13.41 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03053/15.22, allocations: 8.953 MB / 4.24 GB, free: 10.34 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004196/15.23, allocations: 2.585 MB / 4.243 GB, free: 9.434 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0117/15.24, allocations: 3.295 MB / 4.246 GB, free: 9.316 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003732/15.24, allocations: 1.485 MB / 4.248 GB, free: 8.094 MB / 0.5417 GB Notification: Performance of SimCode: time 1.583e-06/15.24, allocations: 0 / 4.248 GB, free: 8.094 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8216/16.06, allocations: 144 MB / 4.388 GB, free: 67.77 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002355/16.07, allocations: 203.8 kB / 4.388 GB, free: 67.55 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.66/25.72, allocations: 0 / 4.388 GB, free: 67.55 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial_res.mat does not exist to compare? outputFormat=mat