Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.219/2.219, allocations: 209.4 MB / 216.5 MB, free: 6.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.241e-05/2.251e-05, allocations: 4 kB / 267.6 MB, free: 4.961 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1053, allocations: 48.7 MB / 316.3 MB, free: 4.168 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.156/8.262, allocations: 2.544 GB / 2.853 GB, free: 44.86 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/8.262, allocations: 75.08 kB / 2.853 GB, free: 44.82 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.999/11.26, allocations: 0.5549 GB / 3.408 GB, free: 2.938 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.154e-06/11.26, allocations: 0 / 3.408 GB, free: 2.938 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002384/11.26, allocations: 55.56 kB / 3.408 GB, free: 2.887 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: 320 * Number of variables: 320 Notification: Performance of Generate backend data structure: time 0.01345/11.27, allocations: 2.77 MB / 3.411 GB, free: 72 kB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.691e-05/11.28, allocations: 12.03 kB / 3.411 GB, free: 60 kB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3991/11.67, allocations: 0.517 MB / 3.412 GB, free: 37.32 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008003/11.68, allocations: 1.428 MB / 3.413 GB, free: 37.04 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002575/11.68, allocations: 58.86 kB / 3.413 GB, free: 37.04 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007915/11.68, allocations: 75.81 kB / 3.413 GB, free: 37.04 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007213/11.69, allocations: 1.549 MB / 3.415 GB, free: 37.03 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00713/11.7, allocations: 1.761 MB / 3.416 GB, free: 36.64 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.032e-05/11.7, allocations: 5.438 kB / 3.416 GB, free: 36.64 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003718/11.7, allocations: 6.656 kB / 3.416 GB, free: 36.64 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003356/11.7, allocations: 99.31 kB / 3.416 GB, free: 36.64 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.2797/11.98, allocations: 73.3 MB / 3.488 GB, free: 31.1 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002436/11.98, allocations: 0.9311 MB / 3.489 GB, free: 31.06 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001315/11.98, allocations: 0.55 MB / 3.489 GB, free: 31.05 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05544/12.04, allocations: 17.43 MB / 3.506 GB, free: 19.61 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001635/12.04, allocations: 0.6997 MB / 3.507 GB, free: 19.48 MB / 490.7 MB Notification: Performance of pre-optimization done (n=86): time 4.328e-06/12.04, allocations: 0 / 3.507 GB, free: 19.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=94): time 0.02505/12.06, allocations: 4.677 MB / 3.512 GB, free: 18.33 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002325/12.06, allocations: 381.4 kB / 3.512 GB, free: 17.89 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001628/12.07, allocations: 0.7963 MB / 3.513 GB, free: 17.74 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003473/12.07, allocations: 25.7 kB / 3.513 GB, free: 17.71 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007108/12.07, allocations: 0.6906 MB / 3.514 GB, free: 17.46 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005482/12.07, allocations: 321.2 kB / 3.514 GB, free: 17.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00013/12.07, allocations: 0 / 3.514 GB, free: 17.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001986/12.07, allocations: 357.8 kB / 3.514 GB, free: 16.99 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001371/12.07, allocations: 0.5919 MB / 3.515 GB, free: 16.99 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001541/12.07, allocations: 0.9056 MB / 3.516 GB, free: 16.63 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01244/12.08, allocations: 1.75 MB / 3.517 GB, free: 16.59 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.959e-05/12.08, allocations: 8.688 kB / 3.517 GB, free: 16.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.01568/12.1, allocations: 2.787 MB / 3.52 GB, free: 16.42 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001438/12.1, allocations: 3.263 MB / 3.523 GB, free: 13 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-05/12.1, allocations: 11.91 kB / 3.523 GB, free: 13 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005925/12.1, allocations: 126.8 kB / 3.523 GB, free: 12.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002685/12.1, allocations: 322.7 kB / 3.524 GB, free: 12.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001358/12.11, allocations: 1.265 MB / 3.525 GB, free: 11.94 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00287/12.11, allocations: 162.1 kB / 3.525 GB, free: 11.92 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003265/12.11, allocations: 67.53 kB / 3.525 GB, free: 11.92 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/12.11, allocations: 3.406 kB / 3.525 GB, free: 11.92 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0146/12.12, allocations: 2.527 MB / 3.528 GB, free: 11.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.181e-05/12.12, allocations: 9 kB / 3.528 GB, free: 11.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004725/12.12, allocations: 125.3 kB / 3.528 GB, free: 11.83 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002621/12.13, allocations: 321.9 kB / 3.528 GB, free: 11.82 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001856/12.13, allocations: 1.271 MB / 3.529 GB, free: 26.78 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002517/12.13, allocations: 143.7 kB / 3.529 GB, free: 26.77 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003511/12.13, allocations: 63.48 kB / 3.53 GB, free: 26.77 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 16 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 147 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005973/12.13, allocations: 182.8 kB / 3.53 GB, free: 26.62 MB / 0.4949 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005413/12.14, allocations: 1.428 MB / 3.531 GB, free: 26.5 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006339/12.14, allocations: 129.2 kB / 3.531 GB, free: 26.43 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008668/12.15, allocations: 3.765 MB / 3.535 GB, free: 26.05 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-05/12.15, allocations: 40.88 kB / 3.535 GB, free: 26.05 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/12.15, allocations: 3.312 kB / 3.535 GB, free: 26.05 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006407/12.15, allocations: 2.971 MB / 3.538 GB, free: 25.68 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01212/12.17, allocations: 5.232 MB / 3.543 GB, free: 25.22 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/12.17, allocations: 7.125 kB / 3.543 GB, free: 25.22 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001769/12.17, allocations: 208.3 kB / 3.543 GB, free: 25.22 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007656/12.17, allocations: 172.5 kB / 3.543 GB, free: 25.19 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002637/12.17, allocations: 23.89 kB / 3.543 GB, free: 25.19 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0013/12.17, allocations: 1.347 MB / 3.545 GB, free: 24.14 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.255e-06/12.17, allocations: 0 / 3.545 GB, free: 24.14 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008153/12.18, allocations: 3.622 MB / 3.548 GB, free: 23.67 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001681/12.18, allocations: 493.7 kB / 3.549 GB, free: 23.44 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006314/12.18, allocations: 10.38 kB / 3.549 GB, free: 23.44 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00211/12.18, allocations: 95.25 kB / 3.549 GB, free: 23.43 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003949/12.18, allocations: 83.3 kB / 3.549 GB, free: 23.42 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001504/12.18, allocations: 37.61 kB / 3.549 GB, free: 23.42 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.001683/12.19, allocations: 0.7914 MB / 3.55 GB, free: 23.31 MB / 0.4949 GB Notification: Performance of sort global known variables: time 9.32e-07/12.19, allocations: 0 / 3.55 GB, free: 23.31 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01019/12.2, allocations: 2.096 MB / 3.552 GB, free: 23.2 MB / 0.4949 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,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 25 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 11 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02411/12.22, allocations: 6.804 MB / 3.558 GB, free: 21.69 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.007437/12.23, allocations: 2.808 MB / 3.561 GB, free: 21.45 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.219e-05/12.23, allocations: 6.812 kB / 3.561 GB, free: 21.45 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.002849/12.23, allocations: 1.182 MB / 3.562 GB, free: 21.38 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004834/12.24, allocations: 0.502 MB / 3.563 GB, free: 21.35 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01438/12.25, allocations: 4.351 MB / 3.567 GB, free: 20.33 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001552/12.25, allocations: 1.632 MB / 3.569 GB, free: 19.57 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.005395/12.26, allocations: 1.737 MB / 3.57 GB, free: 19.11 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001597/12.26, allocations: 0.7366 MB / 3.571 GB, free: 19.02 MB / 0.4949 GB Notification: Performance of SimCode: time 1.322e-06/12.26, allocations: 0 / 3.571 GB, free: 19.02 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5936/12.85, allocations: 72.71 MB / 3.642 GB, free: 82.19 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002393/12.85, allocations: 171.5 kB / 3.642 GB, free: 82 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.31/19.16, allocations: 0 / 3.642 GB, free: 82 MB / 0.4949 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat