Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.357/2.357, allocations: 235 MB / 247.2 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.535e-05/3.545e-05, allocations: 0 / 305 MB, free: 5.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5683/0.5684, allocations: 54.86 MB / 359.9 MB, free: 3.172 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.975/8.544, allocations: 2.673 GB / 3.025 GB, free: 86.77 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/8.544, allocations: 82.31 kB / 3.025 GB, free: 86.73 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.129/13.67, allocations: 0.8678 GB / 3.893 GB, free: 33.8 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.324e-06/13.67, allocations: 0 / 3.893 GB, free: 33.8 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000333/13.67, allocations: 59.02 kB / 3.893 GB, free: 33.8 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01894/13.69, allocations: 3.754 MB / 3.896 GB, free: 32.21 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.589e-05/13.69, allocations: 11.84 kB / 3.896 GB, free: 32.21 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001405/13.69, allocations: 271.3 kB / 3.897 GB, free: 32.16 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008872/13.7, allocations: 0.7859 MB / 3.897 GB, free: 32.03 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008908/13.71, allocations: 1.973 MB / 3.899 GB, free: 31.6 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003339/13.71, allocations: 166.2 kB / 3.899 GB, free: 31.59 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009884/13.71, allocations: 187.2 kB / 3.9 GB, free: 31.59 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01204/13.73, allocations: 3.226 MB / 3.903 GB, free: 31.11 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.202e-05/13.73, allocations: 6.094 kB / 3.903 GB, free: 31.11 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003972/13.73, allocations: 81.61 kB / 3.903 GB, free: 31.11 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003002/13.73, allocations: 150.6 kB / 3.903 GB, free: 31.11 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01034/13.74, allocations: 2.794 MB / 3.906 GB, free: 31.1 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.02856/13.76, allocations: 13.9 MB / 3.919 GB, free: 22.63 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00662/13.77, allocations: 1.952 MB / 3.921 GB, free: 22.6 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002613/13.77, allocations: 1.027 MB / 3.922 GB, free: 22.59 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0589/13.83, allocations: 18.88 MB / 3.941 GB, free: 26.75 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00593/13.84, allocations: 1.596 MB / 3.942 GB, free: 26.63 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002128/13.84, allocations: 163.4 kB / 3.942 GB, free: 26.56 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 1.022e-05/13.84, allocations: 2.969 kB / 3.942 GB, free: 26.56 MB / 0.5261 GB Notification: Performance of matching and sorting (n=167): time 0.0307/13.87, allocations: 6.869 MB / 3.949 GB, free: 25.61 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002282/13.87, allocations: 258.5 kB / 3.949 GB, free: 25.33 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002999/13.88, allocations: 1.252 MB / 3.95 GB, free: 25.15 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006475/13.88, allocations: 56.36 kB / 3.951 GB, free: 25.12 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001214/13.88, allocations: 0.9071 MB / 3.951 GB, free: 24.76 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001104/13.88, allocations: 0.5505 MB / 3.952 GB, free: 24.41 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002678/13.88, allocations: 36.38 kB / 3.952 GB, free: 24.41 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002804/13.88, allocations: 385 kB / 3.952 GB, free: 24.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002647/13.88, allocations: 0.9209 MB / 3.953 GB, free: 24.1 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003288/13.89, allocations: 1.338 MB / 3.955 GB, free: 23.66 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003342/13.89, allocations: 1.171 MB / 3.956 GB, free: 23.57 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.228e-05/13.89, allocations: 3.469 kB / 3.956 GB, free: 23.57 MB / 0.5261 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.009919/13.9, allocations: 2.883 MB / 3.959 GB, free: 23.29 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001815/13.9, allocations: 4.363 MB / 3.963 GB, free: 18.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.977e-05/13.9, allocations: 13.38 kB / 3.963 GB, free: 18.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004525/13.91, allocations: 0.5226 MB / 3.963 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003865/13.91, allocations: 453.4 kB / 3.964 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003055/13.91, allocations: 2.703 MB / 3.966 GB, free: 16.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004679/13.92, allocations: 269.2 kB / 3.967 GB, free: 16.57 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007353/13.92, allocations: 91.59 kB / 3.967 GB, free: 16.57 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/13.92, allocations: 6.688 kB / 3.967 GB, free: 16.57 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007503/13.93, allocations: 2.519 MB / 3.969 GB, free: 16.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-05/13.93, allocations: 10.62 kB / 3.969 GB, free: 16.43 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009277/13.93, allocations: 195.5 kB / 3.969 GB, free: 16.41 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003948/13.93, allocations: 467 kB / 3.97 GB, free: 16.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001719/13.93, allocations: 1.872 MB / 3.972 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004482/13.94, allocations: 265 kB / 3.972 GB, free: 14.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007679/13.94, allocations: 93.72 kB / 3.972 GB, free: 14.84 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001145/13.94, allocations: 289.9 kB / 3.972 GB, free: 14.67 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007677/13.94, allocations: 196.2 kB / 3.972 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01616/13.96, allocations: 7.35 MB / 3.98 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.69e-05/13.96, allocations: 82.39 kB / 3.98 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/13.96, allocations: 3 kB / 3.98 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01117/13.97, allocations: 6.418 MB / 3.986 GB, free: 12.85 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02369/13.99, allocations: 11.09 MB / 3.997 GB, free: 11.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-05/13.99, allocations: 2.562 kB / 3.997 GB, free: 11.71 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002835/13.99, allocations: 351.7 kB / 3.997 GB, free: 11.71 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004111/14, allocations: 1.291 MB / 3.998 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005484/14, allocations: 67.59 kB / 3.998 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003417/14, allocations: 3.199 MB / 4.002 GB, free: 9.539 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.239e-05/14, allocations: 12.3 kB / 4.002 GB, free: 9.539 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01374/14.02, allocations: 7.145 MB / 4.009 GB, free: 8.289 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002402/14.02, allocations: 0.7031 MB / 4.009 GB, free: 7.973 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009741/14.02, allocations: 61.14 kB / 4.009 GB, free: 7.973 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00361/14.02, allocations: 186.3 kB / 4.01 GB, free: 7.961 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006223/14.02, allocations: 152.9 kB / 4.01 GB, free: 7.953 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002635/14.02, allocations: 79.55 kB / 4.01 GB, free: 7.953 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002368/14.03, allocations: 1.063 MB / 4.011 GB, free: 7.793 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.012e-06/14.03, allocations: 0 / 4.011 GB, free: 7.793 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01401/14.04, allocations: 2.598 MB / 4.013 GB, free: 7.457 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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) * 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 (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0299/14.07, allocations: 11.28 MB / 4.024 GB, free: 20.17 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01155/14.08, allocations: 4.574 MB / 4.029 GB, free: 18.93 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.487e-05/14.08, allocations: 3.875 kB / 4.029 GB, free: 18.93 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00584/14.09, allocations: 2.422 MB / 4.031 GB, free: 17.87 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00821/14.1, allocations: 0.9105 MB / 4.032 GB, free: 17.68 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8471/14.94, allocations: 129.1 MB / 4.158 GB, free: 53.9 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002793/14.95, allocations: 2.19 MB / 4.16 GB, free: 53.1 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.008567/14.95, allocations: 2.419 MB / 4.163 GB, free: 53.02 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002936/14.96, allocations: 1.211 MB / 4.164 GB, free: 53.02 MB / 0.5417 GB Notification: Performance of SimCode: time 1.643e-06/14.96, allocations: 0 / 4.164 GB, free: 53.02 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7133/15.67, allocations: 116.6 MB / 4.278 GB, free: 65.21 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002883/15.67, allocations: 231.8 kB / 4.278 GB, free: 64.97 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.35/24.02, allocations: 0 / 4.278 GB, free: 64.97 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat