Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.411/2.411, allocations: 235 MB / 247.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.702e-05/4.724e-05, allocations: 4 kB / 305 MB, free: 5.086 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4191/0.4192, allocations: 54.86 MB / 359.9 MB, free: 3.164 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.989/8.408, allocations: 2.656 GB / 3.008 GB, free: 104 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003391/8.408, allocations: 78.52 kB / 3.008 GB, free: 104 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.635/13.04, allocations: 0.8625 GB / 3.87 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.643e-06/13.04, allocations: 3.938 kB / 3.87 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002969/13.04, allocations: 55.12 kB / 3.87 GB, free: 13.12 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.01847/13.06, allocations: 3.818 MB / 3.874 GB, free: 9.266 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/13.06, allocations: 8.031 kB / 3.874 GB, free: 9.258 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001241/13.06, allocations: 277.6 kB / 3.874 GB, free: 8.984 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008662/13.07, allocations: 0.7856 MB / 3.875 GB, free: 8.199 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008644/13.08, allocations: 1.943 MB / 3.877 GB, free: 6.234 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003288/13.08, allocations: 163.8 kB / 3.877 GB, free: 6.082 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009477/13.08, allocations: 181 kB / 3.877 GB, free: 5.914 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0118/13.09, allocations: 3.272 MB / 3.881 GB, free: 2.512 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.698e-05/13.09, allocations: 7.938 kB / 3.881 GB, free: 2.504 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004101/13.09, allocations: 83.81 kB / 3.881 GB, free: 2.43 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003628/13.09, allocations: 147.2 kB / 3.881 GB, free: 2.285 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4357/13.53, allocations: 2.904 MB / 3.884 GB, free: 31.06 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.03107/13.56, allocations: 14.05 MB / 3.897 GB, free: 22.72 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006877/13.57, allocations: 1.954 MB / 3.899 GB, free: 22.68 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002471/13.57, allocations: 0.9577 MB / 3.9 GB, free: 22.68 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05863/13.63, allocations: 18.94 MB / 3.919 GB, free: 26.86 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005179/13.64, allocations: 1.555 MB / 3.92 GB, free: 26.74 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001697/13.64, allocations: 166 kB / 3.92 GB, free: 26.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=146): time 4.999e-06/13.64, allocations: 0.9844 kB / 3.92 GB, free: 26.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=158): time 0.02465/13.66, allocations: 6.751 MB / 3.927 GB, free: 25.8 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001743/13.66, allocations: 259 kB / 3.927 GB, free: 25.52 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002655/13.66, allocations: 1.336 MB / 3.929 GB, free: 25.34 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004014/13.66, allocations: 52.45 kB / 3.929 GB, free: 25.31 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008995/13.67, allocations: 0.9015 MB / 3.929 GB, free: 25.03 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006679/13.67, allocations: 0.5292 MB / 3.93 GB, free: 24.77 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001868/13.67, allocations: 35.69 kB / 3.93 GB, free: 24.77 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000213/13.67, allocations: 381.3 kB / 3.93 GB, free: 24.46 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002191/13.67, allocations: 0.9218 MB / 3.931 GB, free: 24.46 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002326/13.67, allocations: 1.327 MB / 3.933 GB, free: 24.02 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002496/13.67, allocations: 1.152 MB / 3.934 GB, free: 23.93 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.029e-05/13.67, allocations: 3.531 kB / 3.934 GB, free: 23.93 MB / 0.5261 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.007959/13.68, allocations: 2.916 MB / 3.937 GB, free: 23.66 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001876/13.68, allocations: 4.365 MB / 3.941 GB, free: 19.06 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.328e-05/13.68, allocations: 13.69 kB / 3.941 GB, free: 19.06 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004805/13.69, allocations: 0.5922 MB / 3.941 GB, free: 19.03 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003515/13.69, allocations: 439.1 kB / 3.942 GB, free: 19.03 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003349/13.7, allocations: 2.822 MB / 3.945 GB, free: 16.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003723/13.7, allocations: 242.7 kB / 3.945 GB, free: 16.95 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002779/13.7, allocations: 96.19 kB / 3.945 GB, free: 16.95 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/13.7, allocations: 4.594 kB / 3.945 GB, free: 16.95 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00616/13.71, allocations: 2.519 MB / 3.947 GB, free: 16.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.045e-05/13.71, allocations: 10.03 kB / 3.947 GB, free: 16.81 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008887/13.71, allocations: 200.6 kB / 3.948 GB, free: 16.79 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003349/13.71, allocations: 456.1 kB / 3.948 GB, free: 16.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00167/13.71, allocations: 1.882 MB / 3.95 GB, free: 15.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003359/13.72, allocations: 229.5 kB / 3.95 GB, free: 15.23 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002569/13.72, allocations: 91.39 kB / 3.95 GB, free: 15.23 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 (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_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_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007568/13.72, allocations: 288.8 kB / 3.95 GB, free: 15.06 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004328/13.72, allocations: 196.1 kB / 3.951 GB, free: 14.96 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01267/13.73, allocations: 7.332 MB / 3.958 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.933e-05/13.73, allocations: 82.75 kB / 3.958 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-05/13.73, allocations: 1.422 kB / 3.958 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01003/13.74, allocations: 6.424 MB / 3.964 GB, free: 13.46 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01777/13.76, allocations: 10.21 MB / 3.974 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.495e-05/13.76, allocations: 7.344 kB / 3.974 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002513/13.76, allocations: 328.8 kB / 3.974 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004828/13.76, allocations: 1.598 MB / 3.976 GB, free: 12.69 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003549/13.77, allocations: 61.61 kB / 3.976 GB, free: 12.69 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003756/13.77, allocations: 3.47 MB / 3.979 GB, free: 10.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/13.77, allocations: 3.625 kB / 3.979 GB, free: 10.59 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01278/13.78, allocations: 6.933 MB / 3.986 GB, free: 26 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002099/13.78, allocations: 0.714 MB / 3.987 GB, free: 25.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005103/13.78, allocations: 46.09 kB / 3.987 GB, free: 25.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002475/13.79, allocations: 186.8 kB / 3.987 GB, free: 25.68 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003677/13.79, allocations: 131.1 kB / 3.987 GB, free: 25.67 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002043/13.79, allocations: 62.58 kB / 3.987 GB, free: 25.67 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002266/13.79, allocations: 1.129 MB / 3.988 GB, free: 25.51 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.51e-07/13.79, allocations: 0 / 3.988 GB, free: 25.51 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01163/13.8, allocations: 2.701 MB / 3.991 GB, free: 25.39 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (164): * Single equations (assignments): 138 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.02781/13.83, allocations: 9.771 MB / 4.001 GB, free: 24.08 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01187/13.84, allocations: 4.654 MB / 4.005 GB, free: 23.76 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/13.84, allocations: 0 / 4.005 GB, free: 23.76 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004468/13.85, allocations: 2.221 MB / 4.007 GB, free: 23.62 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007475/13.85, allocations: 0.8925 MB / 4.008 GB, free: 23.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8348/14.69, allocations: 128.6 MB / 4.134 GB, free: 75.15 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002374/14.69, allocations: 2.184 MB / 4.136 GB, free: 74.39 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.007943/14.7, allocations: 2.342 MB / 4.138 GB, free: 74.36 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002471/14.7, allocations: 1.199 MB / 4.139 GB, free: 74.36 MB / 0.5573 GB Notification: Performance of SimCode: time 1.733e-06/14.7, allocations: 0 / 4.139 GB, free: 74.36 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.304/15.01, allocations: 117.3 MB / 4.254 GB, free: 46.53 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002596/15.01, allocations: 231 kB / 4.254 GB, free: 46.26 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.337/23.34, allocations: 0 / 4.254 GB, free: 46.26 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat