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.016/2.016, allocations: 209.3 MB / 221.5 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.17e-05/5.182e-05, allocations: 4 kB / 273.2 MB, free: 172 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1089, allocations: 48.71 MB / 321.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.896/8.005, allocations: 2.545 GB / 2.859 GB, free: 11.91 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003536/8.006, allocations: 74.34 kB / 2.859 GB, free: 11.88 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.653/11.66, allocations: 0.5598 GB / 3.419 GB, free: 41.52 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.936e-06/11.66, allocations: 0 / 3.419 GB, free: 41.52 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002443/11.66, allocations: 46.53 kB / 3.419 GB, free: 41.5 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.01361/11.67, allocations: 2.768 MB / 3.422 GB, free: 40.09 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.476e-05/11.67, allocations: 13.25 kB / 3.422 GB, free: 40.09 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007477/11.67, allocations: 190.9 kB / 3.422 GB, free: 40.04 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005741/11.68, allocations: 0.5254 MB / 3.423 GB, free: 39.95 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006016/11.69, allocations: 1.432 MB / 3.424 GB, free: 39.59 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002114/11.69, allocations: 117 kB / 3.424 GB, free: 39.59 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006492/11.69, allocations: 127.1 kB / 3.424 GB, free: 39.59 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007306/11.69, allocations: 2.258 MB / 3.426 GB, free: 39.2 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.464e-05/11.69, allocations: 6.188 kB / 3.426 GB, free: 39.2 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002681/11.69, allocations: 56.47 kB / 3.426 GB, free: 39.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002065/11.69, allocations: 100.4 kB / 3.426 GB, free: 39.19 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007014/11.7, allocations: 1.953 MB / 3.428 GB, free: 39.18 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.01941/11.72, allocations: 9.644 MB / 3.438 GB, free: 33.25 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004413/11.73, allocations: 1.311 MB / 3.439 GB, free: 33.22 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001421/11.73, allocations: 0.6057 MB / 3.44 GB, free: 33.21 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05839/11.79, allocations: 18.83 MB / 3.458 GB, free: 21.46 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00381/11.79, allocations: 1.025 MB / 3.459 GB, free: 21.37 MB / 458.7 MB Notification: Performance of pre-optimization done (n=94): time 6.251e-06/11.79, allocations: 2.625 kB / 3.459 GB, free: 21.37 MB / 458.7 MB Notification: Performance of matching and sorting (n=102): time 0.01741/11.81, allocations: 4.385 MB / 3.463 GB, free: 20.68 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/11.81, allocations: 280.1 kB / 3.464 GB, free: 20.36 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002087/11.81, allocations: 0.9691 MB / 3.465 GB, free: 20.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003743/11.81, allocations: 44.67 kB / 3.465 GB, free: 20.16 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007194/11.81, allocations: 0.6603 MB / 3.465 GB, free: 19.88 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005363/11.81, allocations: 353.3 kB / 3.466 GB, free: 19.66 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00013/11.81, allocations: 21.81 kB / 3.466 GB, free: 19.66 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/11.81, allocations: 360.3 kB / 3.466 GB, free: 19.36 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001555/11.81, allocations: 0.6067 MB / 3.467 GB, free: 19.36 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001861/11.81, allocations: 0.9382 MB / 3.467 GB, free: 18.99 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001869/11.82, allocations: 0.7551 MB / 3.468 GB, free: 18.95 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-05/11.82, allocations: 3.969 kB / 3.468 GB, free: 18.95 MB / 458.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.005545/11.82, allocations: 1.87 MB / 3.47 GB, free: 18.78 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007857/11.82, allocations: 3.269 MB / 3.473 GB, free: 15.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.235e-05/11.82, allocations: 9.719 kB / 3.473 GB, free: 15.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007439/11.82, allocations: 134.3 kB / 3.473 GB, free: 15.38 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002707/11.83, allocations: 327.5 kB / 3.474 GB, free: 15.38 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009805/11.83, allocations: 1.251 MB / 3.475 GB, free: 14.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002485/11.83, allocations: 160.9 kB / 3.475 GB, free: 14.33 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000241/11.83, allocations: 62.98 kB / 3.475 GB, free: 14.33 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/11.83, allocations: 3.906 kB / 3.475 GB, free: 14.33 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004476/11.83, allocations: 1.694 MB / 3.477 GB, free: 14.26 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.493e-05/11.83, allocations: 10.06 kB / 3.477 GB, free: 14.26 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006424/11.84, allocations: 133 kB / 3.477 GB, free: 14.24 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002534/11.84, allocations: 325.9 kB / 3.477 GB, free: 14.24 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009567/11.84, allocations: 1.251 MB / 3.478 GB, free: 13.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002408/11.84, allocations: 153.9 kB / 3.479 GB, free: 13.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002044/11.84, allocations: 64.86 kB / 3.479 GB, free: 13.2 MB / 458.7 MB 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,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,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.0005567/11.84, allocations: 224.3 kB / 3.479 GB, free: 13.05 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003244/11.84, allocations: 139.5 kB / 3.479 GB, free: 12.98 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008585/11.85, allocations: 4.677 MB / 3.484 GB, free: 12.46 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.766e-05/11.85, allocations: 54.5 kB / 3.484 GB, free: 12.46 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/11.85, allocations: 0 / 3.484 GB, free: 12.46 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006637/11.86, allocations: 3.921 MB / 3.487 GB, free: 12 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01295/11.87, allocations: 6.651 MB / 3.494 GB, free: 11.44 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.486e-05/11.87, allocations: 0 / 3.494 GB, free: 11.44 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002091/11.87, allocations: 240.2 kB / 3.494 GB, free: 11.44 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001057/11.87, allocations: 180.1 kB / 3.494 GB, free: 11.42 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002994/11.87, allocations: 40.45 kB / 3.494 GB, free: 11.42 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001454/11.88, allocations: 1.29 MB / 3.496 GB, free: 26.38 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/11.88, allocations: 0 / 3.496 GB, free: 26.38 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01139/11.89, allocations: 4.151 MB / 3.5 GB, free: 25.96 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002714/11.89, allocations: 0.5281 MB / 3.5 GB, free: 25.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008042/11.89, allocations: 35.41 kB / 3.5 GB, free: 25.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003392/11.89, allocations: 121.4 kB / 3.5 GB, free: 25.69 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006042/11.9, allocations: 89.17 kB / 3.5 GB, free: 25.68 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002319/11.9, allocations: 43.59 kB / 3.5 GB, free: 25.68 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003188/11.9, allocations: 0.8542 MB / 3.501 GB, free: 25.57 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.723e-06/11.9, allocations: 0 / 3.501 GB, free: 25.57 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01491/11.91, allocations: 2.169 MB / 3.503 GB, free: 25.23 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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 (118): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * 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.03177/11.95, allocations: 6.963 MB / 3.51 GB, free: 23.52 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008704/11.95, allocations: 3.034 MB / 3.513 GB, free: 22.36 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.315e-05/11.95, allocations: 3.938 kB / 3.513 GB, free: 22.36 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003403/11.96, allocations: 1.405 MB / 3.515 GB, free: 21.74 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006367/11.96, allocations: 0.567 MB / 3.515 GB, free: 21.62 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7614/12.73, allocations: 124.5 MB / 3.637 GB, free: 47.7 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001382/12.73, allocations: 1.715 MB / 3.638 GB, free: 46.94 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00514/12.73, allocations: 1.689 MB / 3.64 GB, free: 46.88 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001627/12.73, allocations: 0.8278 MB / 3.641 GB, free: 46.88 MB / 474.7 MB Notification: Performance of SimCode: time 1.443e-06/12.73, allocations: 4 kB / 3.641 GB, free: 46.87 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1875/12.92, allocations: 86.92 MB / 3.726 GB, free: 2.883 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002449/12.92, allocations: 226.8 kB / 3.726 GB, free: 2.656 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.862/19.78, allocations: 2.188 kB / 3.726 GB, free: 2.656 MB / 474.7 MB 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