Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.417/2.417, allocations: 235.1 MB / 242.2 MB, free: 15.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.458e-05/2.467e-05, allocations: 0 / 299.5 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3896/0.3896, allocations: 54.85 MB / 354.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.021/8.411, allocations: 2.663 GB / 3.009 GB, free: 113.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/8.411, allocations: 82.56 kB / 3.009 GB, free: 113.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.377/10.79, allocations: 495.7 MB / 3.493 GB, free: 7.531 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.124e-06/10.79, allocations: 0 / 3.493 GB, free: 7.531 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000134/10.79, allocations: 43.91 kB / 3.493 GB, free: 7.492 MB / 490.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.01407/10.8, allocations: 2.985 MB / 3.496 GB, free: 4.461 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/10.8, allocations: 12.03 kB / 3.496 GB, free: 4.449 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007405/10.81, allocations: 0.7156 MB / 3.497 GB, free: 3.73 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006201/10.82, allocations: 1.573 MB / 3.498 GB, free: 2.129 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002751/10.82, allocations: 91.97 kB / 3.499 GB, free: 2.039 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001186/10.82, allocations: 111.8 kB / 3.499 GB, free: 1.93 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3919/11.21, allocations: 2.831 MB / 3.501 GB, free: 40.07 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009113/11.22, allocations: 2.867 MB / 3.504 GB, free: 39.63 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.875e-05/11.22, allocations: 7.188 kB / 3.504 GB, free: 39.63 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003901/11.22, allocations: 8.016 kB / 3.504 GB, free: 39.63 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003499/11.22, allocations: 174.9 kB / 3.504 GB, free: 39.63 MB / 490.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.4408/11.66, allocations: 140.5 MB / 3.642 GB, free: 32.89 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004069/11.66, allocations: 1.568 MB / 3.643 GB, free: 32.86 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002304/11.67, allocations: 0.9898 MB / 3.644 GB, free: 32.84 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05249/11.72, allocations: 16.72 MB / 3.661 GB, free: 22.04 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002869/11.72, allocations: 1.137 MB / 3.662 GB, free: 21.94 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=139): time 6.131e-06/11.72, allocations: 4 kB / 3.662 GB, free: 21.93 MB / 0.5573 GB Notification: Performance of matching and sorting (n=159): time 0.03087/11.75, allocations: 7.388 MB / 3.669 GB, free: 20.9 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001677/11.75, allocations: 228.7 kB / 3.669 GB, free: 20.65 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001986/11.76, allocations: 0.9187 MB / 3.67 GB, free: 20.49 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005942/11.76, allocations: 25.7 kB / 3.67 GB, free: 20.46 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009391/11.76, allocations: 0.8883 MB / 3.671 GB, free: 20.08 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009181/11.76, allocations: 0.5323 MB / 3.671 GB, free: 19.81 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002441/11.76, allocations: 0 / 3.671 GB, free: 19.81 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003421/11.76, allocations: 452.4 kB / 3.672 GB, free: 19.49 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002647/11.76, allocations: 1.125 MB / 3.673 GB, free: 19.48 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003161/11.76, allocations: 1.663 MB / 3.675 GB, free: 18.86 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01042/11.78, allocations: 2.006 MB / 3.676 GB, free: 18.8 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-05/11.78, allocations: 8.656 kB / 3.676 GB, free: 18.8 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01716/11.79, allocations: 4.432 MB / 3.681 GB, free: 18.62 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.3912/12.18, allocations: 6.265 MB / 3.687 GB, free: 116.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.731e-05/12.18, allocations: 15.66 kB / 3.687 GB, free: 116.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01992/12.2, allocations: 2.745 MB / 3.69 GB, free: 116.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002619/12.21, allocations: 334.4 kB / 3.69 GB, free: 116.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01225/12.22, allocations: 4.241 MB / 3.694 GB, free: 116.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004546/12.22, allocations: 256.8 kB / 3.694 GB, free: 116.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007681/12.22, allocations: 106.7 kB / 3.694 GB, free: 116.2 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/12.22, allocations: 2.812 kB / 3.694 GB, free: 116.2 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01596/12.24, allocations: 3.88 MB / 3.698 GB, free: 116.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.607e-05/12.24, allocations: 17.5 kB / 3.698 GB, free: 116.1 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01358/12.25, allocations: 2.122 MB / 3.7 GB, free: 116.1 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002732/12.26, allocations: 365.3 kB / 3.701 GB, free: 116.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006542/12.26, allocations: 3.238 MB / 3.704 GB, free: 115.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003871/12.27, allocations: 225.7 kB / 3.704 GB, free: 115.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004965/12.27, allocations: 106.1 kB / 3.704 GB, free: 115.5 MB / 0.5573 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: 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.0008044/12.27, allocations: 177.2 kB / 3.704 GB, free: 115.4 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008353/12.28, allocations: 2.45 MB / 3.707 GB, free: 115.3 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000767/12.28, allocations: 145.3 kB / 3.707 GB, free: 115.3 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01248/12.29, allocations: 5.644 MB / 3.712 GB, free: 115 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.708e-05/12.29, allocations: 69.53 kB / 3.712 GB, free: 115 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.408e-05/12.29, allocations: 0.5156 kB / 3.712 GB, free: 115 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01019/12.3, allocations: 5.126 MB / 3.717 GB, free: 114.3 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02478/12.33, allocations: 8.398 MB / 3.726 GB, free: 113.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.504e-05/12.33, allocations: 0 / 3.726 GB, free: 113.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003444/12.33, allocations: 393.6 kB / 3.726 GB, free: 113.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001803/12.33, allocations: 422.1 kB / 3.726 GB, free: 113.6 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004848/12.33, allocations: 37.38 kB / 3.726 GB, free: 113.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002451/12.33, allocations: 3.349 MB / 3.73 GB, free: 111 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.957e-06/12.33, allocations: 3.891 kB / 3.73 GB, free: 111 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01448/12.35, allocations: 6.245 MB / 3.736 GB, free: 110.5 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002185/12.35, allocations: 0.5695 MB / 3.736 GB, free: 110.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008037/12.35, allocations: 18.06 kB / 3.736 GB, free: 110.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003198/12.35, allocations: 171.9 kB / 3.737 GB, free: 110.3 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006155/12.36, allocations: 165.5 kB / 3.737 GB, free: 110.3 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002133/12.36, allocations: 64.02 kB / 3.737 GB, free: 110.3 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001278/12.36, allocations: 0.6624 MB / 3.737 GB, free: 110.2 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6.02e-07/12.36, allocations: 0.5625 kB / 3.737 GB, free: 110.2 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01085/12.37, allocations: 2.176 MB / 3.74 GB, free: 110.2 MB / 0.5573 GB 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.02592/12.39, allocations: 8.92 MB / 3.748 GB, free: 109 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01293/12.41, allocations: 4.841 MB / 3.753 GB, free: 108.9 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.026e-05/12.41, allocations: 3.312 kB / 3.753 GB, free: 108.9 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005434/12.41, allocations: 2.076 MB / 3.755 GB, free: 108.9 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005501/12.42, allocations: 0.5557 MB / 3.756 GB, free: 108.9 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0194/12.44, allocations: 6.087 MB / 3.762 GB, free: 107.9 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00191/12.44, allocations: 1.922 MB / 3.763 GB, free: 107.1 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.006558/12.45, allocations: 1.687 MB / 3.765 GB, free: 107.1 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002542/12.45, allocations: 0.9756 MB / 3.766 GB, free: 107.1 MB / 0.5573 GB Notification: Performance of SimCode: time 1.552e-06/12.45, allocations: 0 / 3.766 GB, free: 107.1 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2319/12.68, allocations: 93.16 MB / 3.857 GB, free: 72.64 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002443/12.68, allocations: 192.2 kB / 3.857 GB, free: 72.45 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.425/19.11, allocations: 0 / 3.857 GB, free: 72.45 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat