Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.027/2.027, allocations: 209.4 MB / 216.5 MB, free: 6.656 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.665e-05/2.675e-05, allocations: 0 / 267.6 MB, free: 4.945 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1125, allocations: 48.71 MB / 316.3 MB, free: 4.145 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.602/7.714, allocations: 2.545 GB / 2.854 GB, free: 44.81 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002605/7.715, allocations: 72.45 kB / 2.854 GB, free: 44.78 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.317/12.03, allocations: 0.7755 GB / 3.629 GB, free: 25.03 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.904e-06/12.03, allocations: 0 / 3.629 GB, free: 25.03 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003493/12.03, allocations: 68.7 kB / 3.629 GB, free: 25.01 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.01963/12.05, allocations: 3.828 MB / 3.633 GB, free: 23.12 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/12.05, allocations: 10.47 kB / 3.633 GB, free: 23.12 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009193/12.06, allocations: 0.8112 MB / 3.634 GB, free: 22.98 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009341/12.07, allocations: 2.149 MB / 3.636 GB, free: 22.52 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002509/12.07, allocations: 94.52 kB / 3.636 GB, free: 22.51 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001063/12.07, allocations: 116.9 kB / 3.636 GB, free: 22.51 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008785/12.08, allocations: 2.866 MB / 3.639 GB, free: 22.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008966/12.09, allocations: 2.861 MB / 3.642 GB, free: 21.95 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.302e-05/12.09, allocations: 8.406 kB / 3.642 GB, free: 21.95 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000386/12.09, allocations: 3.844 kB / 3.642 GB, free: 21.95 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003265/12.09, allocations: 169.2 kB / 3.642 GB, free: 21.95 MB / 458.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.4063/12.5, allocations: 108.8 MB / 3.748 GB, free: 11.05 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004105/12.5, allocations: 1.584 MB / 3.75 GB, free: 10.22 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002421/12.5, allocations: 0.971 MB / 3.751 GB, free: 9.707 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4833/12.99, allocations: 18.04 MB / 3.768 GB, free: 67.38 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005295/12.99, allocations: 1.209 MB / 3.77 GB, free: 67.23 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00318/13, allocations: 161.2 kB / 3.77 GB, free: 67.23 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=148): time 3.561e-05/13, allocations: 4 kB / 3.77 GB, free: 67.23 MB / 0.4948 GB Notification: Performance of matching and sorting (n=160): time 0.05892/13.05, allocations: 7.921 MB / 3.777 GB, free: 65.72 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002456/13.06, allocations: 0.5048 MB / 3.778 GB, free: 65.12 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005109/13.06, allocations: 1.185 MB / 3.779 GB, free: 64.95 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007303/13.06, allocations: 30.39 kB / 3.779 GB, free: 64.92 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001998/13.06, allocations: 1.039 MB / 3.78 GB, free: 64.57 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001538/13.06, allocations: 0.523 MB / 3.781 GB, free: 64.3 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004343/13.07, allocations: 1.156 kB / 3.781 GB, free: 64.3 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002953/13.07, allocations: 386.1 kB / 3.781 GB, free: 64 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004744/13.07, allocations: 1.032 MB / 3.782 GB, free: 64 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005688/13.08, allocations: 1.485 MB / 3.783 GB, free: 63.5 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03209/13.11, allocations: 2.847 MB / 3.786 GB, free: 63.47 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.144e-05/13.11, allocations: 3.688 kB / 3.786 GB, free: 63.47 MB / 0.4948 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.04093/13.15, allocations: 4.738 MB / 3.791 GB, free: 63.27 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001424/13.15, allocations: 4.521 MB / 3.795 GB, free: 58.67 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001324/13.15, allocations: 17.48 kB / 3.795 GB, free: 58.67 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008742/13.16, allocations: 0.812 MB / 3.796 GB, free: 58.64 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004046/13.16, allocations: 475.6 kB / 3.797 GB, free: 58.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004623/13.17, allocations: 3.324 MB / 3.8 GB, free: 56.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004414/13.17, allocations: 231.8 kB / 3.8 GB, free: 56.54 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006768/13.17, allocations: 102.7 kB / 3.8 GB, free: 56.54 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/13.17, allocations: 3.188 kB / 3.8 GB, free: 56.54 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02464/13.2, allocations: 4.231 MB / 3.804 GB, free: 56.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.418e-05/13.2, allocations: 18.88 kB / 3.804 GB, free: 56.45 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001742/13.2, allocations: 342.7 kB / 3.805 GB, free: 56.42 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004128/13.2, allocations: 494 kB / 3.805 GB, free: 56.42 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005356/13.21, allocations: 3.989 MB / 3.809 GB, free: 53.65 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00399/13.21, allocations: 208.3 kB / 3.809 GB, free: 53.64 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005471/13.21, allocations: 100.3 kB / 3.809 GB, free: 53.64 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 27 (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_b.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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.000861/13.22, allocations: 239.7 kB / 3.809 GB, free: 53.47 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009819/13.22, allocations: 2.656 MB / 3.812 GB, free: 53.28 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009374/13.23, allocations: 197.4 kB / 3.812 GB, free: 53.18 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01535/13.24, allocations: 6.715 MB / 3.819 GB, free: 52.69 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001427/13.24, allocations: 71.36 kB / 3.819 GB, free: 52.69 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/13.24, allocations: 4.938 kB / 3.819 GB, free: 52.69 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01179/13.25, allocations: 5.686 MB / 3.824 GB, free: 51.95 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02028/13.27, allocations: 9.033 MB / 3.833 GB, free: 51.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.342e-05/13.27, allocations: 3.531 kB / 3.833 GB, free: 51.36 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002631/13.28, allocations: 298.3 kB / 3.834 GB, free: 51.36 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006199/13.28, allocations: 2.379 MB / 3.836 GB, free: 51.26 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005292/13.28, allocations: 37.03 kB / 3.836 GB, free: 51.26 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005341/13.29, allocations: 4.404 MB / 3.84 GB, free: 49.14 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.437e-06/13.29, allocations: 4.344 kB / 3.84 GB, free: 49.14 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01528/13.3, allocations: 7.112 MB / 3.847 GB, free: 48.49 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002457/13.31, allocations: 0.6905 MB / 3.848 GB, free: 48.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008313/13.31, allocations: 25.92 kB / 3.848 GB, free: 48.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003271/13.31, allocations: 155 kB / 3.848 GB, free: 48.18 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005331/13.31, allocations: 126.2 kB / 3.848 GB, free: 48.18 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000242/13.31, allocations: 70.75 kB / 3.848 GB, free: 48.18 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002359/13.31, allocations: 1.071 MB / 3.849 GB, free: 48.04 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.32e-07/13.31, allocations: 0 / 3.849 GB, free: 48.04 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01349/13.33, allocations: 2.679 MB / 3.852 GB, free: 47.91 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 43 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$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) * 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 (151): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 15 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03099/13.36, allocations: 10.03 MB / 3.862 GB, free: 46.34 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01289/13.37, allocations: 4.935 MB / 3.866 GB, free: 45.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.789e-06/13.37, allocations: 0 / 3.866 GB, free: 45.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004905/13.38, allocations: 2.053 MB / 3.868 GB, free: 45.66 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007561/13.38, allocations: 0.7883 MB / 3.869 GB, free: 45.62 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02023/13.4, allocations: 6.699 MB / 3.876 GB, free: 44.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002263/13.41, allocations: 2.204 MB / 3.878 GB, free: 43.43 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.00791/13.41, allocations: 2.412 MB / 3.88 GB, free: 43.39 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00257/13.42, allocations: 1.198 MB / 3.881 GB, free: 43.39 MB / 0.4948 GB Notification: Performance of SimCode: time 1.392e-06/13.42, allocations: 3.984 kB / 3.881 GB, free: 43.39 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6683/14.09, allocations: 102.9 MB / 3.982 GB, free: 69.59 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002173/14.09, allocations: 176.2 kB / 3.982 GB, free: 69.4 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.984/22.07, allocations: 0 / 3.982 GB, free: 69.4 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat