Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.IncompressibleFluidNetwork_StandardWaterOnePhase,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestExamplesVariants_IncompressibleFluidNetwork_StandardWaterOnePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.15/2.15, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.278e-05/2.275e-05, allocations: 4 kB / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1102, allocations: 48.69 MB / 316.3 MB, free: 4.535 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.1/8.21, allocations: 2.673 GB / 2.981 GB, free: 74.25 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002795/8.21, allocations: 79.14 kB / 2.982 GB, free: 74.21 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 11.27/19.48, allocations: 2.039 GB / 5.02 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.716e-06/19.48, allocations: 0 / 5.02 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.001096/19.48, allocations: 215.1 kB / 5.02 GB, free: 15.75 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1894 * Number of variables: 1894 Notification: Performance of Generate backend data structure: time 0.05983/19.54, allocations: 9.51 MB / 5.03 GB, free: 11.58 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.601e-05/19.54, allocations: 10.03 kB / 5.03 GB, free: 11.58 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02243/19.56, allocations: 1.93 MB / 5.031 GB, free: 11.12 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03102/19.59, allocations: 7.122 MB / 5.038 GB, free: 9.797 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006171/19.59, allocations: 230.5 kB / 5.039 GB, free: 9.797 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004177/19.6, allocations: 440.8 kB / 5.039 GB, free: 9.781 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.032/19.63, allocations: 11.53 MB / 5.05 GB, free: 9.746 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03528/19.66, allocations: 10.26 MB / 5.06 GB, free: 7.684 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003851/19.66, allocations: 37.06 kB / 5.06 GB, free: 7.664 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002911/19.67, allocations: 21.28 kB / 5.06 GB, free: 7.664 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001211/19.67, allocations: 0.6434 MB / 5.061 GB, free: 7.633 MB / 0.5261 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: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: der(pipe1.mediums[1].p) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8926/20.56, allocations: 119.3 MB / 5.178 GB, free: 19.49 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01582/20.58, allocations: 6.403 MB / 5.184 GB, free: 19.41 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01034/20.59, allocations: 4.132 MB / 5.188 GB, free: 19.36 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2283/20.82, allocations: 64.85 MB / 5.251 GB, free: 9.754 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001496/20.82, allocations: 98.94 kB / 5.251 GB, free: 9.707 MB / 0.6042 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00842/20.82, allocations: 0.6548 MB / 5.252 GB, free: 9.691 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=573): time 4.888e-05/20.83, allocations: 0 / 5.252 GB, free: 9.691 MB / 0.6042 GB Notification: Performance of matching and sorting (n=695): time 0.2788/21.1, allocations: 44.77 MB / 5.296 GB, free: 7.469 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001391/21.1, allocations: 181.2 kB / 5.296 GB, free: 7.332 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008665/21.11, allocations: 3.321 MB / 5.299 GB, free: 6.992 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.002233/21.12, allocations: 33.28 kB / 5.299 GB, free: 6.961 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.003213/21.12, allocations: 3.062 MB / 5.302 GB, free: 5.73 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.004197/21.12, allocations: 2.322 MB / 5.304 GB, free: 3.879 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001659/21.12, allocations: 2.812 kB / 5.304 GB, free: 3.879 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0008102/21.13, allocations: 0.6307 MB / 5.305 GB, free: 3.457 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01211/21.14, allocations: 4.202 MB / 5.309 GB, free: 1.309 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02184/21.16, allocations: 6.468 MB / 5.315 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.7457/21.9, allocations: 26.32 MB / 5.341 GB, free: 99.98 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-05/21.91, allocations: 14.88 kB / 5.341 GB, free: 99.98 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1025) (initialization): time 0.1104/22.02, allocations: 19.44 MB / 5.36 GB, free: 99.73 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.004665/22.02, allocations: 20.2 MB / 5.38 GB, free: 78.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003023/22.02, allocations: 51.8 kB / 5.38 GB, free: 78.7 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1191/22.14, allocations: 13.45 MB / 5.393 GB, free: 78.58 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007588/22.15, allocations: 1.065 MB / 5.394 GB, free: 78.58 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06667/22.21, allocations: 19.25 MB / 5.413 GB, free: 77.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01509/22.23, allocations: 0.7316 MB / 5.414 GB, free: 77.39 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002915/22.23, allocations: 383.7 kB / 5.414 GB, free: 77.39 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/22.23, allocations: 7.062 kB / 5.414 GB, free: 77.39 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.09964/22.33, allocations: 18.19 MB / 5.432 GB, free: 77.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002344/22.33, allocations: 51.12 kB / 5.432 GB, free: 77.18 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1138/22.45, allocations: 12.46 MB / 5.444 GB, free: 77.07 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007922/22.45, allocations: 1.09 MB / 5.445 GB, free: 77.07 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05715/22.51, allocations: 17.72 MB / 5.462 GB, free: 75.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01213/22.52, allocations: 0.7138 MB / 5.463 GB, free: 75.88 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002813/22.53, allocations: 378.1 kB / 5.463 GB, free: 75.88 MB / 0.6198 GB Warning: The initial conditions are over specified. The following 12 initial equations are redundant, so they are removed from the initialization sytem: $DER.pipe1.mediums[2].p = 0.0 $DER.pipe3.mediums[1].p = 0.0 $DER.pipe7.mediums[2].p = 0.0 $DER.pipe9.mediums[1].p = 0.0 $DER.pipe10.mediums[1].p = 0.0 $DER.pipe4.mediums[2].p = 0.0 $DER.pipe5.mediums[1].p = 0.0 $DER.pipe8.mediums[2].p = 0.0 $DER.pipe10.mediums[2].p = 0.0 $DER.pipe11.mediums[1].p = 0.0 $DER.pipe5.mediums[2].p = 0.0 $DER.pipe9.mediums[2].p = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 232 * Number of states: 0 () * Number of discrete variables: 52 (valve3.state_b.phase,valve3.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe11.mediums[2].phase,pipe11.mediums[1].phase,pipe11.state_b.phase,pipe11.state_a.phase,pipe5.mediums[2].phase,pipe5.mediums[1].phase,pipe5.state_b.phase,pipe5.state_a.phase,pipe10.mediums[2].phase,pipe10.mediums[1].phase,pipe10.state_b.phase,pipe10.state_a.phase,pipe9.mediums[2].phase,pipe9.mediums[1].phase,pipe9.state_b.phase,pipe9.state_a.phase,pipe8.mediums[2].phase,pipe8.mediums[1].phase,pipe8.state_b.phase,pipe8.state_a.phase,sink.medium.phase,pipe7.mediums[2].phase,pipe7.mediums[1].phase,pipe7.state_b.phase,pipe7.state_a.phase,pipe6.mediums[2].phase,pipe6.mediums[1].phase,pipe6.state_b.phase,pipe6.state_a.phase,pipe4.mediums[2].phase,pipe4.mediums[1].phase,pipe4.state_b.phase,pipe4.state_a.phase,pipe3.mediums[2].phase,pipe3.mediums[1].phase,pipe3.state_b.phase,pipe3.state_a.phase,pipe2.mediums[2].phase,pipe2.mediums[1].phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.mediums[2].phase,pipe1.mediums[1].phase,pipe1.state_b.phase,pipe1.state_a.phase,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (606): * Single equations (assignments): 604 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 10,30 380} Notification: Performance of prepare postOptimizeDAE: time 0.003816/22.53, allocations: 336.3 kB / 5.464 GB, free: 75.76 MB / 0.6198 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.09099/22.62, allocations: 16.15 MB / 5.479 GB, free: 75.47 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003715/22.62, allocations: 0.6169 MB / 5.48 GB, free: 75.39 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1007/22.73, allocations: 27.55 MB / 5.507 GB, free: 72.35 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000316/22.73, allocations: 221.4 kB / 5.507 GB, free: 72.3 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.634e-05/22.73, allocations: 0 / 5.507 GB, free: 72.3 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.08541/22.81, allocations: 24.33 MB / 5.531 GB, free: 53.27 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7037/23.51, allocations: 46.28 MB / 5.576 GB, free: 101.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001236/23.52, allocations: 17.34 kB / 5.576 GB, free: 101.5 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007605/23.52, allocations: 0.8899 MB / 5.577 GB, free: 101.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03722/23.56, allocations: 6.358 MB / 5.583 GB, free: 101.4 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002124/23.56, allocations: 159.5 kB / 5.583 GB, free: 101.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02775/23.59, allocations: 16.16 MB / 5.599 GB, free: 96.19 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.8e-05/23.59, allocations: 27.5 kB / 5.599 GB, free: 96.19 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1057/23.7, allocations: 32.79 MB / 5.631 GB, free: 91.39 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0079/23.7, allocations: 1.889 MB / 5.633 GB, free: 91.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003554/23.71, allocations: 91.55 kB / 5.633 GB, free: 91.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01105/23.72, allocations: 454.1 kB / 5.634 GB, free: 91.08 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002437/23.72, allocations: 0.4949 MB / 5.634 GB, free: 91.06 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001102/23.72, allocations: 262.4 kB / 5.634 GB, free: 91.06 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.006202/23.73, allocations: 2.324 MB / 5.637 GB, free: 90.88 MB / 0.6198 GB Notification: Performance of sort global known variables: time 8.22e-07/23.73, allocations: 0 / 5.637 GB, free: 90.88 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.03378/23.76, allocations: 5.904 MB / 5.642 GB, free: 90.71 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 79 * Number of states: 31 (pipe1.mediums[1].T,pipe1.mediums[2].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe2.mediums[2].p,pipe2.mediums[2].T,pipe3.mediums[1].T,pipe3.mediums[2].p,pipe3.mediums[2].T,pipe4.mediums[1].p,pipe4.mediums[1].T,pipe4.mediums[2].T,pipe6.mediums[1].p,pipe6.mediums[1].T,pipe6.mediums[2].p,pipe6.mediums[2].T,pipe7.mediums[1].p,pipe7.mediums[1].T,pipe7.mediums[2].T,pipe8.mediums[1].p,pipe8.mediums[1].T,pipe8.mediums[2].T,pipe9.mediums[1].T,pipe9.mediums[2].T,pipe10.mediums[1].T,pipe10.mediums[2].T,pipe5.mediums[1].T,pipe5.mediums[2].T,pipe11.mediums[1].T,pipe11.mediums[2].p,pipe11.mediums[2].T) * Number of discrete variables: 98 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$cse44.phase,$cse44.region,$cse50.phase,$cse50.region,$cse51.phase,$cse51.region,$cse52.phase,$cse52.region,$cse53.phase,$cse53.region,$cse55.phase,$cse55.region,$cse62.phase,$cse62.region,$cse63.phase,$cse63.region,$cse65.phase,$cse65.region,$cse66.phase,$cse66.region,$cse67.phase,$cse67.region,$cse69.phase,$cse69.region,$cse71.phase,$cse71.region,$cse72.phase,$cse72.region,$cse73.phase,$cse73.region,$cse75.phase,$cse75.region,$cse76.phase,$cse76.region,$cse78.phase,$cse78.region,$cse79.phase,$cse79.region,$cse81.phase,$cse81.region,$cse82.phase,$cse82.region,$cse83.phase,$cse83.region,$cse84.phase,$cse84.region,$cse86.phase,$cse86.region,$cse87.phase,$cse87.region,$cse88.phase,$cse88.region,$cse89.phase,$cse89.region,$cse91.phase,$cse91.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (545): * Single equations (assignments): 486 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 49 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 10 {1 10,4 38,2 1,2 1,2 1,2 1,6 64,6 64,6 36,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.1331/23.9, allocations: 42.71 MB / 5.684 GB, free: 80.64 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.05185/23.95, allocations: 18.79 MB / 5.702 GB, free: 78.19 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.949e-05/23.95, allocations: 3.938 kB / 5.702 GB, free: 78.19 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.01965/23.97, allocations: 8.317 MB / 5.71 GB, free: 74.77 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0252/23.99, allocations: 2.56 MB / 5.713 GB, free: 74.3 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07598/24.07, allocations: 24.48 MB / 5.737 GB, free: 53.98 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01173/24.08, allocations: 5.768 MB / 5.743 GB, free: 49.79 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009892/24.09, allocations: 4.177 MB / 5.747 GB, free: 45.91 MB / 0.6198 GB Notification: Performance of SimCode: time 2.014e-06/24.09, allocations: 0 / 5.747 GB, free: 45.91 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.741/32.83, allocations: 426.4 MB / 6.163 GB, free: 66.91 MB / 0.6355 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.IncompressibleFluidNetwork_StandardWaterOnePhase_res.mat does not exist to compare? outputFormat=mat