Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.99/1.99, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.674e-05/2.682e-05, allocations: 4 kB / 249.7 MB, free: 15.21 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3049/0.305, allocations: 44.49 MB / 294.2 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.209/7.514, allocations: 2.587 GB / 2.875 GB, free: 70.37 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/7.514, allocations: 74.97 kB / 2.875 GB, free: 70.34 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.963/12.48, allocations: 0.9519 GB / 3.826 GB, free: 22.34 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.054e-06/12.48, allocations: 1.312 kB / 3.826 GB, free: 22.34 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002591/12.48, allocations: 62.56 kB / 3.827 GB, free: 22.32 MB / 442.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.01647/12.49, allocations: 3.377 MB / 3.83 GB, free: 20.75 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/12.49, allocations: 14.22 kB / 3.83 GB, free: 20.75 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02246/12.52, allocations: 1.224 MB / 3.831 GB, free: 20.64 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005734/12.52, allocations: 1.537 MB / 3.833 GB, free: 20.25 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003825/12.52, allocations: 280.5 kB / 3.833 GB, free: 20.06 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007888/12.52, allocations: 113.4 kB / 3.833 GB, free: 20.05 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007661/12.53, allocations: 2.663 MB / 3.836 GB, free: 20.05 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008233/12.54, allocations: 2.698 MB / 3.838 GB, free: 19.65 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.454e-05/12.54, allocations: 11.23 kB / 3.838 GB, free: 19.65 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004933/12.54, allocations: 3.688 kB / 3.838 GB, free: 19.65 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002047/12.54, allocations: 108.7 kB / 3.838 GB, free: 19.64 MB / 442.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.03508/12.58, allocations: 14.05 MB / 3.852 GB, free: 12.59 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004925/12.58, allocations: 2.088 MB / 3.854 GB, free: 12.55 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002938/12.58, allocations: 1.225 MB / 3.855 GB, free: 12.54 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009854/12.59, allocations: 3.763 MB / 3.859 GB, free: 9.91 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.92e-05/12.59, allocations: 60.94 kB / 3.859 GB, free: 9.867 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005621/12.6, allocations: 0.5129 MB / 3.859 GB, free: 9.797 MB / 442.7 MB Notification: Performance of pre-optimization done (n=175): time 9.067e-06/12.6, allocations: 0 / 3.859 GB, free: 9.797 MB / 442.7 MB Notification: Performance of matching and sorting (n=205): time 0.0489/12.65, allocations: 9.876 MB / 3.869 GB, free: 8.973 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.999e-05/12.65, allocations: 150.8 kB / 3.869 GB, free: 8.816 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001686/12.65, allocations: 0.8507 MB / 3.87 GB, free: 8.656 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006964/12.65, allocations: 26.45 kB / 3.87 GB, free: 8.625 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000557/12.65, allocations: 0.8011 MB / 3.871 GB, free: 8.164 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001126/12.65, allocations: 0.6498 MB / 3.872 GB, free: 7.734 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002622/12.65, allocations: 3.469 kB / 3.872 GB, free: 7.734 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001684/12.65, allocations: 390.3 kB / 3.872 GB, free: 7.422 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002659/12.66, allocations: 1.071 MB / 3.873 GB, free: 7.414 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003436/12.66, allocations: 1.519 MB / 3.874 GB, free: 6.926 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008913/12.67, allocations: 1.828 MB / 3.876 GB, free: 6.906 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-05/12.67, allocations: 6.094 kB / 3.876 GB, free: 6.906 MB / 442.7 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.01532/12.68, allocations: 3.994 MB / 3.88 GB, free: 6.707 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00241/12.69, allocations: 4.887 MB / 3.885 GB, free: 17.63 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.11e-05/12.69, allocations: 16.44 kB / 3.885 GB, free: 17.62 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006863/12.69, allocations: 1.508 MB / 3.886 GB, free: 17.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004045/12.7, allocations: 476.2 kB / 3.887 GB, free: 17.55 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01303/12.71, allocations: 7.235 MB / 3.894 GB, free: 12.86 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004388/12.71, allocations: 187.9 kB / 3.894 GB, free: 12.83 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000568/12.71, allocations: 116.5 kB / 3.894 GB, free: 12.83 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/12.71, allocations: 4.438 kB / 3.894 GB, free: 12.83 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01073/12.73, allocations: 3.119 MB / 3.897 GB, free: 12.65 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-05/12.73, allocations: 10.91 kB / 3.897 GB, free: 12.65 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00342/12.73, allocations: 0.9726 MB / 3.898 GB, free: 12.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004297/12.73, allocations: 0.4889 MB / 3.899 GB, free: 12.55 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01391/12.75, allocations: 9.982 MB / 3.908 GB, free: 5.543 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003469/12.75, allocations: 168.1 kB / 3.909 GB, free: 5.531 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003329/12.75, allocations: 113.8 kB / 3.909 GB, free: 5.531 MB / 458.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.001137/12.75, allocations: 230.5 kB / 3.909 GB, free: 5.371 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01487/12.77, allocations: 3.762 MB / 3.913 GB, free: 5.07 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008803/12.77, allocations: 172.5 kB / 3.913 GB, free: 4.988 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02282/12.79, allocations: 10.06 MB / 3.923 GB, free: 0.6211 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001308/12.79, allocations: 100.8 kB / 3.923 GB, free: 0.5977 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/12.79, allocations: 0 / 3.923 GB, free: 0.5977 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.1e-05/12.79, allocations: 13.5 kB / 3.923 GB, free: 0.5977 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03431/12.83, allocations: 13.17 MB / 3.936 GB, free: 6.824 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.549e-05/12.83, allocations: 0 / 3.936 GB, free: 6.824 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003755/12.83, allocations: 411.3 kB / 3.936 GB, free: 6.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0119/12.84, allocations: 4.654 MB / 3.94 GB, free: 2.629 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000716/12.84, allocations: 30.7 kB / 3.941 GB, free: 2.605 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3842/13.23, allocations: 9.792 MB / 3.95 GB, free: 48.32 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/13.23, allocations: 0.9688 kB / 3.95 GB, free: 48.32 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02551/13.25, allocations: 10.63 MB / 3.96 GB, free: 47.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002523/13.25, allocations: 0.8777 MB / 3.961 GB, free: 47.66 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007064/13.26, allocations: 3.5 kB / 3.961 GB, free: 47.66 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003926/13.26, allocations: 190.9 kB / 3.962 GB, free: 47.66 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007832/13.26, allocations: 232.8 kB / 3.962 GB, free: 47.66 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003149/13.26, allocations: 92.36 kB / 3.962 GB, free: 47.66 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001694/13.26, allocations: 0.9063 MB / 3.963 GB, free: 47.55 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.81e-07/13.26, allocations: 0 / 3.963 GB, free: 47.55 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0119/13.27, allocations: 2.224 MB / 3.965 GB, free: 47.55 MB / 474.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.03729/13.31, allocations: 12.82 MB / 3.977 GB, free: 46.21 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01719/13.33, allocations: 5.794 MB / 3.983 GB, free: 45.79 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/13.33, allocations: 3.75 kB / 3.983 GB, free: 45.79 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008592/13.34, allocations: 2.902 MB / 3.986 GB, free: 45.73 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008574/13.35, allocations: 0.9057 MB / 3.987 GB, free: 45.71 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0221/13.37, allocations: 7.487 MB / 3.994 GB, free: 44.43 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002157/13.37, allocations: 2.207 MB / 3.996 GB, free: 43.67 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002807/13.37, allocations: 1.328 MB / 3.998 GB, free: 43.66 MB / 474.7 MB Notification: Performance of SimCode: time 2.224e-06/13.37, allocations: 0.75 kB / 3.998 GB, free: 43.66 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.594/18.97, allocations: 186.4 MB / 4.18 GB, free: 65.95 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature_res.mat does not exist to compare? outputFormat=mat