Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.367/2.367, allocations: 235 MB / 247.6 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.42e-05/3.433e-05, allocations: 4 kB / 305 MB, free: 5.574 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3923/0.3923, allocations: 54.86 MB / 359.9 MB, free: 2.344 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.028/8.421, allocations: 2.652 GB / 3.004 GB, free: 107.1 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002701/8.421, allocations: 78.89 kB / 3.004 GB, free: 107 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.262/12.68, allocations: 0.7406 GB / 3.744 GB, free: 34.64 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.356e-06/12.68, allocations: 3.328 kB / 3.744 GB, free: 34.64 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001552/12.68, allocations: 35.47 kB / 3.744 GB, free: 34.63 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.01364/12.7, allocations: 2.762 MB / 3.747 GB, free: 33.35 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/12.7, allocations: 10.28 kB / 3.747 GB, free: 33.35 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006473/12.7, allocations: 157.3 kB / 3.747 GB, free: 33.31 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005219/12.7, allocations: 472.5 kB / 3.748 GB, free: 33.24 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004507/12.71, allocations: 1.124 MB / 3.749 GB, free: 32.92 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002647/12.71, allocations: 148.1 kB / 3.749 GB, free: 32.86 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005761/12.71, allocations: 95.97 kB / 3.749 GB, free: 32.86 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006252/12.71, allocations: 1.866 MB / 3.751 GB, free: 32.52 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.229e-05/12.72, allocations: 10.66 kB / 3.751 GB, free: 32.52 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002489/12.72, allocations: 44.86 kB / 3.751 GB, free: 32.52 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001654/12.72, allocations: 81.86 kB / 3.751 GB, free: 32.51 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006106/12.72, allocations: 1.695 MB / 3.753 GB, free: 32.51 MB / 0.4948 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: Performance of preOpt removeSimpleEquations (simulation): time 0.01927/12.74, allocations: 8.531 MB / 3.761 GB, free: 27.61 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004709/12.75, allocations: 1.371 MB / 3.762 GB, free: 27.3 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001309/12.75, allocations: 468.3 kB / 3.763 GB, free: 27.26 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.209/12.96, allocations: 63.49 MB / 3.825 GB, free: 19.8 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003288/12.96, allocations: 0.8986 MB / 3.826 GB, free: 19.65 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=82): time 4.81e-06/12.96, allocations: 0 / 3.826 GB, free: 19.65 MB / 0.5261 GB Notification: Performance of matching and sorting (n=86): time 0.01345/12.97, allocations: 3.737 MB / 3.829 GB, free: 18.54 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002439/12.97, allocations: 408 kB / 3.83 GB, free: 18.07 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002062/12.98, allocations: 0.9262 MB / 3.831 GB, free: 17.89 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000343/12.98, allocations: 39.23 kB / 3.831 GB, free: 17.86 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005917/12.98, allocations: 0.5573 MB / 3.831 GB, free: 17.54 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005018/12.98, allocations: 307.7 kB / 3.832 GB, free: 17.36 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/12.98, allocations: 25.38 kB / 3.832 GB, free: 17.36 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001901/12.98, allocations: 359.5 kB / 3.832 GB, free: 17.04 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001384/12.98, allocations: 483.2 kB / 3.832 GB, free: 17.04 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001807/12.98, allocations: 0.9372 MB / 3.833 GB, free: 16.46 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001818/12.98, allocations: 0.6217 MB / 3.834 GB, free: 16.43 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.881e-05/12.98, allocations: 6.875 kB / 3.834 GB, free: 16.43 MB / 0.5261 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.005125/12.99, allocations: 1.665 MB / 3.836 GB, free: 16.34 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002289/12.99, allocations: 5.408 MB / 3.841 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.165e-05/12.99, allocations: 19.28 kB / 3.841 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009955/13, allocations: 1.056 MB / 3.842 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001963/13, allocations: 250.4 kB / 3.842 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003173/13.01, allocations: 1.438 MB / 3.844 GB, free: 10.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002749/13.01, allocations: 127.2 kB / 3.844 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004042/13.01, allocations: 69.28 kB / 3.844 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/13.01, allocations: 3.812 kB / 3.844 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00479/13.01, allocations: 1.486 MB / 3.845 GB, free: 10.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.325e-05/13.01, allocations: 15.5 kB / 3.845 GB, free: 10.03 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002039/13.02, allocations: 336.7 kB / 3.845 GB, free: 10.01 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002204/13.02, allocations: 282.8 kB / 3.846 GB, free: 10.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002212/13.02, allocations: 1.013 MB / 3.847 GB, free: 25.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002082/13.02, allocations: 135.2 kB / 3.847 GB, free: 25.46 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002762/13.02, allocations: 67.83 kB / 3.847 GB, free: 25.46 MB / 0.5417 GB 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: 62 * Number of states: 0 () * Number of discrete variables: 19 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.0006981/13.02, allocations: 200.7 kB / 3.847 GB, free: 25.34 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004448/13.02, allocations: 125.5 kB / 3.847 GB, free: 25.28 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00758/13.03, allocations: 3.965 MB / 3.851 GB, free: 24.83 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.658e-05/13.03, allocations: 45.78 kB / 3.851 GB, free: 24.83 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.347e-05/13.03, allocations: 3.953 kB / 3.851 GB, free: 24.82 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-05/13.03, allocations: 7.125 kB / 3.851 GB, free: 24.82 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01081/13.04, allocations: 5.478 MB / 3.857 GB, free: 24.19 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.149e-05/13.04, allocations: 7.578 kB / 3.857 GB, free: 24.18 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001482/13.04, allocations: 178 kB / 3.857 GB, free: 24.18 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01085/13.05, allocations: 1.767 MB / 3.858 GB, free: 24.1 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002639/13.05, allocations: 31.88 kB / 3.858 GB, free: 24.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002633/13.06, allocations: 2.089 MB / 3.861 GB, free: 22.69 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/13.06, allocations: 3 kB / 3.861 GB, free: 22.69 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00697/13.06, allocations: 3.803 MB / 3.864 GB, free: 19.89 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001525/13.07, allocations: 0.5336 MB / 3.865 GB, free: 19.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005302/13.07, allocations: 24 kB / 3.865 GB, free: 19.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001958/13.07, allocations: 91.36 kB / 3.865 GB, free: 19.33 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002772/13.07, allocations: 83.67 kB / 3.865 GB, free: 19.28 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/13.07, allocations: 34.95 kB / 3.865 GB, free: 19.25 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002354/13.07, allocations: 1.033 MB / 3.866 GB, free: 18.29 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.81e-07/13.07, allocations: 0 / 3.866 GB, free: 18.29 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01042/13.08, allocations: 2.058 MB / 3.868 GB, free: 16.28 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 25 ($cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 1 * 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 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.02131/13.1, allocations: 6.633 MB / 3.874 GB, free: 10.37 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.007532/13.11, allocations: 2.214 MB / 3.877 GB, free: 8.355 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.547e-05/13.11, allocations: 8.125 kB / 3.877 GB, free: 8.348 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00258/13.11, allocations: 0.9749 MB / 3.878 GB, free: 7.43 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006329/13.12, allocations: 0.6446 MB / 3.878 GB, free: 6.965 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01444/13.13, allocations: 3.826 MB / 3.882 GB, free: 3.48 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001441/13.14, allocations: 1.472 MB / 3.883 GB, free: 2.25 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001634/13.14, allocations: 0.7251 MB / 3.884 GB, free: 1.582 MB / 0.5417 GB Notification: Performance of SimCode: time 3.337e-06/13.14, allocations: 0 / 3.884 GB, free: 1.582 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.919/18.06, allocations: 67.45 MB / 3.95 GB, free: 72.67 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat does not exist to compare? outputFormat=mat