Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.982/1.982, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.993e-05/2.984e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1064, allocations: 48.69 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.616/7.723, allocations: 2.553 GB / 2.862 GB, free: 33.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/7.723, allocations: 71.34 kB / 2.862 GB, free: 33.77 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.83/10.55, allocations: 485.1 MB / 3.335 GB, free: 25.18 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.877e-06/10.55, allocations: 3.875 kB / 3.335 GB, free: 25.18 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001358/10.55, allocations: 43.67 kB / 3.335 GB, free: 25.18 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01385/10.57, allocations: 2.923 MB / 3.338 GB, free: 23.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/10.57, allocations: 7.188 kB / 3.338 GB, free: 23.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007191/10.57, allocations: 0.6973 MB / 3.339 GB, free: 23.44 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006108/10.58, allocations: 1.579 MB / 3.341 GB, free: 22.67 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002267/10.58, allocations: 92 kB / 3.341 GB, free: 22.66 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008259/10.58, allocations: 104.4 kB / 3.341 GB, free: 22.56 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007352/10.59, allocations: 2.834 MB / 3.343 GB, free: 20.06 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007442/10.6, allocations: 2.876 MB / 3.346 GB, free: 17.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.607e-05/10.6, allocations: 11.84 kB / 3.346 GB, free: 17.51 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003825/10.6, allocations: 4 kB / 3.346 GB, free: 17.5 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002368/10.6, allocations: 167.3 kB / 3.346 GB, free: 17.36 MB / 426.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.7597/11.36, allocations: 140.5 MB / 3.484 GB, free: 20.75 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004042/11.36, allocations: 1.567 MB / 3.485 GB, free: 20.72 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002162/11.36, allocations: 0.9733 MB / 3.486 GB, free: 20.71 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05278/11.42, allocations: 16.72 MB / 3.502 GB, free: 25.93 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00268/11.42, allocations: 1.139 MB / 3.504 GB, free: 25.83 MB / 490.7 MB Notification: Performance of pre-optimization done (n=139): time 5.26e-06/11.42, allocations: 0 / 3.504 GB, free: 25.83 MB / 490.7 MB Notification: Performance of matching and sorting (n=159): time 0.03028/11.45, allocations: 7.398 MB / 3.511 GB, free: 24.84 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001681/11.45, allocations: 230.2 kB / 3.511 GB, free: 24.59 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001928/11.45, allocations: 0.9146 MB / 3.512 GB, free: 24.43 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005616/11.45, allocations: 33.28 kB / 3.512 GB, free: 24.4 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009142/11.45, allocations: 0.8901 MB / 3.513 GB, free: 23.96 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009245/11.45, allocations: 0.5336 MB / 3.513 GB, free: 23.69 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002748/11.45, allocations: 4 kB / 3.513 GB, free: 23.68 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002516/11.45, allocations: 401.6 kB / 3.514 GB, free: 23.37 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002689/11.46, allocations: 1.124 MB / 3.515 GB, free: 23.36 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003318/11.46, allocations: 1.661 MB / 3.516 GB, free: 22.74 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01035/11.47, allocations: 2.002 MB / 3.518 GB, free: 22.68 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.053e-05/11.47, allocations: 9.344 kB / 3.518 GB, free: 22.68 MB / 490.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01685/11.49, allocations: 4.384 MB / 3.523 GB, free: 22.52 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002627/11.49, allocations: 6.275 MB / 3.529 GB, free: 15.94 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-05/11.49, allocations: 22.47 kB / 3.529 GB, free: 15.94 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01835/11.51, allocations: 2.737 MB / 3.531 GB, free: 15.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00245/11.51, allocations: 334.5 kB / 3.532 GB, free: 15.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01099/11.52, allocations: 4.238 MB / 3.536 GB, free: 15.25 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004268/11.53, allocations: 252.8 kB / 3.536 GB, free: 15.22 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005063/11.53, allocations: 105.4 kB / 3.536 GB, free: 15.22 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/11.53, allocations: 5.844 kB / 3.536 GB, free: 15.22 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01587/11.54, allocations: 3.884 MB / 3.54 GB, free: 15.13 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.166e-05/11.54, allocations: 14.22 kB / 3.54 GB, free: 15.13 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0125/11.56, allocations: 2.041 MB / 3.542 GB, free: 15.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002716/11.56, allocations: 368.6 kB / 3.542 GB, free: 15.07 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006708/11.57, allocations: 3.237 MB / 3.546 GB, free: 13.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003446/11.57, allocations: 226.1 kB / 3.546 GB, free: 13.81 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003964/11.57, allocations: 102.8 kB / 3.546 GB, free: 13.73 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,source.medium.phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.0008299/11.57, allocations: 174.7 kB / 3.546 GB, free: 13.61 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00827/11.58, allocations: 2.462 MB / 3.548 GB, free: 12.18 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006906/11.58, allocations: 141 kB / 3.549 GB, free: 12.04 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01248/11.59, allocations: 5.654 MB / 3.554 GB, free: 9.016 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.097e-05/11.59, allocations: 69.19 kB / 3.554 GB, free: 8.988 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/11.59, allocations: 0 / 3.554 GB, free: 8.988 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01053/11.6, allocations: 5.11 MB / 3.559 GB, free: 5.941 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02019/11.62, allocations: 8.408 MB / 3.567 GB, free: 1.234 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.962e-05/11.62, allocations: 3.953 kB / 3.567 GB, free: 1.23 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003573/11.63, allocations: 400.8 kB / 3.568 GB, free: 0.9219 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001925/11.63, allocations: 409.8 kB / 3.568 GB, free: 0.6133 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004691/11.63, allocations: 41.56 kB / 3.568 GB, free: 0.582 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3305/11.96, allocations: 3.344 MB / 3.572 GB, free: 92.33 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.948e-06/11.96, allocations: 1.953 kB / 3.572 GB, free: 92.33 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01673/11.98, allocations: 6.251 MB / 3.578 GB, free: 91.99 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002257/11.98, allocations: 0.5632 MB / 3.578 GB, free: 91.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008592/11.98, allocations: 18.44 kB / 3.578 GB, free: 91.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003581/11.98, allocations: 169.2 kB / 3.578 GB, free: 91.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001009/11.98, allocations: 167.9 kB / 3.578 GB, free: 91.89 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003285/11.98, allocations: 62.2 kB / 3.579 GB, free: 91.89 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001647/11.99, allocations: 0.6576 MB / 3.579 GB, free: 91.79 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.11e-07/11.99, allocations: 0.9844 kB / 3.579 GB, free: 91.79 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01294/12, allocations: 2.171 MB / 3.581 GB, free: 91.79 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 34 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse21.phase,$cse21.region,$cse27.phase,$cse27.region,$cse31.phase,$cse31.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 160 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02961/12.03, allocations: 8.909 MB / 3.59 GB, free: 90.62 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01362/12.04, allocations: 4.815 MB / 3.595 GB, free: 90.54 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/12.04, allocations: 0 / 3.595 GB, free: 90.54 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005658/12.05, allocations: 2.069 MB / 3.597 GB, free: 90.54 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005853/12.05, allocations: 0.5688 MB / 3.597 GB, free: 90.52 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02094/12.08, allocations: 6.157 MB / 3.603 GB, free: 89.45 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001795/12.08, allocations: 1.908 MB / 3.605 GB, free: 88.71 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002386/12.08, allocations: 1.001 MB / 3.606 GB, free: 88.7 MB / 490.7 MB Notification: Performance of SimCode: time 1.493e-06/12.08, allocations: 0 / 3.606 GB, free: 88.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.516/16.6, allocations: 91.65 MB / 3.696 GB, free: 65.28 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat