Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.144/2.144, allocations: 209.4 MB / 216.5 MB, free: 6.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.15e-05/3.184e-05, allocations: 7.938 kB / 267.6 MB, free: 4.941 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1082, allocations: 48.69 MB / 316.3 MB, free: 4.148 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.504/7.612, allocations: 2.566 GB / 2.875 GB, free: 23.05 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/7.612, allocations: 72.16 kB / 2.875 GB, free: 23.02 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.722/12.33, allocations: 0.8723 GB / 3.747 GB, free: 2.488 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.475e-06/12.33, allocations: 0 / 3.747 GB, free: 2.488 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003824/12.33, allocations: 63.61 kB / 3.747 GB, free: 2.43 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.4406/12.78, allocations: 3.82 MB / 3.751 GB, free: 30.98 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.185e-05/12.78, allocations: 10.73 kB / 3.751 GB, free: 30.98 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0148/12.79, allocations: 0.848 MB / 3.752 GB, free: 30.85 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01115/12.8, allocations: 2.088 MB / 3.754 GB, free: 30.5 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003437/12.8, allocations: 96.17 kB / 3.754 GB, free: 30.5 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001184/12.8, allocations: 117.5 kB / 3.754 GB, free: 30.5 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008974/12.81, allocations: 2.604 MB / 3.757 GB, free: 30.49 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009942/12.82, allocations: 2.839 MB / 3.759 GB, free: 29.95 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001006/12.82, allocations: 7.656 kB / 3.759 GB, free: 29.95 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004736/12.82, allocations: 6.156 kB / 3.759 GB, free: 29.95 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003989/12.82, allocations: 169.5 kB / 3.759 GB, free: 29.94 MB / 474.7 MB 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.4388/13.26, allocations: 109.5 MB / 3.866 GB, free: 21.12 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00471/13.27, allocations: 2.088 MB / 3.868 GB, free: 20.53 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002414/13.27, allocations: 1.044 MB / 3.87 GB, free: 20.51 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05405/13.32, allocations: 17.36 MB / 3.886 GB, free: 25.07 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002933/13.33, allocations: 1.203 MB / 3.888 GB, free: 24.92 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=159): time 6.212e-06/13.33, allocations: 2.484 kB / 3.888 GB, free: 24.92 MB / 0.5261 GB Notification: Performance of matching and sorting (n=175): time 0.05861/13.38, allocations: 9.458 MB / 3.897 GB, free: 23.2 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002362/13.38, allocations: 369.8 kB / 3.897 GB, free: 22.79 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002574/13.39, allocations: 1.073 MB / 3.898 GB, free: 22.62 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007239/13.39, allocations: 29.61 kB / 3.898 GB, free: 22.59 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001368/13.39, allocations: 1.018 MB / 3.899 GB, free: 22.14 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001254/13.39, allocations: 0.5664 MB / 3.9 GB, free: 21.78 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002981/13.39, allocations: 4 kB / 3.9 GB, free: 21.77 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002665/13.39, allocations: 388.3 kB / 3.9 GB, free: 21.47 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002689/13.39, allocations: 0.9902 MB / 3.901 GB, free: 21.46 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003356/13.4, allocations: 1.463 MB / 3.903 GB, free: 20.95 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01483/13.41, allocations: 1.948 MB / 3.905 GB, free: 20.9 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.039e-05/13.41, allocations: 7.922 kB / 3.905 GB, free: 20.89 MB / 0.5261 GB Notification: Performance of matching and sorting (n=266) (initialization): time 0.02039/13.43, allocations: 3.637 MB / 3.908 GB, free: 20.66 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001989/13.44, allocations: 4.944 MB / 3.913 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.855e-05/13.44, allocations: 12.66 kB / 3.913 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001008/13.44, allocations: 221.5 kB / 3.913 GB, free: 15.54 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004527/13.44, allocations: 0.5235 MB / 3.914 GB, free: 15.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002327/13.44, allocations: 2.461 MB / 3.916 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005164/13.45, allocations: 301.2 kB / 3.916 GB, free: 13.41 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009083/13.45, allocations: 111 kB / 3.916 GB, free: 13.41 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/13.45, allocations: 2.688 kB / 3.916 GB, free: 13.41 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01774/13.47, allocations: 3.194 MB / 3.92 GB, free: 13.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.16e-05/13.47, allocations: 10.56 kB / 3.92 GB, free: 13.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008298/13.47, allocations: 220.2 kB / 3.92 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004247/13.47, allocations: 0.5226 MB / 3.92 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002239/13.47, allocations: 2.456 MB / 3.923 GB, free: 11.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004596/13.48, allocations: 287.4 kB / 3.923 GB, free: 11.14 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004761/13.48, allocations: 99.25 kB / 3.923 GB, free: 11.07 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: 28 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,junctionIdeal.medium.phase,source.medium.phase,sink.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.0008759/13.48, allocations: 238.5 kB / 3.923 GB, free: 10.86 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01865/13.5, allocations: 3.068 MB / 3.926 GB, free: 9.023 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001243/13.5, allocations: 185.8 kB / 3.926 GB, free: 8.84 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02718/13.53, allocations: 6.965 MB / 3.933 GB, free: 4.977 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001072/13.53, allocations: 74.27 kB / 3.933 GB, free: 4.949 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/13.53, allocations: 8.125 kB / 3.933 GB, free: 4.941 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02482/13.55, allocations: 6.067 MB / 3.939 GB, free: 1.324 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4651/14.02, allocations: 11.1 MB / 3.95 GB, free: 92.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.359e-05/14.02, allocations: 7.531 kB / 3.95 GB, free: 92.33 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003318/14.02, allocations: 390.2 kB / 3.95 GB, free: 92.33 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00158/14.02, allocations: 326.3 kB / 3.951 GB, free: 92.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006296/14.02, allocations: 48.69 kB / 3.951 GB, free: 92.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002246/14.03, allocations: 2.636 MB / 3.953 GB, free: 90.24 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.936e-05/14.03, allocations: 12.69 kB / 3.953 GB, free: 90.24 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02945/14.06, allocations: 7.516 MB / 3.961 GB, free: 89.17 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002725/14.06, allocations: 0.691 MB / 3.961 GB, free: 89.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001042/14.06, allocations: 25.97 kB / 3.961 GB, free: 89.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003747/14.06, allocations: 173.8 kB / 3.962 GB, free: 89.07 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008102/14.06, allocations: 159.8 kB / 3.962 GB, free: 89.06 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003247/14.06, allocations: 77.72 kB / 3.962 GB, free: 89.06 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002519/14.07, allocations: 0.9887 MB / 3.963 GB, free: 88.95 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.136e-06/14.07, allocations: 0 / 3.963 GB, free: 88.95 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01472/14.08, allocations: 2.577 MB / 3.965 GB, free: 88.95 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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: 44 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.region3boundary,$cse29.region3boundary,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,junctionIdeal.medium.phase) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 171 * 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.04403/14.13, allocations: 12.61 MB / 3.978 GB, free: 85.43 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01313/14.14, allocations: 4.705 MB / 3.982 GB, free: 85.12 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.52e-05/14.14, allocations: 0 / 3.982 GB, free: 85.12 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005275/14.14, allocations: 2.292 MB / 3.984 GB, free: 84.98 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008638/14.15, allocations: 0.845 MB / 3.985 GB, free: 84.95 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02392/14.18, allocations: 6.864 MB / 3.992 GB, free: 83.52 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002804/14.18, allocations: 2.201 MB / 3.994 GB, free: 82.75 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.009374/14.19, allocations: 2.587 MB / 3.997 GB, free: 82.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003148/14.19, allocations: 1.234 MB / 3.998 GB, free: 82.69 MB / 0.5261 GB Notification: Performance of SimCode: time 1.433e-06/14.19, allocations: 0 / 3.998 GB, free: 82.69 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.305/14.5, allocations: 99.86 MB / 4.095 GB, free: 58.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003481/14.5, allocations: 181.4 kB / 4.096 GB, free: 58.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.76/22.26, allocations: 0 / 4.096 GB, free: 58.5 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat