Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.025/2.025, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.579e-05/2.588e-05, allocations: 0 / 267.6 MB, free: 5.305 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1072, allocations: 48.7 MB / 316.3 MB, free: 4.508 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.759/7.866, allocations: 2.516 GB / 2.824 GB, free: 78.43 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003369/7.866, allocations: 98.05 kB / 2.825 GB, free: 78.38 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.587/10.45, allocations: 485 MB / 3.298 GB, free: 42.64 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.104e-06/10.45, allocations: 2.719 kB / 3.298 GB, free: 42.64 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.178e-05/10.45, allocations: 20.64 kB / 3.298 GB, free: 42.64 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: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.007835/10.46, allocations: 1.718 MB / 3.3 GB, free: 41.88 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/10.46, allocations: 10.22 kB / 3.3 GB, free: 41.88 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003452/10.46, allocations: 308.7 kB / 3.3 GB, free: 41.84 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001919/10.47, allocations: 0.6138 MB / 3.301 GB, free: 41.57 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000143/10.47, allocations: 91.59 kB / 3.301 GB, free: 41.51 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/10.47, allocations: 39.14 kB / 3.301 GB, free: 41.51 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001769/10.47, allocations: 0.6963 MB / 3.302 GB, free: 41.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001866/10.47, allocations: 0.8858 MB / 3.302 GB, free: 41.21 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.522e-05/10.47, allocations: 5.906 kB / 3.302 GB, free: 41.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00011/10.47, allocations: 3.562 kB / 3.302 GB, free: 41.21 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.987e-05/10.47, allocations: 48.61 kB / 3.303 GB, free: 41.21 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.1581/10.63, allocations: 52.8 MB / 3.354 GB, free: 24.13 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001046/10.63, allocations: 388.8 kB / 3.354 GB, free: 24.1 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004039/10.63, allocations: 179.2 kB / 3.355 GB, free: 24.09 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008902/10.64, allocations: 3.636 MB / 3.358 GB, free: 21.38 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.65e-05/10.64, allocations: 39.81 kB / 3.358 GB, free: 21.34 MB / 458.7 MB Notification: Performance of pre-optimization done (n=37): time 4.418e-06/10.64, allocations: 0 / 3.358 GB, free: 21.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=41): time 0.005662/10.65, allocations: 1.45 MB / 3.36 GB, free: 20.92 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.516e-05/10.65, allocations: 142.9 kB / 3.36 GB, free: 20.76 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008083/10.65, allocations: 484.8 kB / 3.36 GB, free: 20.63 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.691e-05/10.65, allocations: 29.23 kB / 3.36 GB, free: 20.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002939/10.65, allocations: 462.7 kB / 3.361 GB, free: 20.29 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/10.65, allocations: 143.8 kB / 3.361 GB, free: 20.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.884e-05/10.65, allocations: 3.469 kB / 3.361 GB, free: 20.2 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00015/10.65, allocations: 337.4 kB / 3.361 GB, free: 19.89 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000482/10.65, allocations: 223.3 kB / 3.361 GB, free: 19.89 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006594/10.65, allocations: 0.5602 MB / 3.362 GB, free: 19.45 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009321/10.65, allocations: 329.1 kB / 3.362 GB, free: 19.43 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/10.65, allocations: 3.938 kB / 3.362 GB, free: 19.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002426/10.65, allocations: 0.7758 MB / 3.363 GB, free: 19.35 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.407e-05/10.65, allocations: 8.156 kB / 3.363 GB, free: 19.35 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.375e-05/10.65, allocations: 15.17 kB / 3.363 GB, free: 19.35 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004553/10.65, allocations: 62.89 kB / 3.363 GB, free: 19.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004107/10.66, allocations: 320 kB / 3.363 GB, free: 19.34 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003333/10.66, allocations: 1.937 MB / 3.365 GB, free: 17.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002303/10.66, allocations: 88.48 kB / 3.365 GB, free: 17.54 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002163/10.66, allocations: 48.25 kB / 3.365 GB, free: 17.54 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase,volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000394/10.66, allocations: 152 kB / 3.366 GB, free: 17.42 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001957/10.66, allocations: 466.2 kB / 3.366 GB, free: 17.34 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001609/10.66, allocations: 65.88 kB / 3.366 GB, free: 17.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002903/10.67, allocations: 1.856 MB / 3.368 GB, free: 17.09 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.026e-05/10.67, allocations: 27.05 kB / 3.368 GB, free: 17.09 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/10.67, allocations: 0 / 3.368 GB, free: 17.09 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/10.67, allocations: 3.75 kB / 3.368 GB, free: 17.09 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004609/10.67, allocations: 2.85 MB / 3.371 GB, free: 16.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.418e-06/10.67, allocations: 2.812 kB / 3.371 GB, free: 16.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002018/10.67, allocations: 209.5 kB / 3.371 GB, free: 16.63 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003854/10.67, allocations: 79.61 kB / 3.371 GB, free: 16.62 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.675e-05/10.68, allocations: 6.953 kB / 3.371 GB, free: 16.62 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001901/10.68, allocations: 1.979 MB / 3.373 GB, free: 14.83 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/10.68, allocations: 256 / 3.373 GB, free: 14.83 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002874/10.68, allocations: 1.799 MB / 3.375 GB, free: 14.54 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005243/10.68, allocations: 231 kB / 3.375 GB, free: 14.38 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001598/10.68, allocations: 6.125 kB / 3.375 GB, free: 14.38 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008548/10.68, allocations: 45.59 kB / 3.375 GB, free: 14.37 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/10.68, allocations: 45.44 kB / 3.375 GB, free: 14.37 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.187e-05/10.68, allocations: 15.06 kB / 3.375 GB, free: 14.37 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006337/10.68, allocations: 352.5 kB / 3.375 GB, free: 14.28 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.21e-07/10.68, allocations: 0 / 3.375 GB, free: 14.28 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005532/10.69, allocations: 1.082 MB / 3.376 GB, free: 14.13 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 16 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01358/10.7, allocations: 4.022 MB / 3.38 GB, free: 28.94 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002628/10.7, allocations: 0.8573 MB / 3.381 GB, free: 28.93 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/10.7, allocations: 4.125 kB / 3.381 GB, free: 28.92 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001913/10.71, allocations: 0.6314 MB / 3.382 GB, free: 28.75 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002489/10.71, allocations: 281 kB / 3.382 GB, free: 28.68 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007784/10.72, allocations: 2.113 MB / 3.384 GB, free: 27.73 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007551/10.72, allocations: 1.105 MB / 3.385 GB, free: 26.99 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006755/10.72, allocations: 355.5 kB / 3.386 GB, free: 26.72 MB / 474.7 MB Notification: Performance of SimCode: time 1.002e-06/10.72, allocations: 5.344 kB / 3.386 GB, free: 26.72 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.231/14.95, allocations: 43.47 MB / 3.428 GB, free: 77.66 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat does not exist to compare? outputFormat=mat