Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.413/2.413, allocations: 235 MB / 247.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.974e-05/3.995e-05, allocations: 4 kB / 305 MB, free: 5.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4428/0.4428, allocations: 54.86 MB / 359.9 MB, free: 3.188 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.222/8.665, allocations: 2.656 GB / 3.007 GB, free: 104.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002729/8.665, allocations: 77.89 kB / 3.007 GB, free: 104.4 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288/12.95, allocations: 0.8016 GB / 3.809 GB, free: 25.18 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.364e-06/12.95, allocations: 0 / 3.809 GB, free: 25.18 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003589/12.95, allocations: 72.92 kB / 3.809 GB, free: 25.16 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01964/12.97, allocations: 3.95 MB / 3.813 GB, free: 23.17 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/12.97, allocations: 9.688 kB / 3.813 GB, free: 23.17 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00125/12.97, allocations: 290 kB / 3.813 GB, free: 23.12 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008746/12.98, allocations: 0.8407 MB / 3.814 GB, free: 22.98 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008792/12.99, allocations: 2.161 MB / 3.816 GB, free: 22.46 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003398/12.99, allocations: 184.4 kB / 3.816 GB, free: 22.46 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001137/12.99, allocations: 193.3 kB / 3.816 GB, free: 22.46 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01276/13.01, allocations: 3.703 MB / 3.82 GB, free: 21.88 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001111/13.01, allocations: 7.438 kB / 3.82 GB, free: 21.88 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006612/13.01, allocations: 87.27 kB / 3.82 GB, free: 21.88 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003217/13.01, allocations: 170.1 kB / 3.82 GB, free: 21.87 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01221/13.02, allocations: 3.418 MB / 3.824 GB, free: 21.82 MB / 0.4948 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.03208/13.05, allocations: 14.77 MB / 3.838 GB, free: 10.95 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00707/13.06, allocations: 2.127 MB / 3.84 GB, free: 10.21 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002773/13.06, allocations: 1.069 MB / 3.841 GB, free: 9.805 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05988/13.12, allocations: 18.96 MB / 3.86 GB, free: 12.93 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005977/13.13, allocations: 1.679 MB / 3.861 GB, free: 11.62 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00199/13.13, allocations: 188.5 kB / 3.861 GB, free: 11.45 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 1.045e-05/13.13, allocations: 0 / 3.861 GB, free: 11.45 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.03094/13.16, allocations: 7.326 MB / 3.869 GB, free: 5.203 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002576/13.16, allocations: 414.8 kB / 3.869 GB, free: 4.707 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00388/13.17, allocations: 1.484 MB / 3.87 GB, free: 3.379 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006434/13.17, allocations: 61.7 kB / 3.871 GB, free: 3.312 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001398/13.17, allocations: 0.9878 MB / 3.872 GB, free: 2.414 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001217/13.17, allocations: 0.5941 MB / 3.872 GB, free: 1.875 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003011/13.17, allocations: 36 kB / 3.872 GB, free: 1.84 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002694/13.17, allocations: 387.5 kB / 3.873 GB, free: 1.48 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003458/13.17, allocations: 1.062 MB / 3.874 GB, free: 0.5391 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006842/13.18, allocations: 1.692 MB / 3.875 GB, free: 15.36 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004169/13.18, allocations: 1.324 MB / 3.876 GB, free: 14.22 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.299e-05/13.18, allocations: 11.95 kB / 3.876 GB, free: 14.21 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01151/13.2, allocations: 3.295 MB / 3.88 GB, free: 11.29 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001982/13.2, allocations: 4.578 MB / 3.884 GB, free: 6.328 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.324e-05/13.2, allocations: 15.8 kB / 3.884 GB, free: 6.316 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008964/13.21, allocations: 0.9618 MB / 3.885 GB, free: 5.605 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004243/13.21, allocations: 474 kB / 3.886 GB, free: 5.215 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004879/13.22, allocations: 3.166 MB / 3.889 GB, free: 2.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004505/13.22, allocations: 232.3 kB / 3.889 GB, free: 1.98 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009083/13.22, allocations: 109.7 kB / 3.889 GB, free: 1.887 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/13.22, allocations: 4 kB / 3.889 GB, free: 1.883 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.4414/13.66, allocations: 3.117 MB / 3.892 GB, free: 55.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.994e-05/13.66, allocations: 14.83 kB / 3.892 GB, free: 55.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002319/13.67, allocations: 356.5 kB / 3.892 GB, free: 55.16 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00458/13.67, allocations: 498.1 kB / 3.893 GB, free: 55.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006271/13.68, allocations: 4.045 MB / 3.897 GB, free: 52.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004211/13.68, allocations: 235.7 kB / 3.897 GB, free: 52.38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008709/13.68, allocations: 103 kB / 3.897 GB, free: 52.38 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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_b.phase,pipe1.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,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.001343/13.68, allocations: 306.8 kB / 3.897 GB, free: 52.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009315/13.68, allocations: 220.5 kB / 3.898 GB, free: 52.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02061/13.7, allocations: 7.736 MB / 3.905 GB, free: 51.64 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001712/13.7, allocations: 83.34 kB / 3.905 GB, free: 51.64 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.895e-05/13.7, allocations: 3.5 kB / 3.905 GB, free: 51.64 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01607/13.72, allocations: 6.776 MB / 3.912 GB, free: 50.71 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02397/13.74, allocations: 10.78 MB / 3.922 GB, free: 50.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.103e-05/13.74, allocations: 1.922 kB / 3.922 GB, free: 50.05 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003016/13.75, allocations: 341.2 kB / 3.923 GB, free: 50.05 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008371/13.76, allocations: 2.502 MB / 3.925 GB, free: 49.96 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000617/13.76, allocations: 63.17 kB / 3.925 GB, free: 49.96 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004856/13.76, allocations: 4.102 MB / 3.929 GB, free: 47.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/13.76, allocations: 3.953 kB / 3.929 GB, free: 47.88 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01662/13.78, allocations: 7.678 MB / 3.937 GB, free: 47.21 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002655/13.78, allocations: 0.7557 MB / 3.938 GB, free: 46.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001014/13.78, allocations: 55.27 kB / 3.938 GB, free: 46.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003502/13.79, allocations: 198.6 kB / 3.938 GB, free: 46.93 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007235/13.79, allocations: 136.7 kB / 3.938 GB, free: 46.92 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000305/13.79, allocations: 76.91 kB / 3.938 GB, free: 46.92 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00307/13.79, allocations: 1.235 MB / 3.939 GB, free: 46.76 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.282e-06/13.79, allocations: 0 / 3.939 GB, free: 46.76 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0142/13.8, allocations: 2.826 MB / 3.942 GB, free: 46.75 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$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) * 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 (168): * Single equations (assignments): 143 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03228/13.84, allocations: 10.22 MB / 3.952 GB, free: 45.38 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01408/13.85, allocations: 5.364 MB / 3.957 GB, free: 44.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/13.85, allocations: 0 / 3.957 GB, free: 44.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006181/13.86, allocations: 2.362 MB / 3.959 GB, free: 44.65 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008745/13.87, allocations: 0.8977 MB / 3.96 GB, free: 44.63 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3953/14.26, allocations: 129.1 MB / 4.086 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003456/14.26, allocations: 2.3 MB / 4.089 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.4311/14.7, allocations: 2.536 MB / 4.091 GB, free: 68.33 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003147/14.7, allocations: 1.278 MB / 4.092 GB, free: 68.32 MB / 0.5417 GB Notification: Performance of SimCode: time 1.944e-06/14.7, allocations: 0 / 4.092 GB, free: 68.32 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3959/15.09, allocations: 123.4 MB / 4.213 GB, free: 54.32 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002147/15.1, allocations: 234.2 kB / 4.213 GB, free: 54.01 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.889/23.98, allocations: 3.25 kB / 4.213 GB, free: 54.01 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat