Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.941/1.941, allocations: 209.4 MB / 216.5 MB, free: 6.68 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.531e-05/2.54e-05, allocations: 0 / 267.6 MB, free: 4.98 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1079, allocations: 48.71 MB / 316.3 MB, free: 4.172 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.753/7.861, allocations: 2.562 GB / 2.871 GB, free: 26.48 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/7.861, allocations: 73.84 kB / 2.871 GB, free: 26.45 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699/12.56, allocations: 0.8392 GB / 3.71 GB, free: 21.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.445e-06/12.56, allocations: 0 / 3.71 GB, free: 21.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003623/12.56, allocations: 62.62 kB / 3.71 GB, free: 21.78 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01823/12.58, allocations: 3.62 MB / 3.714 GB, free: 19.05 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/12.58, allocations: 12.03 kB / 3.714 GB, free: 19.04 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008366/12.59, allocations: 0.7609 MB / 3.715 GB, free: 18.42 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007882/12.6, allocations: 1.954 MB / 3.717 GB, free: 16.67 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002093/12.6, allocations: 84.33 kB / 3.717 GB, free: 16.59 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007507/12.6, allocations: 115.9 kB / 3.717 GB, free: 16.47 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006403/12.6, allocations: 2.283 MB / 3.719 GB, free: 14.19 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006958/12.61, allocations: 2.522 MB / 3.722 GB, free: 11.5 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.771e-05/12.61, allocations: 11.88 kB / 3.722 GB, free: 11.48 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003273/12.61, allocations: 8 kB / 3.722 GB, free: 11.48 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002916/12.61, allocations: 143.2 kB / 3.722 GB, free: 11.34 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.8007/13.41, allocations: 108 MB / 3.827 GB, free: 13.32 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003673/13.42, allocations: 1.429 MB / 3.829 GB, free: 13.29 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002158/13.42, allocations: 0.9297 MB / 3.829 GB, free: 13.28 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05527/13.47, allocations: 17.48 MB / 3.847 GB, free: 17.73 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002959/13.48, allocations: 1.126 MB / 3.848 GB, free: 17.58 MB / 0.4949 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001764/13.48, allocations: 143.6 kB / 3.848 GB, free: 17.58 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=141): time 1.01e-05/13.48, allocations: 0 / 3.848 GB, free: 17.58 MB / 0.4949 GB Notification: Performance of matching and sorting (n=153): time 0.05628/13.53, allocations: 8.767 MB / 3.856 GB, free: 16.05 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002214/13.53, allocations: 368.7 kB / 3.857 GB, free: 15.64 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00239/13.54, allocations: 1.014 MB / 3.858 GB, free: 15.48 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0006386/13.54, allocations: 32.72 kB / 3.858 GB, free: 15.45 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.001283/13.54, allocations: 0.9302 MB / 3.859 GB, free: 15.13 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009946/13.54, allocations: 0.4996 MB / 3.859 GB, free: 14.88 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002521/13.54, allocations: 0 / 3.859 GB, free: 14.88 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0002513/13.54, allocations: 378.6 kB / 3.859 GB, free: 14.57 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002407/13.54, allocations: 0.8889 MB / 3.86 GB, free: 14.57 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00299/13.55, allocations: 1.316 MB / 3.862 GB, free: 14.12 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01431/13.56, allocations: 1.81 MB / 3.863 GB, free: 14.08 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.078e-05/13.56, allocations: 3.438 kB / 3.863 GB, free: 14.08 MB / 0.4949 GB Notification: Performance of matching and sorting (n=232) (initialization): time 0.02084/13.58, allocations: 3.485 MB / 3.867 GB, free: 13.85 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.002126/13.58, allocations: 4.31 MB / 3.871 GB, free: 9.398 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.311e-05/13.58, allocations: 14 kB / 3.871 GB, free: 9.398 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003805/13.59, allocations: 0.4886 MB / 3.871 GB, free: 9.355 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003859/13.59, allocations: 457.8 kB / 3.872 GB, free: 9.352 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003703/13.59, allocations: 2.808 MB / 3.875 GB, free: 7.266 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004606/13.6, allocations: 265.7 kB / 3.875 GB, free: 7.234 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008177/13.6, allocations: 99.97 kB / 3.875 GB, free: 7.23 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/13.6, allocations: 5.188 kB / 3.875 GB, free: 7.23 MB / 0.4949 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0176/13.62, allocations: 2.967 MB / 3.878 GB, free: 7.137 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.054e-05/13.62, allocations: 10.75 kB / 3.878 GB, free: 7.137 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000673/13.62, allocations: 186.7 kB / 3.878 GB, free: 7.113 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003876/13.62, allocations: 463.6 kB / 3.879 GB, free: 7.109 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00186/13.62, allocations: 1.894 MB / 3.88 GB, free: 5.551 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004069/13.63, allocations: 243.2 kB / 3.881 GB, free: 5.523 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000735/13.63, allocations: 95.02 kB / 3.881 GB, free: 5.52 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.000897/13.63, allocations: 234.1 kB / 3.881 GB, free: 5.348 MB / 0.4949 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0174/13.65, allocations: 2.895 MB / 3.884 GB, free: 5.148 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008194/13.65, allocations: 182.4 kB / 3.884 GB, free: 5.055 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02299/13.67, allocations: 6.692 MB / 3.89 GB, free: 4.539 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.861e-05/13.67, allocations: 64.05 kB / 3.891 GB, free: 4.539 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/13.67, allocations: 0 / 3.891 GB, free: 4.539 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01955/13.69, allocations: 5.84 MB / 3.896 GB, free: 3.773 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03131/13.72, allocations: 9.9 MB / 3.906 GB, free: 17.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.823e-05/13.72, allocations: 14.39 kB / 3.906 GB, free: 17.97 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002541/13.73, allocations: 308.6 kB / 3.906 GB, free: 17.74 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003326/13.73, allocations: 1.272 MB / 3.907 GB, free: 16.85 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005093/13.73, allocations: 40.36 kB / 3.908 GB, free: 16.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004047/13.73, allocations: 3.397 MB / 3.911 GB, free: 14.06 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.126e-05/13.73, allocations: 7 kB / 3.911 GB, free: 14.06 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02364/13.76, allocations: 7.074 MB / 3.918 GB, free: 9.695 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002307/13.76, allocations: 0.6507 MB / 3.918 GB, free: 9.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007368/13.76, allocations: 26.83 kB / 3.918 GB, free: 9.211 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002783/13.76, allocations: 145.6 kB / 3.919 GB, free: 9.105 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004947/13.76, allocations: 141.2 kB / 3.919 GB, free: 9.039 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002369/13.76, allocations: 69.94 kB / 3.919 GB, free: 8.992 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002183/13.77, allocations: 0.9448 MB / 3.92 GB, free: 8.426 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.72e-07/13.77, allocations: 4 kB / 3.92 GB, free: 8.422 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01293/13.78, allocations: 2.449 MB / 3.922 GB, free: 6.359 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 43 ($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,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 (161): * Single equations (assignments): 139 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.4199/14.2, allocations: 11.62 MB / 3.933 GB, free: 88.77 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0122/14.21, allocations: 4.2 MB / 3.938 GB, free: 88.47 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.234e-05/14.21, allocations: 1.406 kB / 3.938 GB, free: 88.47 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004627/14.22, allocations: 2.084 MB / 3.94 GB, free: 88.33 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007263/14.22, allocations: 0.79 MB / 3.94 GB, free: 88.31 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02008/14.24, allocations: 6.302 MB / 3.946 GB, free: 87.13 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002284/14.25, allocations: 2.093 MB / 3.949 GB, free: 86.38 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008185/14.25, allocations: 2.482 MB / 3.951 GB, free: 86.33 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002378/14.26, allocations: 1.104 MB / 3.952 GB, free: 86.32 MB / 0.5105 GB Notification: Performance of SimCode: time 1.402e-06/14.26, allocations: 0 / 3.952 GB, free: 86.32 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2494/14.51, allocations: 95 MB / 4.045 GB, free: 78.43 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002585/14.51, allocations: 183.3 kB / 4.045 GB, free: 78.24 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.83/21.34, allocations: 0 / 4.045 GB, free: 78.24 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat