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.406/2.406, allocations: 235.1 MB / 242.2 MB, free: 15.85 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.207e-05/2.216e-05, allocations: 0 / 299.5 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3911/0.3912, allocations: 54.85 MB / 354.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.768/8.159, allocations: 2.673 GB / 3.019 GB, free: 101.8 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/8.16, allocations: 71.41 kB / 3.019 GB, free: 101.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.653/12.81, allocations: 0.8605 GB / 3.879 GB, free: 1.914 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.124e-06/12.81, allocations: 0 / 3.879 GB, free: 1.914 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003627/12.81, allocations: 55.84 kB / 3.879 GB, free: 1.863 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.464/13.28, allocations: 3.744 MB / 3.883 GB, free: 33.49 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.957e-05/13.28, allocations: 9.688 kB / 3.883 GB, free: 33.49 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009025/13.29, allocations: 0.7816 MB / 3.884 GB, free: 33.36 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009865/13.3, allocations: 1.981 MB / 3.886 GB, free: 33.02 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003261/13.3, allocations: 83.59 kB / 3.886 GB, free: 33.02 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001115/13.3, allocations: 107.9 kB / 3.886 GB, free: 33.02 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008306/13.31, allocations: 2.288 MB / 3.888 GB, free: 33.02 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009924/13.32, allocations: 2.54 MB / 3.891 GB, free: 32.54 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000117/13.32, allocations: 10.84 kB / 3.891 GB, free: 32.54 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009168/13.32, allocations: 7.719 kB / 3.891 GB, free: 32.54 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003458/13.32, allocations: 149.5 kB / 3.891 GB, free: 32.53 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.4085/13.73, allocations: 108.1 MB / 3.996 GB, free: 24.91 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00395/13.73, allocations: 1.433 MB / 3.998 GB, free: 24.88 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002522/13.73, allocations: 0.9503 MB / 3.999 GB, free: 24.86 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05645/13.79, allocations: 17.46 MB / 4.016 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003212/13.79, allocations: 1.141 MB / 4.017 GB, free: 13.16 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002102/13.79, allocations: 145 kB / 4.017 GB, free: 13.13 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=145): time 1.739e-05/13.79, allocations: 0 / 4.017 GB, free: 13.13 MB / 0.5573 GB Notification: Performance of matching and sorting (n=157): time 0.06042/13.85, allocations: 8.758 MB / 4.025 GB, free: 11.5 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007501/13.86, allocations: 366.2 kB / 4.026 GB, free: 27.09 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002506/13.86, allocations: 1.019 MB / 4.027 GB, free: 26.93 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005973/13.86, allocations: 25.7 kB / 4.027 GB, free: 26.89 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001277/13.86, allocations: 0.9352 MB / 4.028 GB, free: 26.48 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001051/13.86, allocations: 0.5129 MB / 4.028 GB, free: 26.15 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002724/13.86, allocations: 0 / 4.028 GB, free: 26.15 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002952/13.86, allocations: 383.6 kB / 4.029 GB, free: 25.84 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002557/13.86, allocations: 0.898 MB / 4.029 GB, free: 25.84 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00312/13.87, allocations: 1.322 MB / 4.031 GB, free: 25.39 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01466/13.88, allocations: 1.822 MB / 4.032 GB, free: 25.34 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.672e-05/13.88, allocations: 5.219 kB / 4.033 GB, free: 25.34 MB / 0.573 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.02155/13.9, allocations: 3.458 MB / 4.036 GB, free: 25.12 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002083/13.91, allocations: 4.312 MB / 4.04 GB, free: 20.66 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.976e-05/13.91, allocations: 10.25 kB / 4.04 GB, free: 20.66 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003905/13.91, allocations: 0.4914 MB / 4.041 GB, free: 20.62 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003979/13.91, allocations: 459.2 kB / 4.041 GB, free: 20.62 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003884/13.92, allocations: 2.809 MB / 4.044 GB, free: 18.53 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00475/13.92, allocations: 259.1 kB / 4.044 GB, free: 18.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008782/13.92, allocations: 100.3 kB / 4.044 GB, free: 18.5 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/13.92, allocations: 2.875 kB / 4.044 GB, free: 18.5 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01848/13.94, allocations: 2.939 MB / 4.047 GB, free: 18.4 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.251e-05/13.94, allocations: 14.78 kB / 4.047 GB, free: 18.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007149/13.94, allocations: 178.6 kB / 4.047 GB, free: 18.38 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004021/13.95, allocations: 468.4 kB / 4.048 GB, free: 18.38 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002195/13.95, allocations: 1.901 MB / 4.049 GB, free: 16.81 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00434/13.95, allocations: 242.3 kB / 4.05 GB, free: 16.78 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000799/13.95, allocations: 97.34 kB / 4.05 GB, free: 16.77 MB / 0.573 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,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,source.medium.phase,sink.medium.phase,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.001292/13.96, allocations: 238.4 kB / 4.05 GB, free: 16.59 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01855/13.97, allocations: 2.88 MB / 4.053 GB, free: 16.39 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/13.98, allocations: 180.6 kB / 4.053 GB, free: 16.3 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02453/14, allocations: 6.663 MB / 4.06 GB, free: 15.71 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001024/14, allocations: 69.11 kB / 4.06 GB, free: 15.71 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.4e-05/14, allocations: 3.938 kB / 4.06 GB, free: 15.71 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02115/14.02, allocations: 5.813 MB / 4.065 GB, free: 14.68 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03325/14.06, allocations: 9.904 MB / 4.075 GB, free: 9.363 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.115e-05/14.06, allocations: 12.86 kB / 4.075 GB, free: 9.355 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002762/14.06, allocations: 311.4 kB / 4.075 GB, free: 9.121 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003545/14.06, allocations: 1.238 MB / 4.076 GB, free: 8.262 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005445/14.06, allocations: 48.2 kB / 4.076 GB, free: 8.234 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004346/14.07, allocations: 3.381 MB / 4.08 GB, free: 5.484 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.449e-05/14.07, allocations: 9.781 kB / 4.08 GB, free: 5.477 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02548/14.09, allocations: 7.079 MB / 4.087 GB, free: 1.125 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002543/14.09, allocations: 0.6471 MB / 4.087 GB, free: 0.6562 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00105/14.1, allocations: 33.47 kB / 4.087 GB, free: 0.6367 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003361/14.1, allocations: 145.7 kB / 4.088 GB, free: 0.5312 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000763/14.1, allocations: 137.9 kB / 4.088 GB, free: 472 kB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003829/14.1, allocations: 73.44 kB / 4.088 GB, free: 420 kB / 0.573 GB Notification: Performance of sorting global known variables: time 0.4616/14.56, allocations: 0.9742 MB / 4.089 GB, free: 94.98 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.285e-06/14.56, allocations: 0 / 4.089 GB, free: 94.98 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01516/14.58, allocations: 2.472 MB / 4.091 GB, free: 94.98 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.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.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.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) * 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 (161): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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.04052/14.62, allocations: 11.62 MB / 4.102 GB, free: 92.05 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01148/14.63, allocations: 4.31 MB / 4.107 GB, free: 91.75 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.245e-05/14.63, allocations: 2.594 kB / 4.107 GB, free: 91.75 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.00515/14.63, allocations: 2.137 MB / 4.109 GB, free: 91.61 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007909/14.64, allocations: 0.784 MB / 4.109 GB, free: 91.59 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02201/14.66, allocations: 6.328 MB / 4.116 GB, free: 90.3 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00317/14.67, allocations: 2.101 MB / 4.118 GB, free: 89.55 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.008789/14.68, allocations: 2.481 MB / 4.12 GB, free: 89.51 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002678/14.68, allocations: 1.113 MB / 4.121 GB, free: 89.5 MB / 0.573 GB Notification: Performance of SimCode: time 1.883e-06/14.68, allocations: 0 / 4.121 GB, free: 89.5 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2458/14.93, allocations: 95.69 MB / 4.215 GB, free: 84.4 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002864/14.93, allocations: 176 kB / 4.215 GB, free: 84.21 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.936/21.86, allocations: 8.156 kB / 4.215 GB, free: 84.21 MB / 0.573 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