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.342/2.342, allocations: 235.1 MB / 242.2 MB, free: 15.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.997e-05/2.995e-05, allocations: 4 kB / 299.5 MB, free: 6.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3798/0.3799, allocations: 54.85 MB / 354.3 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.644/8.024, allocations: 2.656 GB / 3.002 GB, free: 119.8 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/8.024, allocations: 82.44 kB / 3.002 GB, free: 119.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.372/12.4, allocations: 0.8552 GB / 3.857 GB, free: 8.594 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.735e-06/12.4, allocations: 0 / 3.857 GB, free: 8.594 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003104/12.4, allocations: 67.7 kB / 3.857 GB, free: 8.531 MB / 0.4948 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.01718/12.41, allocations: 3.815 MB / 3.861 GB, free: 4.668 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/12.41, allocations: 8.031 kB / 3.861 GB, free: 4.66 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008183/12.42, allocations: 0.7897 MB / 3.862 GB, free: 3.867 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007768/12.43, allocations: 1.943 MB / 3.864 GB, free: 1.898 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000228/12.43, allocations: 83.98 kB / 3.864 GB, free: 1.816 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008906/12.43, allocations: 108 kB / 3.864 GB, free: 1.711 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007264/12.44, allocations: 2.331 MB / 3.866 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009386/12.45, allocations: 2.563 MB / 3.869 GB, free: 12.66 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.615e-05/12.45, allocations: 11.94 kB / 3.869 GB, free: 12.65 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004135/12.45, allocations: 4 kB / 3.869 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003364/12.45, allocations: 147.3 kB / 3.869 GB, free: 12.5 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.8139/13.26, allocations: 108.2 MB / 3.974 GB, free: 21.32 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003708/13.27, allocations: 1.407 MB / 3.976 GB, free: 21.29 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002125/13.27, allocations: 0.8829 MB / 3.977 GB, free: 21.28 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05572/13.32, allocations: 17.53 MB / 3.994 GB, free: 25.73 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0031/13.33, allocations: 1.093 MB / 3.995 GB, free: 25.58 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002032/13.33, allocations: 150.7 kB / 3.995 GB, free: 25.57 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=136): time 1.75e-05/13.33, allocations: 0 / 3.995 GB, free: 25.57 MB / 0.5573 GB Notification: Performance of matching and sorting (n=148): time 0.03483/13.36, allocations: 7.185 MB / 4.002 GB, free: 24.08 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002317/13.36, allocations: 360.1 kB / 4.002 GB, free: 23.67 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002742/13.37, allocations: 1.068 MB / 4.003 GB, free: 23.51 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005579/13.37, allocations: 30.42 kB / 4.003 GB, free: 23.48 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001349/13.37, allocations: 0.9453 MB / 4.004 GB, free: 23.16 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001028/13.37, allocations: 494.2 kB / 4.005 GB, free: 22.91 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002724/13.37, allocations: 6.125 kB / 4.005 GB, free: 22.91 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000268/13.37, allocations: 374.3 kB / 4.005 GB, free: 22.6 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002544/13.37, allocations: 0.8956 MB / 4.006 GB, free: 22.6 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002957/13.38, allocations: 1.293 MB / 4.007 GB, free: 22.16 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01945/13.4, allocations: 2.664 MB / 4.01 GB, free: 22.09 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.839e-05/13.4, allocations: 0 / 4.01 GB, free: 22.09 MB / 0.5573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.02691/13.42, allocations: 4.326 MB / 4.014 GB, free: 21.84 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001781/13.43, allocations: 4.318 MB / 4.018 GB, free: 17.39 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.238e-05/13.43, allocations: 16.22 kB / 4.018 GB, free: 17.39 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003938/13.43, allocations: 0.521 MB / 4.019 GB, free: 17.35 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003682/13.43, allocations: 437.2 kB / 4.019 GB, free: 17.34 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004307/13.44, allocations: 2.94 MB / 4.022 GB, free: 15.26 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004283/13.44, allocations: 238.4 kB / 4.022 GB, free: 15.23 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007816/13.44, allocations: 95.61 kB / 4.022 GB, free: 15.23 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/13.44, allocations: 3.5 kB / 4.022 GB, free: 15.23 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02349/13.47, allocations: 3.785 MB / 4.026 GB, free: 15.12 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.686e-05/13.47, allocations: 12.5 kB / 4.026 GB, free: 15.12 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007263/13.47, allocations: 180.1 kB / 4.026 GB, free: 15.09 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003866/13.47, allocations: 461.1 kB / 4.027 GB, free: 15.09 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002094/13.47, allocations: 1.893 MB / 4.029 GB, free: 13.53 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00384/13.48, allocations: 215 kB / 4.029 GB, free: 13.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007771/13.48, allocations: 92.78 kB / 4.029 GB, free: 13.5 MB / 0.5573 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,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_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.001205/13.48, allocations: 231.8 kB / 4.029 GB, free: 13.33 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009807/13.49, allocations: 2.333 MB / 4.031 GB, free: 13.15 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001013/13.49, allocations: 184.3 kB / 4.032 GB, free: 13.05 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01557/13.51, allocations: 6.28 MB / 4.038 GB, free: 12.53 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001351/13.51, allocations: 71.02 kB / 4.038 GB, free: 12.53 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-05/13.51, allocations: 9.828 kB / 4.038 GB, free: 12.52 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01189/13.52, allocations: 5.306 MB / 4.043 GB, free: 11.79 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02768/13.55, allocations: 8.472 MB / 4.051 GB, free: 11.26 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-05/13.55, allocations: 0 / 4.051 GB, free: 11.26 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002544/13.55, allocations: 290.6 kB / 4.052 GB, free: 11.26 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004036/13.55, allocations: 1.498 MB / 4.053 GB, free: 11.18 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005041/13.55, allocations: 39.5 kB / 4.053 GB, free: 11.17 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005102/13.56, allocations: 3.697 MB / 4.057 GB, free: 8.418 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.119e-05/13.56, allocations: 0 / 4.057 GB, free: 8.418 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02051/13.58, allocations: 6.373 MB / 4.063 GB, free: 4.836 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002205/13.58, allocations: 0.6468 MB / 4.063 GB, free: 4.383 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009545/13.58, allocations: 21.81 kB / 4.064 GB, free: 4.371 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003014/13.58, allocations: 147.5 kB / 4.064 GB, free: 4.266 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000575/13.59, allocations: 118.2 kB / 4.064 GB, free: 4.207 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003916/13.59, allocations: 69.11 kB / 4.064 GB, free: 4.16 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002466/13.59, allocations: 0.9908 MB / 4.065 GB, free: 3.574 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9.62e-07/13.59, allocations: 3.172 kB / 4.065 GB, free: 3.574 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01343/13.6, allocations: 2.579 MB / 4.067 GB, free: 1.43 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (147): * Single equations (assignments): 125 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.03294/13.63, allocations: 9.652 MB / 4.077 GB, free: 11.41 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01255/13.65, allocations: 4.315 MB / 4.081 GB, free: 8.91 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/13.65, allocations: 0 / 4.081 GB, free: 8.91 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005243/13.65, allocations: 1.991 MB / 4.083 GB, free: 7.855 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007598/13.66, allocations: 0.7987 MB / 4.084 GB, free: 7.418 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02125/13.68, allocations: 6.26 MB / 4.09 GB, free: 3.129 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002939/13.68, allocations: 2.09 MB / 4.092 GB, free: 1.559 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.008795/13.69, allocations: 2.386 MB / 4.094 GB, free: 168 kB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002604/13.7, allocations: 1.099 MB / 4.095 GB, free: 48 kB / 0.573 GB Notification: Performance of SimCode: time 2.094e-06/13.7, allocations: 3.844 kB / 4.095 GB, free: 48 kB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7047/14.4, allocations: 96.95 MB / 4.19 GB, free: 93.25 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002437/14.4, allocations: 177.3 kB / 4.19 GB, free: 93.06 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.111/21.51, allocations: 0 / 4.19 GB, free: 93.06 MB / 0.573 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