Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.654/1.654, allocations: 171.3 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.42e-05/2.443e-05, allocations: 0 / 219.5 MB, free: 7.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2577, allocations: 38.77 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.784/7.042, allocations: 2.478 GB / 2.73 GB, free: 21.71 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/7.042, allocations: 82.52 kB / 2.73 GB, free: 21.67 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.011/12.05, allocations: 0.927 GB / 3.657 GB, free: 17.6 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.054e-06/12.05, allocations: 0 / 3.657 GB, free: 17.6 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002464/12.05, allocations: 58.42 kB / 3.657 GB, free: 17.59 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 462 * Number of variables: 462 Notification: Performance of Generate backend data structure: time 0.0158/12.07, allocations: 3.294 MB / 3.66 GB, free: 16.05 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/12.07, allocations: 16.72 kB / 3.66 GB, free: 16.05 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02175/12.09, allocations: 1.128 MB / 3.661 GB, free: 15.93 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005617/12.1, allocations: 1.538 MB / 3.663 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003738/12.1, allocations: 277.7 kB / 3.663 GB, free: 15.35 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007509/12.1, allocations: 118.9 kB / 3.663 GB, free: 15.35 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007486/12.1, allocations: 2.663 MB / 3.666 GB, free: 15.34 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008168/12.11, allocations: 2.699 MB / 3.668 GB, free: 14.95 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.812e-05/12.11, allocations: 3.281 kB / 3.668 GB, free: 14.95 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000435/12.11, allocations: 6.562 kB / 3.668 GB, free: 14.95 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000209/12.11, allocations: 111.5 kB / 3.669 GB, free: 14.94 MB / 394.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.03399/12.15, allocations: 14.05 MB / 3.682 GB, free: 7.883 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004837/12.15, allocations: 2.092 MB / 3.684 GB, free: 7.844 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002849/12.16, allocations: 1.228 MB / 3.686 GB, free: 7.828 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009806/12.17, allocations: 3.735 MB / 3.689 GB, free: 21.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.258e-05/12.17, allocations: 56.91 kB / 3.689 GB, free: 21.16 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00551/12.17, allocations: 0.5105 MB / 3.69 GB, free: 21.09 MB / 410.7 MB Notification: Performance of pre-optimization done (n=175): time 1.117e-05/12.17, allocations: 0 / 3.69 GB, free: 21.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.04819/12.22, allocations: 9.876 MB / 3.699 GB, free: 20.27 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/12.22, allocations: 152.1 kB / 3.7 GB, free: 20.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001714/12.22, allocations: 0.8587 MB / 3.7 GB, free: 19.94 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006265/12.22, allocations: 27.89 kB / 3.7 GB, free: 19.91 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005818/12.22, allocations: 0.7993 MB / 3.701 GB, free: 19.45 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009279/12.22, allocations: 0.6528 MB / 3.702 GB, free: 19.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002381/12.22, allocations: 0 / 3.702 GB, free: 19.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002278/12.22, allocations: 394 kB / 3.702 GB, free: 18.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002557/12.23, allocations: 1.075 MB / 3.703 GB, free: 18.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002955/12.23, allocations: 1.513 MB / 3.705 GB, free: 18.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008676/12.24, allocations: 1.827 MB / 3.706 GB, free: 18.19 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.747e-05/12.24, allocations: 7.812 kB / 3.706 GB, free: 18.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.01532/12.25, allocations: 3.992 MB / 3.71 GB, free: 17.99 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001991/12.26, allocations: 4.887 MB / 3.715 GB, free: 12.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.855e-05/12.26, allocations: 14.59 kB / 3.715 GB, free: 12.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00665/12.26, allocations: 1.507 MB / 3.717 GB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003918/12.27, allocations: 475.3 kB / 3.717 GB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01295/12.28, allocations: 7.243 MB / 3.724 GB, free: 8.137 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004284/12.28, allocations: 175 kB / 3.724 GB, free: 8.121 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006207/12.28, allocations: 120.7 kB / 3.724 GB, free: 8.121 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/12.28, allocations: 8.719 kB / 3.724 GB, free: 8.121 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01064/12.29, allocations: 3.12 MB / 3.728 GB, free: 7.969 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.226e-05/12.3, allocations: 10.69 kB / 3.728 GB, free: 7.969 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003447/12.3, allocations: 0.9643 MB / 3.728 GB, free: 7.895 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004171/12.3, allocations: 0.4956 MB / 3.729 GB, free: 7.867 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01393/12.32, allocations: 9.977 MB / 3.739 GB, free: 16.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003464/12.32, allocations: 170.3 kB / 3.739 GB, free: 16.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003636/12.32, allocations: 118.8 kB / 3.739 GB, free: 16.84 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot3.mb_flow:VARIABLE(min = max(-(if junctionIdeal.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Leaving then 0.0 else 9.999999999999999e+59), -100000.0) max = min(-(if junctionIdeal.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Entering then 0.0 else -9.999999999999999e+59), 100000.0) unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankHot3.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankHot3.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankCold3.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankCold3.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot1.mb_flow:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankHot1.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankHot1.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankCold1.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot2.mb_flow:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot2.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankCold2.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankCold2.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 21 (openTankCold2.heatTransfer.states[1].phase,openTankCold2.regularFlow[1],openTankCold2.inFlow[1],openTankCold1.heatTransfer.states[1].phase,openTankCold1.regularFlow[1],openTankCold1.inFlow[1],openTankHot1.heatTransfer.states[1].phase,openTankHot1.regularFlow[1],openTankHot1.inFlow[1],openTankHot2.heatTransfer.states[1].phase,openTankHot2.regularFlow[1],openTankHot2.inFlow[1],mFlow1.medium.phase,mFlow2.medium.phase,openTankCold3.heatTransfer.states[1].phase,openTankCold3.regularFlow[1],openTankCold3.inFlow[1],openTankHot3.heatTransfer.states[1].phase,openTankHot3.regularFlow[1],openTankHot3.inFlow[1],mFlow3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 210 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {2 4,2 4,4 6,2 4,2 4,4 6,2 4,2 4,4 8} Notification: Performance of prepare postOptimizeDAE: time 0.001121/12.32, allocations: 229.3 kB / 3.739 GB, free: 16.68 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01524/12.34, allocations: 3.764 MB / 3.743 GB, free: 16.39 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009468/12.34, allocations: 174.2 kB / 3.743 GB, free: 16.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02315/12.36, allocations: 10.04 MB / 3.753 GB, free: 12.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001278/12.36, allocations: 101.1 kB / 3.753 GB, free: 12.67 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/12.36, allocations: 0 / 3.753 GB, free: 12.67 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.832e-05/12.36, allocations: 19.44 kB / 3.753 GB, free: 12.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03303/12.39, allocations: 13.18 MB / 3.766 GB, free: 2.293 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.095e-05/12.39, allocations: 0 / 3.766 GB, free: 2.293 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003592/12.4, allocations: 400.1 kB / 3.766 GB, free: 1.977 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3399/12.74, allocations: 4.651 MB / 3.771 GB, free: 46.39 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006262/12.74, allocations: 33.61 kB / 3.771 GB, free: 46.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01497/12.75, allocations: 9.796 MB / 3.78 GB, free: 41.71 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.784e-06/12.75, allocations: 2.188 kB / 3.78 GB, free: 41.71 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02386/12.78, allocations: 10.64 MB / 3.791 GB, free: 41.19 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002699/12.78, allocations: 0.8731 MB / 3.792 GB, free: 41.01 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008343/12.78, allocations: 2 kB / 3.792 GB, free: 41.01 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004001/12.79, allocations: 197.4 kB / 3.792 GB, free: 41 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00083/12.79, allocations: 230.1 kB / 3.792 GB, free: 41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003248/12.79, allocations: 85.59 kB / 3.792 GB, free: 41 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001815/12.79, allocations: 0.9093 MB / 3.793 GB, free: 40.89 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.31e-07/12.79, allocations: 0 / 3.793 GB, free: 40.89 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01237/12.8, allocations: 2.197 MB / 3.795 GB, free: 40.89 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (openTankCold2.medium.h,openTankCold2.level,openTankCold1.medium.h,openTankCold1.level,openTankHot1.medium.h,openTankHot1.level,openTankHot2.medium.h,openTankHot2.level,openTankCold3.medium.h,openTankCold3.level,openTankHot3.medium.h,openTankHot3.level) * Number of discrete variables: 71 ($cse1.phase,$cse1.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.region,openTankCold2.heatTransfer.states[1].phase,openTankCold2.regularFlow[1],openTankCold2.inFlow[1],openTankCold1.heatTransfer.states[1].phase,openTankCold1.regularFlow[1],openTankCold1.inFlow[1],openTankHot1.heatTransfer.states[1].phase,openTankHot1.regularFlow[1],openTankHot1.inFlow[1],openTankHot2.heatTransfer.states[1].phase,openTankHot2.regularFlow[1],openTankHot2.inFlow[1],mFlow1.medium.phase,mFlow2.medium.phase,openTankCold3.heatTransfer.states[1].phase,openTankCold3.regularFlow[1],openTankCold3.inFlow[1],openTankHot3.heatTransfer.states[1].phase,openTankHot3.regularFlow[1],openTankHot3.inFlow[1],mFlow3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 19 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {2 4,2 4,6 9,2 4,2 4,6 9,2 4,2 4,6 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.03648/12.84, allocations: 12.8 MB / 3.808 GB, free: 39.55 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01639/12.85, allocations: 5.792 MB / 3.813 GB, free: 39.14 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.287e-05/12.85, allocations: 5.375 kB / 3.813 GB, free: 39.14 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008058/12.86, allocations: 2.905 MB / 3.816 GB, free: 39.08 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008061/12.87, allocations: 0.9155 MB / 3.817 GB, free: 39.05 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02098/12.89, allocations: 7.464 MB / 3.824 GB, free: 37.75 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001981/12.89, allocations: 2.208 MB / 3.826 GB, free: 37 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002767/12.9, allocations: 1.332 MB / 3.828 GB, free: 36.99 MB / 426.7 MB Notification: Performance of SimCode: time 1.273e-06/12.9, allocations: 0 / 3.828 GB, free: 36.99 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.627/18.52, allocations: 186.2 MB / 4.01 GB, free: 50.75 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature_res.mat does not exist to compare? outputFormat=mat