Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.031/2.031, allocations: 209.4 MB / 216.5 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.817e-05/2.824e-05, allocations: 4 kB / 267.6 MB, free: 4.953 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1066, allocations: 48.71 MB / 316.3 MB, free: 4.148 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.38/7.487, allocations: 2.545 GB / 2.854 GB, free: 43.84 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002933/7.487, allocations: 82.38 kB / 2.854 GB, free: 43.8 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.401/11.89, allocations: 0.769 GB / 3.623 GB, free: 25.07 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.238e-06/11.89, allocations: 1.781 kB / 3.623 GB, free: 25.07 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003812/11.89, allocations: 71.25 kB / 3.623 GB, free: 25.06 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.02493/11.91, allocations: 3.828 MB / 3.627 GB, free: 23.16 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.661e-05/11.91, allocations: 9.25 kB / 3.627 GB, free: 23.16 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01315/11.93, allocations: 0.8118 MB / 3.627 GB, free: 23.02 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01074/11.94, allocations: 2.073 MB / 3.629 GB, free: 22.56 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002844/11.94, allocations: 95.7 kB / 3.63 GB, free: 22.56 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008761/11.94, allocations: 117.3 kB / 3.63 GB, free: 22.56 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008612/11.95, allocations: 2.863 MB / 3.632 GB, free: 22.55 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00878/11.96, allocations: 2.868 MB / 3.635 GB, free: 22 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.304e-05/11.96, allocations: 6.781 kB / 3.635 GB, free: 22 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003733/11.96, allocations: 7.875 kB / 3.635 GB, free: 22 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003252/11.96, allocations: 166.6 kB / 3.635 GB, free: 22 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.4224/12.38, allocations: 108.8 MB / 3.742 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003803/12.38, allocations: 1.583 MB / 3.743 GB, free: 12.36 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002071/12.39, allocations: 0.9675 MB / 3.744 GB, free: 11.85 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4346/12.82, allocations: 17.53 MB / 3.761 GB, free: 67.05 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003602/12.82, allocations: 1.216 MB / 3.762 GB, free: 66.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001897/12.83, allocations: 159.5 kB / 3.763 GB, free: 66.9 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=148): time 9.137e-06/12.83, allocations: 0 / 3.763 GB, free: 66.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=160): time 0.03599/12.86, allocations: 7.915 MB / 3.77 GB, free: 65.39 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001841/12.86, allocations: 0.5046 MB / 3.771 GB, free: 64.79 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003016/12.86, allocations: 1.192 MB / 3.772 GB, free: 64.62 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006251/12.87, allocations: 30.23 kB / 3.772 GB, free: 64.59 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001345/12.87, allocations: 1.036 MB / 3.773 GB, free: 64.24 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001014/12.87, allocations: 0.5235 MB / 3.774 GB, free: 63.97 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002318/12.87, allocations: 2.5 kB / 3.774 GB, free: 63.97 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001723/12.87, allocations: 383.2 kB / 3.774 GB, free: 63.67 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002957/12.87, allocations: 1.038 MB / 3.775 GB, free: 63.66 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003718/12.88, allocations: 1.483 MB / 3.776 GB, free: 63.16 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02065/12.9, allocations: 2.844 MB / 3.779 GB, free: 63.14 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-05/12.9, allocations: 3.75 kB / 3.779 GB, free: 63.14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.02606/12.92, allocations: 4.74 MB / 3.784 GB, free: 62.93 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001021/12.92, allocations: 4.525 MB / 3.788 GB, free: 58.33 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.41e-05/12.92, allocations: 19 kB / 3.788 GB, free: 58.33 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006245/12.93, allocations: 0.8035 MB / 3.789 GB, free: 58.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003954/12.93, allocations: 477.4 kB / 3.789 GB, free: 58.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00473/12.94, allocations: 3.326 MB / 3.793 GB, free: 56.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004606/12.94, allocations: 234.1 kB / 3.793 GB, free: 56.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007002/12.94, allocations: 105.6 kB / 3.793 GB, free: 56.2 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/12.94, allocations: 3.719 kB / 3.793 GB, free: 56.2 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02394/12.97, allocations: 4.227 MB / 3.797 GB, free: 56.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.408e-05/12.97, allocations: 19.09 kB / 3.797 GB, free: 56.11 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001754/12.97, allocations: 340.8 kB / 3.798 GB, free: 56.08 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00399/12.97, allocations: 493.4 kB / 3.798 GB, free: 56.08 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00515/12.98, allocations: 3.989 MB / 3.802 GB, free: 53.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004003/12.98, allocations: 209.5 kB / 3.802 GB, free: 53.31 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004612/12.98, allocations: 106.2 kB / 3.802 GB, free: 53.31 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,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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.0008579/12.98, allocations: 230.9 kB / 3.802 GB, free: 53.14 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009678/12.99, allocations: 2.654 MB / 3.805 GB, free: 52.95 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008682/12.99, allocations: 196.4 kB / 3.805 GB, free: 52.84 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01538/13.01, allocations: 6.724 MB / 3.812 GB, free: 52.35 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.169e-05/13.01, allocations: 66.36 kB / 3.812 GB, free: 52.35 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/13.01, allocations: 2.969 kB / 3.812 GB, free: 52.35 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0123/13.02, allocations: 5.682 MB / 3.817 GB, free: 51.61 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0216/13.04, allocations: 9.039 MB / 3.826 GB, free: 51.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.482e-05/13.04, allocations: 5.906 kB / 3.826 GB, free: 51.02 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002644/13.05, allocations: 290.9 kB / 3.826 GB, free: 51.02 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006221/13.05, allocations: 2.382 MB / 3.829 GB, free: 50.93 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005586/13.05, allocations: 40.92 kB / 3.829 GB, free: 50.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00544/13.06, allocations: 4.408 MB / 3.833 GB, free: 48.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.969e-06/13.06, allocations: 3.047 kB / 3.833 GB, free: 48.8 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01593/13.08, allocations: 7.114 MB / 3.84 GB, free: 48.16 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002516/13.08, allocations: 0.6896 MB / 3.841 GB, free: 47.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009598/13.08, allocations: 18.92 kB / 3.841 GB, free: 47.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003166/13.08, allocations: 153.2 kB / 3.841 GB, free: 47.85 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004764/13.08, allocations: 125.2 kB / 3.841 GB, free: 47.85 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002357/13.08, allocations: 70.92 kB / 3.841 GB, free: 47.85 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002327/13.09, allocations: 1.078 MB / 3.842 GB, free: 47.7 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.042e-06/13.09, allocations: 2.078 kB / 3.842 GB, free: 47.7 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0144/13.1, allocations: 2.679 MB / 3.845 GB, free: 47.58 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,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.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.03194/13.13, allocations: 10.04 MB / 3.855 GB, free: 45.99 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01265/13.14, allocations: 4.933 MB / 3.859 GB, free: 45.46 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/13.14, allocations: 3.844 kB / 3.859 GB, free: 45.46 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00478/13.15, allocations: 2.048 MB / 3.861 GB, free: 45.31 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007573/13.16, allocations: 0.7745 MB / 3.862 GB, free: 45.29 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02293/13.18, allocations: 6.703 MB / 3.869 GB, free: 43.82 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00273/13.18, allocations: 2.204 MB / 3.871 GB, free: 43.05 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008694/13.19, allocations: 2.418 MB / 3.873 GB, free: 43.02 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002868/13.19, allocations: 1.201 MB / 3.874 GB, free: 43.02 MB / 0.4948 GB Notification: Performance of SimCode: time 3.136e-06/13.19, allocations: 0 / 3.874 GB, free: 43.02 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7157/13.91, allocations: 102.7 MB / 3.975 GB, free: 66.24 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002652/13.91, allocations: 172 kB / 3.975 GB, free: 66.05 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.374/21.28, allocations: 0 / 3.975 GB, free: 66.05 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat