Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.151/2.151, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.081e-05/6.096e-05, allocations: 4 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1114, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.899/8.01, allocations: 2.545 GB / 2.859 GB, free: 12.62 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002785/8.01, allocations: 79.27 kB / 2.859 GB, free: 12.58 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.462/11.47, allocations: 0.5598 GB / 3.419 GB, free: 42.33 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.595e-06/11.47, allocations: 1.5 kB / 3.419 GB, free: 42.33 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002223/11.47, allocations: 46.8 kB / 3.419 GB, free: 42.32 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.01582/11.49, allocations: 2.772 MB / 3.422 GB, free: 40.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.994e-05/11.49, allocations: 13.42 kB / 3.422 GB, free: 40.9 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009028/11.49, allocations: 188.4 kB / 3.422 GB, free: 40.86 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009336/11.5, allocations: 0.5334 MB / 3.422 GB, free: 40.77 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007585/11.51, allocations: 1.428 MB / 3.424 GB, free: 40.41 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002574/11.51, allocations: 109.6 kB / 3.424 GB, free: 40.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006171/11.51, allocations: 132.8 kB / 3.424 GB, free: 40.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01041/11.52, allocations: 2.252 MB / 3.426 GB, free: 40.01 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.361e-05/11.52, allocations: 10.22 kB / 3.426 GB, free: 40.01 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003674/11.52, allocations: 58.45 kB / 3.426 GB, free: 40.01 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002789/11.52, allocations: 95.77 kB / 3.426 GB, free: 40.01 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009887/11.53, allocations: 1.961 MB / 3.428 GB, free: 39.99 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.02528/11.55, allocations: 9.646 MB / 3.438 GB, free: 34.06 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006457/11.56, allocations: 1.308 MB / 3.439 GB, free: 34.03 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001564/11.56, allocations: 0.6113 MB / 3.44 GB, free: 34.02 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05883/11.62, allocations: 18.83 MB / 3.458 GB, free: 22.27 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003764/11.62, allocations: 1.03 MB / 3.459 GB, free: 22.18 MB / 458.7 MB Notification: Performance of pre-optimization done (n=94): time 5.841e-06/11.62, allocations: 0 / 3.459 GB, free: 22.18 MB / 458.7 MB Notification: Performance of matching and sorting (n=102): time 0.01747/11.64, allocations: 4.384 MB / 3.463 GB, free: 21.48 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/11.64, allocations: 280.8 kB / 3.464 GB, free: 21.17 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00211/11.64, allocations: 0.9714 MB / 3.465 GB, free: 21 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003804/11.65, allocations: 46.89 kB / 3.465 GB, free: 20.97 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007354/11.65, allocations: 0.6312 MB / 3.465 GB, free: 20.63 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006865/11.65, allocations: 359.9 kB / 3.466 GB, free: 20.41 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/11.65, allocations: 24.84 kB / 3.466 GB, free: 20.41 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/11.65, allocations: 360.4 kB / 3.466 GB, free: 20.09 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001576/11.65, allocations: 0.6064 MB / 3.467 GB, free: 20.09 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001695/11.65, allocations: 0.9354 MB / 3.467 GB, free: 19.73 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001828/11.65, allocations: 0.7609 MB / 3.468 GB, free: 19.68 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.176e-05/11.65, allocations: 3.906 kB / 3.468 GB, free: 19.68 MB / 458.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004781/11.66, allocations: 1.793 MB / 3.47 GB, free: 19.56 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000792/11.66, allocations: 3.256 MB / 3.473 GB, free: 16.17 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-05/11.66, allocations: 12.91 kB / 3.473 GB, free: 16.17 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009496/11.66, allocations: 131.7 kB / 3.473 GB, free: 16.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002716/11.66, allocations: 320.9 kB / 3.474 GB, free: 16.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001006/11.66, allocations: 1.261 MB / 3.475 GB, free: 15.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002638/11.67, allocations: 160.3 kB / 3.475 GB, free: 15.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003276/11.67, allocations: 62.2 kB / 3.475 GB, free: 15.11 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/11.67, allocations: 3.562 kB / 3.475 GB, free: 15.11 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00444/11.67, allocations: 1.695 MB / 3.477 GB, free: 15.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.875e-05/11.67, allocations: 11.69 kB / 3.477 GB, free: 15.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006206/11.67, allocations: 131.5 kB / 3.477 GB, free: 15.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002435/11.67, allocations: 320.5 kB / 3.477 GB, free: 15.02 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008881/11.67, allocations: 1.253 MB / 3.478 GB, free: 13.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001923/11.68, allocations: 154.5 kB / 3.478 GB, free: 13.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002286/11.68, allocations: 64.97 kB / 3.479 GB, free: 13.98 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.0005156/11.68, allocations: 221.3 kB / 3.479 GB, free: 13.83 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004114/11.68, allocations: 136.8 kB / 3.479 GB, free: 13.76 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008196/11.69, allocations: 4.688 MB / 3.483 GB, free: 13.24 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.543e-05/11.69, allocations: 54.44 kB / 3.484 GB, free: 13.24 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.849e-06/11.69, allocations: 0 / 3.484 GB, free: 13.24 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006335/11.69, allocations: 3.915 MB / 3.487 GB, free: 12.78 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0122/11.7, allocations: 6.651 MB / 3.494 GB, free: 12.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.241e-05/11.7, allocations: 3.219 kB / 3.494 GB, free: 12.21 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001967/11.71, allocations: 238.5 kB / 3.494 GB, free: 12.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009855/11.71, allocations: 185.9 kB / 3.494 GB, free: 12.19 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002025/11.71, allocations: 42.73 kB / 3.494 GB, free: 12.19 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001456/11.71, allocations: 1.283 MB / 3.496 GB, free: 27.15 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/11.71, allocations: 0 / 3.496 GB, free: 27.15 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007737/11.72, allocations: 4.151 MB / 3.5 GB, free: 26.73 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001557/11.72, allocations: 0.5224 MB / 3.5 GB, free: 26.48 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004431/11.72, allocations: 34.17 kB / 3.5 GB, free: 26.47 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00176/11.72, allocations: 125.5 kB / 3.5 GB, free: 26.46 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002789/11.72, allocations: 84.56 kB / 3.5 GB, free: 26.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001368/11.72, allocations: 46.56 kB / 3.5 GB, free: 26.46 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001759/11.72, allocations: 0.8561 MB / 3.501 GB, free: 26.34 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.212e-06/11.72, allocations: 0 / 3.501 GB, free: 26.34 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01043/11.73, allocations: 2.174 MB / 3.503 GB, free: 26 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.02309/11.76, allocations: 6.957 MB / 3.51 GB, free: 24.14 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007822/11.76, allocations: 2.99 MB / 3.513 GB, free: 23.01 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/11.76, allocations: 0 / 3.513 GB, free: 23.01 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003201/11.77, allocations: 1.411 MB / 3.514 GB, free: 22.38 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005389/11.77, allocations: 0.5655 MB / 3.515 GB, free: 22.26 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8052/12.58, allocations: 124.4 MB / 3.636 GB, free: 48.23 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00151/12.58, allocations: 1.7 MB / 3.638 GB, free: 47.48 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001855/12.58, allocations: 0.8502 MB / 3.639 GB, free: 47.47 MB / 474.7 MB Notification: Performance of SimCode: time 2.013e-06/12.58, allocations: 0 / 3.639 GB, free: 47.47 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.888/17.47, allocations: 77.44 MB / 3.715 GB, free: 15.55 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat