Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.395/2.395, allocations: 235.1 MB / 242.2 MB, free: 15.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.597e-05/3.601e-05, allocations: 7.984 kB / 299.5 MB, free: 6.508 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3897/0.3897, allocations: 54.85 MB / 354.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.832/8.222, allocations: 2.659 GB / 3.005 GB, free: 116.5 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002836/8.222, allocations: 83.5 kB / 3.006 GB, free: 116.5 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.999/13.22, allocations: 0.8909 GB / 3.896 GB, free: 35.53 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.785e-06/13.22, allocations: 0 / 3.896 GB, free: 35.53 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003521/13.22, allocations: 60.42 kB / 3.896 GB, free: 35.52 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.0191/13.24, allocations: 4.038 MB / 3.9 GB, free: 33.8 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/13.24, allocations: 11.16 kB / 3.9 GB, free: 33.8 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009519/13.25, allocations: 0.8718 MB / 3.901 GB, free: 33.66 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009766/13.26, allocations: 2.069 MB / 3.903 GB, free: 33.22 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003051/13.26, allocations: 94.34 kB / 3.903 GB, free: 33.22 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001186/13.26, allocations: 120.2 kB / 3.904 GB, free: 33.21 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008311/13.27, allocations: 2.664 MB / 3.906 GB, free: 33.2 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009874/13.28, allocations: 2.869 MB / 3.909 GB, free: 32.69 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.531e-05/13.28, allocations: 7.562 kB / 3.909 GB, free: 32.69 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004546/13.28, allocations: 6.406 kB / 3.909 GB, free: 32.69 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003268/13.28, allocations: 171.7 kB / 3.909 GB, free: 32.69 MB / 0.5105 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.3965/13.68, allocations: 109.5 MB / 4.016 GB, free: 23.55 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004807/13.68, allocations: 2.072 MB / 4.018 GB, free: 22.95 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002372/13.68, allocations: 0.9645 MB / 4.019 GB, free: 22.93 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05457/13.74, allocations: 17.53 MB / 4.036 GB, free: 11.37 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003032/13.74, allocations: 1.167 MB / 4.037 GB, free: 11.2 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=153): time 5.43e-06/13.74, allocations: 0 / 4.037 GB, free: 11.2 MB / 0.5573 GB Notification: Performance of matching and sorting (n=169): time 0.03687/13.78, allocations: 7.778 MB / 4.045 GB, free: 9.449 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002369/13.78, allocations: 362.7 kB / 4.045 GB, free: 9.043 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002767/13.78, allocations: 1.141 MB / 4.046 GB, free: 8.859 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006109/13.78, allocations: 33.14 kB / 4.046 GB, free: 8.824 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001313/13.78, allocations: 1.041 MB / 4.047 GB, free: 8.348 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001125/13.79, allocations: 0.5457 MB / 4.048 GB, free: 7.992 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002716/13.79, allocations: 0 / 4.048 GB, free: 7.992 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002756/13.79, allocations: 388.9 kB / 4.048 GB, free: 7.688 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002309/13.79, allocations: 0.9897 MB / 4.049 GB, free: 7.684 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002839/13.79, allocations: 1.449 MB / 4.051 GB, free: 7.176 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0195/13.81, allocations: 2.784 MB / 4.053 GB, free: 7.105 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.202e-05/13.81, allocations: 7.781 kB / 4.053 GB, free: 7.102 MB / 0.5573 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.02492/13.84, allocations: 4.432 MB / 4.058 GB, free: 6.855 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002394/13.84, allocations: 4.948 MB / 4.063 GB, free: 17.76 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.149e-05/13.84, allocations: 13.92 kB / 4.063 GB, free: 17.76 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/13.84, allocations: 219.4 kB / 4.063 GB, free: 17.73 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004497/13.84, allocations: 0.5154 MB / 4.063 GB, free: 17.73 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002373/13.85, allocations: 2.459 MB / 4.066 GB, free: 15.64 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004579/13.85, allocations: 272.9 kB / 4.066 GB, free: 15.6 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006732/13.85, allocations: 107.7 kB / 4.066 GB, free: 15.6 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/13.85, allocations: 3.375 kB / 4.066 GB, free: 15.6 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0228/13.87, allocations: 4 MB / 4.07 GB, free: 13.71 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.586e-05/13.88, allocations: 12 kB / 4.07 GB, free: 13.7 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008256/13.88, allocations: 223 kB / 4.07 GB, free: 13.56 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004231/13.88, allocations: 0.5071 MB / 4.071 GB, free: 13.18 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002315/13.88, allocations: 2.46 MB / 4.073 GB, free: 10.86 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004042/13.89, allocations: 240.6 kB / 4.073 GB, free: 10.68 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006038/13.89, allocations: 100.5 kB / 4.073 GB, free: 10.61 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 30 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,splitter.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 241 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0008807/13.89, allocations: 244.1 kB / 4.074 GB, free: 10.4 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009144/13.9, allocations: 2.441 MB / 4.076 GB, free: 8.941 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008584/13.9, allocations: 194.3 kB / 4.076 GB, free: 8.754 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01529/13.91, allocations: 6.288 MB / 4.082 GB, free: 5.297 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001032/13.91, allocations: 74.02 kB / 4.082 GB, free: 5.266 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.344e-05/13.91, allocations: 3.188 kB / 4.082 GB, free: 5.266 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01219/13.93, allocations: 5.264 MB / 4.088 GB, free: 2.113 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4628/14.39, allocations: 9.084 MB / 4.096 GB, free: 95.04 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.35e-05/14.39, allocations: 1.969 kB / 4.096 GB, free: 95.04 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003232/14.39, allocations: 365.8 kB / 4.097 GB, free: 95.04 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001458/14.39, allocations: 316.6 kB / 4.097 GB, free: 95.01 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005249/14.39, allocations: 41.25 kB / 4.097 GB, free: 95.01 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002028/14.4, allocations: 2.631 MB / 4.1 GB, free: 92.95 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.201e-05/14.4, allocations: 3.219 kB / 4.1 GB, free: 92.95 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01533/14.41, allocations: 6.238 MB / 4.106 GB, free: 92.54 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002455/14.41, allocations: 0.6937 MB / 4.106 GB, free: 92.44 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009489/14.42, allocations: 19.72 kB / 4.106 GB, free: 92.44 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003388/14.42, allocations: 174.2 kB / 4.107 GB, free: 92.44 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006159/14.42, allocations: 142.9 kB / 4.107 GB, free: 92.44 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002588/14.42, allocations: 67.58 kB / 4.107 GB, free: 92.44 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002296/14.42, allocations: 1.039 MB / 4.108 GB, free: 92.33 MB / 0.573 GB Notification: Performance of sort global known variables: time 5.91e-07/14.42, allocations: 0 / 4.108 GB, free: 92.33 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01375/14.44, allocations: 2.703 MB / 4.111 GB, free: 92.33 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 46 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,splitter.medium.phase) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 158 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03053/14.47, allocations: 10.06 MB / 4.12 GB, free: 90.94 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01222/14.48, allocations: 4.757 MB / 4.125 GB, free: 90.64 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/14.48, allocations: 0 / 4.125 GB, free: 90.64 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004822/14.48, allocations: 2.148 MB / 4.127 GB, free: 90.5 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008046/14.49, allocations: 0.8612 MB / 4.128 GB, free: 90.49 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02166/14.51, allocations: 6.774 MB / 4.135 GB, free: 89.25 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002631/14.52, allocations: 2.197 MB / 4.137 GB, free: 88.48 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.008795/14.52, allocations: 2.56 MB / 4.139 GB, free: 88.45 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003001/14.53, allocations: 1.228 MB / 4.14 GB, free: 88.44 MB / 0.573 GB Notification: Performance of SimCode: time 1.463e-06/14.53, allocations: 3 kB / 4.14 GB, free: 88.44 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2605/14.79, allocations: 101.4 MB / 4.239 GB, free: 76.22 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002384/14.79, allocations: 184 kB / 4.24 GB, free: 76.02 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.437/22.23, allocations: 0 / 4.24 GB, free: 76.02 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat