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.389/2.389, allocations: 209.4 MB / 216.9 MB, free: 6.738 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 2.372e-05/2.389e-05, allocations: 4 kB / 267.6 MB, free: 5.406 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1123, allocations: 48.7 MB / 316.3 MB, free: 4.609 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.846/7.959, allocations: 2.544 GB / 2.853 GB, free: 47.86 MB / 426.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/7.959, allocations: 77.27 kB / 2.853 GB, free: 47.82 MB / 426.8 MB Notification: Performance of FrontEnd - DAE generated: time 2.963/10.92, allocations: 0.5549 GB / 3.408 GB, free: 3.781 MB / 458.8 MB Notification: Performance of FrontEnd: time 2.174e-06/10.92, allocations: 4 kB / 3.408 GB, free: 3.777 MB / 458.8 MB Notification: Performance of Transformations before backend: time 0.0002197/10.92, allocations: 47.88 kB / 3.408 GB, free: 3.73 MB / 458.8 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.01355/10.94, allocations: 2.762 MB / 3.411 GB, free: 0.9258 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/10.94, allocations: 11.97 kB / 3.411 GB, free: 0.9141 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006056/10.94, allocations: 0.5226 MB / 3.412 GB, free: 400 kB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3551/11.3, allocations: 1.429 MB / 3.413 GB, free: 36.28 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002057/11.3, allocations: 60.28 kB / 3.413 GB, free: 36.28 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007516/11.3, allocations: 77 kB / 3.413 GB, free: 36.28 MB / 458.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005502/11.3, allocations: 1.55 MB / 3.415 GB, free: 36.27 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006205/11.31, allocations: 1.761 MB / 3.416 GB, free: 35.89 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.354e-05/11.31, allocations: 3.969 kB / 3.416 GB, free: 35.89 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002598/11.31, allocations: 4.062 kB / 3.416 GB, free: 35.89 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002308/11.31, allocations: 104.1 kB / 3.416 GB, free: 35.89 MB / 458.8 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.2949/11.61, allocations: 73.31 MB / 3.488 GB, free: 30.34 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002391/11.61, allocations: 0.9238 MB / 3.489 GB, free: 30.3 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/11.61, allocations: 0.5437 MB / 3.489 GB, free: 30.29 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05572/11.67, allocations: 17.43 MB / 3.506 GB, free: 18.84 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001698/11.67, allocations: 0.7091 MB / 3.507 GB, free: 18.72 MB / 490.8 MB Notification: Performance of pre-optimization done (n=86): time 5.33e-06/11.67, allocations: 0 / 3.507 GB, free: 18.72 MB / 490.8 MB Notification: Performance of matching and sorting (n=94): time 0.02747/11.69, allocations: 4.676 MB / 3.512 GB, free: 17.57 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003017/11.7, allocations: 375.5 kB / 3.512 GB, free: 17.13 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002346/11.7, allocations: 0.7931 MB / 3.513 GB, free: 16.98 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004124/11.7, allocations: 29.17 kB / 3.513 GB, free: 16.95 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009877/11.7, allocations: 0.6835 MB / 3.514 GB, free: 16.63 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007309/11.7, allocations: 322.7 kB / 3.514 GB, free: 16.46 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001954/11.7, allocations: 0 / 3.514 GB, free: 16.46 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0002747/11.7, allocations: 362.3 kB / 3.514 GB, free: 16.15 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002132/11.7, allocations: 0.5941 MB / 3.515 GB, free: 16.15 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002487/11.7, allocations: 0.9033 MB / 3.516 GB, free: 15.79 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02208/11.73, allocations: 1.754 MB / 3.517 GB, free: 15.75 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-05/11.73, allocations: 3.844 kB / 3.517 GB, free: 15.75 MB / 490.8 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.02099/11.75, allocations: 2.719 MB / 3.52 GB, free: 15.62 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.002101/11.75, allocations: 3.265 MB / 3.523 GB, free: 28.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.158e-05/11.75, allocations: 11.16 kB / 3.523 GB, free: 28.2 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006336/11.75, allocations: 129.4 kB / 3.523 GB, free: 28.18 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002712/11.75, allocations: 318 kB / 3.524 GB, free: 28.18 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001446/11.76, allocations: 1.267 MB / 3.525 GB, free: 27.14 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00282/11.76, allocations: 165.9 kB / 3.525 GB, free: 27.12 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000264/11.76, allocations: 65.14 kB / 3.525 GB, free: 27.12 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/11.76, allocations: 2.688 kB / 3.525 GB, free: 27.12 MB / 0.4949 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01447/11.77, allocations: 2.521 MB / 3.528 GB, free: 27.05 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.913e-05/11.77, allocations: 14.41 kB / 3.528 GB, free: 27.04 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004567/11.77, allocations: 123.6 kB / 3.528 GB, free: 27.03 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002521/11.78, allocations: 322.6 kB / 3.528 GB, free: 27.02 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001303/11.78, allocations: 1.264 MB / 3.529 GB, free: 25.98 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002222/11.78, allocations: 147.5 kB / 3.529 GB, free: 25.97 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002266/11.78, allocations: 69.3 kB / 3.529 GB, free: 25.97 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.0005921/11.78, allocations: 178.3 kB / 3.53 GB, free: 25.82 MB / 0.4949 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005155/11.79, allocations: 1.43 MB / 3.531 GB, free: 25.7 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005023/11.79, allocations: 128.8 kB / 3.531 GB, free: 25.64 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007983/11.79, allocations: 3.765 MB / 3.535 GB, free: 25.25 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.411e-05/11.79, allocations: 46.47 kB / 3.535 GB, free: 25.25 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/11.79, allocations: 0 / 3.535 GB, free: 25.25 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005977/11.8, allocations: 2.97 MB / 3.538 GB, free: 24.89 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/11.81, allocations: 5.244 MB / 3.543 GB, free: 24.42 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/11.81, allocations: 3.844 kB / 3.543 GB, free: 24.42 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001712/11.81, allocations: 199.8 kB / 3.543 GB, free: 24.41 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007565/11.81, allocations: 170.8 kB / 3.543 GB, free: 24.39 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002111/11.81, allocations: 22.61 kB / 3.543 GB, free: 24.39 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001268/11.82, allocations: 1.341 MB / 3.545 GB, free: 23.34 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.862e-06/11.82, allocations: 2.812 kB / 3.545 GB, free: 23.34 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007672/11.82, allocations: 3.628 MB / 3.548 GB, free: 22.86 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00147/11.83, allocations: 492.6 kB / 3.549 GB, free: 22.64 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004979/11.83, allocations: 12.98 kB / 3.549 GB, free: 22.64 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001798/11.83, allocations: 97.19 kB / 3.549 GB, free: 22.62 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002922/11.83, allocations: 83.31 kB / 3.549 GB, free: 22.62 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/11.83, allocations: 37.2 kB / 3.549 GB, free: 22.62 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.001603/11.83, allocations: 0.7908 MB / 3.55 GB, free: 22.51 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.182e-06/11.83, allocations: 0 / 3.55 GB, free: 22.51 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.009819/11.84, allocations: 2.098 MB / 3.552 GB, free: 22.4 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.02229/11.86, allocations: 6.807 MB / 3.558 GB, free: 20.89 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.00736/11.87, allocations: 2.765 MB / 3.561 GB, free: 20.66 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 7.804e-06/11.87, allocations: 0 / 3.561 GB, free: 20.66 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.002686/11.87, allocations: 1.186 MB / 3.562 GB, free: 20.58 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00478/11.88, allocations: 0.5036 MB / 3.563 GB, free: 20.55 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01412/11.89, allocations: 4.379 MB / 3.567 GB, free: 19.41 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00153/11.89, allocations: 1.613 MB / 3.568 GB, free: 18.65 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001698/11.89, allocations: 0.7568 MB / 3.569 GB, free: 18.64 MB / 0.4949 GB Notification: Performance of SimCode: time 1.413e-06/11.89, allocations: 6.281 kB / 3.569 GB, free: 18.64 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.203/17.1, allocations: 74.56 MB / 3.642 GB, free: 81.79 MB / 0.4949 GB 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