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.545/2.545, allocations: 235 MB / 247.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.934e-05/3.935e-05, allocations: 8 kB / 305 MB, free: 5.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4233/0.4233, allocations: 54.85 MB / 359.9 MB, free: 3.156 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.161/8.585, allocations: 2.664 GB / 3.015 GB, free: 95.09 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002645/8.585, allocations: 81.52 kB / 3.015 GB, free: 95.05 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.827/11.41, allocations: 0.489 GB / 3.504 GB, free: 38.48 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.365e-06/11.41, allocations: 0 / 3.504 GB, free: 38.48 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002122/11.41, allocations: 40.16 kB / 3.504 GB, free: 38.48 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.01699/11.43, allocations: 2.98 MB / 3.507 GB, free: 37.45 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.328e-05/11.43, allocations: 14.38 kB / 3.507 GB, free: 37.45 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001273/11.43, allocations: 280.5 kB / 3.507 GB, free: 37.4 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008096/11.44, allocations: 0.7084 MB / 3.508 GB, free: 37.29 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006934/11.45, allocations: 1.577 MB / 3.51 GB, free: 36.93 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000333/11.45, allocations: 168.2 kB / 3.51 GB, free: 36.93 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001156/11.45, allocations: 183.2 kB / 3.51 GB, free: 36.93 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01179/11.46, allocations: 3.519 MB / 3.513 GB, free: 36.48 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.917e-05/11.46, allocations: 7.875 kB / 3.513 GB, free: 36.48 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004013/11.46, allocations: 80.58 kB / 3.514 GB, free: 36.48 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002488/11.46, allocations: 176.2 kB / 3.514 GB, free: 36.47 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0113/11.47, allocations: 3.33 MB / 3.517 GB, free: 36.46 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.03208/11.5, allocations: 14.13 MB / 3.531 GB, free: 28.71 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007578/11.51, allocations: 2.145 MB / 3.533 GB, free: 28.58 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002932/11.51, allocations: 1.077 MB / 3.534 GB, free: 28.54 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2103/11.72, allocations: 63.65 MB / 3.596 GB, free: 21.05 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005747/11.73, allocations: 1.687 MB / 3.598 GB, free: 20.91 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=154): time 6.963e-06/11.73, allocations: 5.781 kB / 3.598 GB, free: 20.91 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.02795/11.76, allocations: 8.156 MB / 3.606 GB, free: 19.29 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001812/11.76, allocations: 287.2 kB / 3.606 GB, free: 18.98 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002442/11.76, allocations: 1.18 MB / 3.607 GB, free: 18.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005783/11.76, allocations: 60.33 kB / 3.607 GB, free: 18.77 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008157/11.76, allocations: 0.8219 MB / 3.608 GB, free: 18.38 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008301/11.76, allocations: 0.5941 MB / 3.609 GB, free: 18 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002358/11.76, allocations: 44.91 kB / 3.609 GB, free: 18 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002432/11.76, allocations: 390 kB / 3.609 GB, free: 17.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002775/11.77, allocations: 1.144 MB / 3.61 GB, free: 17.68 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003112/11.77, allocations: 1.691 MB / 3.612 GB, free: 17.05 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003296/11.77, allocations: 1.379 MB / 3.613 GB, free: 17 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.577e-05/11.77, allocations: 3.969 kB / 3.613 GB, free: 17 MB / 0.5105 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.009873/11.78, allocations: 3.975 MB / 3.617 GB, free: 16.82 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.003091/11.79, allocations: 6.277 MB / 3.623 GB, free: 26.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.833e-05/11.79, allocations: 18.78 kB / 3.623 GB, free: 26.23 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02567/11.81, allocations: 3.441 MB / 3.626 GB, free: 26.12 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002443/11.81, allocations: 333.4 kB / 3.627 GB, free: 26.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009003/11.82, allocations: 3.815 MB / 3.631 GB, free: 25.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004413/11.83, allocations: 278.4 kB / 3.631 GB, free: 25.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004499/11.83, allocations: 108.1 kB / 3.631 GB, free: 25.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/11.83, allocations: 7.781 kB / 3.631 GB, free: 25.5 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009973/11.84, allocations: 3.575 MB / 3.634 GB, free: 25.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.159e-05/11.84, allocations: 16.78 kB / 3.634 GB, free: 25.43 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01475/11.85, allocations: 2.266 MB / 3.637 GB, free: 25.36 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002815/11.86, allocations: 363.8 kB / 3.637 GB, free: 25.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006549/11.86, allocations: 3.106 MB / 3.64 GB, free: 24.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004123/11.87, allocations: 268.3 kB / 3.64 GB, free: 24.75 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005589/11.87, allocations: 106.4 kB / 3.64 GB, free: 24.75 MB / 0.5261 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 (source.medium.phase,$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,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.0008744/11.87, allocations: 223.8 kB / 3.641 GB, free: 24.64 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005581/11.87, allocations: 170.4 kB / 3.641 GB, free: 24.55 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01332/11.88, allocations: 6.758 MB / 3.647 GB, free: 23.29 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.804e-05/11.88, allocations: 75.52 kB / 3.647 GB, free: 23.27 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/11.88, allocations: 3.656 kB / 3.647 GB, free: 23.27 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009942/11.89, allocations: 5.445 MB / 3.653 GB, free: 20.73 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01951/11.91, allocations: 9.465 MB / 3.662 GB, free: 14.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.462e-05/11.91, allocations: 4 kB / 3.662 GB, free: 14.18 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003887/11.92, allocations: 439.7 kB / 3.662 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002448/11.92, allocations: 445.5 kB / 3.663 GB, free: 13.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005647/11.92, allocations: 66.59 kB / 3.663 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002665/11.92, allocations: 3.211 MB / 3.666 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/11.92, allocations: 0 / 3.666 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01458/11.94, allocations: 6.748 MB / 3.673 GB, free: 4.117 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002768/11.94, allocations: 0.7652 MB / 3.673 GB, free: 3.449 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007205/11.94, allocations: 55.14 kB / 3.673 GB, free: 3.402 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003257/11.94, allocations: 216.8 kB / 3.674 GB, free: 3.242 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006308/11.94, allocations: 185.4 kB / 3.674 GB, free: 3.133 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002492/11.94, allocations: 67.31 kB / 3.674 GB, free: 3.074 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003037/11.95, allocations: 1.22 MB / 3.675 GB, free: 1.969 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.81e-07/11.95, allocations: 0 / 3.675 GB, free: 1.969 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01552/11.96, allocations: 2.524 MB / 3.677 GB, free: 0 / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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: 39 ($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,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.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,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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.4136/12.38, allocations: 9.543 MB / 3.687 GB, free: 80.99 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01634/12.39, allocations: 5.113 MB / 3.692 GB, free: 80.89 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.193e-05/12.39, allocations: 4.312 kB / 3.692 GB, free: 80.89 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006699/12.4, allocations: 2.272 MB / 3.694 GB, free: 80.89 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007931/12.41, allocations: 0.7971 MB / 3.695 GB, free: 80.87 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02517/12.43, allocations: 6.814 MB / 3.701 GB, free: 79.81 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003459/12.44, allocations: 2.061 MB / 3.703 GB, free: 79.07 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008692/12.45, allocations: 1.62 MB / 3.705 GB, free: 79.04 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003461/12.45, allocations: 1.132 MB / 3.706 GB, free: 79.03 MB / 0.5261 GB Notification: Performance of SimCode: time 1.593e-06/12.45, allocations: 0 / 3.706 GB, free: 79.03 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3182/12.77, allocations: 112.1 MB / 3.816 GB, free: 59.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003156/12.77, allocations: 244.6 kB / 3.816 GB, free: 59.28 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.661/20.43, allocations: 0 / 3.816 GB, free: 59.28 MB / 0.5261 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