Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.404/2.404, allocations: 235 MB / 247.2 MB, free: 14.55 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.529e-05/4.535e-05, allocations: 8 kB / 305 MB, free: 5.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4217/0.4218, allocations: 54.84 MB / 359.9 MB, free: 3.078 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.929/8.351, allocations: 2.677 GB / 3.028 GB, free: 81.82 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/8.351, allocations: 78.58 kB / 3.028 GB, free: 81.78 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.18/13.53, allocations: 0.9022 GB / 3.931 GB, free: 33.41 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.096e-06/13.53, allocations: 0 / 3.931 GB, free: 33.41 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004813/13.53, allocations: 61.28 kB / 3.931 GB, free: 33.41 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.02691/13.56, allocations: 3.961 MB / 3.935 GB, free: 31.63 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.144e-05/13.56, allocations: 13.69 kB / 3.935 GB, free: 31.63 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001928/13.56, allocations: 298.9 kB / 3.935 GB, free: 31.58 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01589/13.58, allocations: 0.8794 MB / 3.936 GB, free: 31.44 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01323/13.59, allocations: 2.097 MB / 3.938 GB, free: 30.99 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005128/13.59, allocations: 183.8 kB / 3.938 GB, free: 30.99 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001466/13.59, allocations: 206.5 kB / 3.938 GB, free: 30.98 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01979/13.61, allocations: 3.605 MB / 3.942 GB, free: 30.44 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000127/13.61, allocations: 11 kB / 3.942 GB, free: 30.44 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007096/13.61, allocations: 89.08 kB / 3.942 GB, free: 30.44 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004831/13.61, allocations: 160.5 kB / 3.942 GB, free: 30.44 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01855/13.63, allocations: 3.167 MB / 3.945 GB, free: 30.43 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.04503/13.68, allocations: 15.46 MB / 3.96 GB, free: 20.98 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01239/13.69, allocations: 2.664 MB / 3.963 GB, free: 20.38 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00429/13.69, allocations: 1.14 MB / 3.964 GB, free: 20.37 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07494/13.77, allocations: 18.77 MB / 3.982 GB, free: 24.62 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006276/13.77, allocations: 1.699 MB / 3.984 GB, free: 24.49 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=173): time 5.28e-06/13.77, allocations: 0 / 3.984 GB, free: 24.49 MB / 0.5261 GB Notification: Performance of matching and sorting (n=189): time 0.03416/13.81, allocations: 7.718 MB / 3.991 GB, free: 23.43 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001918/13.81, allocations: 258.5 kB / 3.992 GB, free: 23.14 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002994/13.81, allocations: 1.339 MB / 3.993 GB, free: 22.96 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000677/13.81, allocations: 61.52 kB / 3.993 GB, free: 22.93 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001105/13.81, allocations: 0.9843 MB / 3.994 GB, free: 22.52 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00109/13.82, allocations: 0.6305 MB / 3.995 GB, free: 22.12 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002752/13.82, allocations: 42.47 kB / 3.995 GB, free: 22.12 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002759/13.82, allocations: 392.3 kB / 3.995 GB, free: 21.82 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004332/13.82, allocations: 1.015 MB / 3.996 GB, free: 21.81 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003671/13.82, allocations: 1.502 MB / 3.997 GB, free: 21.32 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003477/13.83, allocations: 1.276 MB / 3.999 GB, free: 21.23 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.779e-05/13.83, allocations: 3.25 kB / 3.999 GB, free: 21.23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.009816/13.84, allocations: 3.035 MB / 4.002 GB, free: 20.95 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002348/13.84, allocations: 5.013 MB / 4.007 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.473e-05/13.84, allocations: 14.03 kB / 4.007 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001342/13.84, allocations: 228.5 kB / 4.007 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004511/13.85, allocations: 0.5324 MB / 4.007 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002227/13.85, allocations: 2.43 MB / 4.01 GB, free: 13.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004684/13.85, allocations: 306.5 kB / 4.01 GB, free: 13.54 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003515/13.85, allocations: 102.8 kB / 4.01 GB, free: 13.54 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/13.85, allocations: 9.734 kB / 4.01 GB, free: 13.54 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007125/13.86, allocations: 2.769 MB / 4.013 GB, free: 13.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.887e-05/13.86, allocations: 12.78 kB / 4.013 GB, free: 13.39 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001132/13.86, allocations: 239 kB / 4.013 GB, free: 13.35 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003957/13.87, allocations: 0.526 MB / 4.014 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002125/13.87, allocations: 2.431 MB / 4.016 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004404/13.87, allocations: 302.3 kB / 4.016 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003293/13.87, allocations: 108.1 kB / 4.016 GB, free: 11.23 MB / 0.5261 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 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (254): * Single equations (assignments): 248 * 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.0008595/13.87, allocations: 308.8 kB / 4.017 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004859/13.87, allocations: 216.3 kB / 4.017 GB, free: 10.94 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01348/13.89, allocations: 7.45 MB / 4.024 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.743e-05/13.89, allocations: 85.33 kB / 4.024 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/13.89, allocations: 2.719 kB / 4.024 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01067/13.9, allocations: 6.475 MB / 4.03 GB, free: 9.191 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02537/13.92, allocations: 12.06 MB / 4.042 GB, free: 4.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.089e-05/13.92, allocations: 6.406 kB / 4.042 GB, free: 4.516 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003259/13.93, allocations: 435.2 kB / 4.043 GB, free: 4.496 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001874/13.93, allocations: 341.3 kB / 4.043 GB, free: 4.387 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002896/13.93, allocations: 77.14 kB / 4.043 GB, free: 4.352 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002208/13.93, allocations: 2.516 MB / 4.046 GB, free: 18.09 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/13.93, allocations: 9.281 kB / 4.046 GB, free: 18.09 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01407/13.95, allocations: 7.435 MB / 4.053 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002704/13.95, allocations: 0.7471 MB / 4.054 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008875/13.95, allocations: 62.84 kB / 4.054 GB, free: 13.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003736/13.95, allocations: 222.6 kB / 4.054 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00097/13.95, allocations: 176.9 kB / 4.054 GB, free: 13.66 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004552/13.95, allocations: 89 kB / 4.054 GB, free: 13.64 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.004482/13.96, allocations: 1.122 MB / 4.055 GB, free: 13.19 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.593e-06/13.96, allocations: 0 / 4.055 GB, free: 13.19 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01454/13.97, allocations: 2.743 MB / 4.058 GB, free: 12.32 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$cse45.phase,$cse45.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,junctionIdeal.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 (212): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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.03356/14.01, allocations: 12.13 MB / 4.07 GB, free: 1.262 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01533/14.02, allocations: 5.105 MB / 4.075 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.495e-05/14.02, allocations: 8.062 kB / 4.075 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.007098/14.03, allocations: 2.651 MB / 4.077 GB, free: 10.16 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009332/14.04, allocations: 0.981 MB / 4.078 GB, free: 9.445 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8451/14.88, allocations: 129.3 MB / 4.204 GB, free: 63.29 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00264/14.89, allocations: 2.295 MB / 4.207 GB, free: 62.48 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.009224/14.9, allocations: 2.548 MB / 4.209 GB, free: 62.39 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002954/14.9, allocations: 1.316 MB / 4.21 GB, free: 62.38 MB / 0.5573 GB Notification: Performance of SimCode: time 2.064e-06/14.9, allocations: 0 / 4.21 GB, free: 62.38 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.742/15.64, allocations: 122.4 MB / 4.33 GB, free: 67.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001629/15.64, allocations: 227.5 kB / 4.33 GB, free: 66.94 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.75/24.39, allocations: 0 / 4.33 GB, free: 66.94 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat