Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.323/2.323, allocations: 235 MB / 247.6 MB, free: 14.33 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.287e-05/4.292e-05, allocations: 7.984 kB / 305 MB, free: 5.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4097/0.4097, allocations: 54.85 MB / 359.9 MB, free: 2.305 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.683/8.093, allocations: 2.655 GB / 3.007 GB, free: 103.7 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002633/8.093, allocations: 74.59 kB / 3.007 GB, free: 103.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.279/10.37, allocations: 463.7 MB / 3.459 GB, free: 24.21 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.494e-06/10.37, allocations: 3.938 kB / 3.46 GB, free: 24.21 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001254/10.37, allocations: 31.94 kB / 3.46 GB, free: 24.18 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.01043/10.38, allocations: 2.145 MB / 3.462 GB, free: 22.2 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/10.38, allocations: 8.031 kB / 3.462 GB, free: 22.19 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004468/10.38, allocations: 125 kB / 3.462 GB, free: 22.08 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004049/10.39, allocations: 376.4 kB / 3.462 GB, free: 21.79 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003315/10.39, allocations: 0.8779 MB / 3.463 GB, free: 21.04 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001359/10.39, allocations: 73.47 kB / 3.463 GB, free: 20.97 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003088/10.39, allocations: 74.41 kB / 3.463 GB, free: 20.9 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004764/10.4, allocations: 1.444 MB / 3.465 GB, free: 19.64 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.709e-05/10.4, allocations: 11.94 kB / 3.465 GB, free: 19.62 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001742/10.4, allocations: 38.12 kB / 3.465 GB, free: 19.59 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001194/10.4, allocations: 53.88 kB / 3.465 GB, free: 19.55 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0045/10.4, allocations: 1.235 MB / 3.466 GB, free: 18.5 MB / 490.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.01318/10.41, allocations: 6.557 MB / 3.472 GB, free: 11.52 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003396/10.42, allocations: 0.9224 MB / 3.473 GB, free: 10.57 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009038/10.42, allocations: 388.6 kB / 3.474 GB, free: 10.18 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4735/10.89, allocations: 32.1 MB / 3.505 GB, free: 51.71 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.109e-05/10.89, allocations: 38.03 kB / 3.505 GB, free: 51.67 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=57): time 4.037e-06/10.89, allocations: 3.844 kB / 3.505 GB, free: 51.67 MB / 0.4948 GB Notification: Performance of matching and sorting (n=61): time 0.01112/10.9, allocations: 2.798 MB / 3.508 GB, free: 51.14 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.075e-05/10.9, allocations: 196.2 kB / 3.508 GB, free: 50.93 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001429/10.91, allocations: 0.6375 MB / 3.508 GB, free: 50.8 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002595/10.91, allocations: 37.2 kB / 3.508 GB, free: 50.77 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003423/10.91, allocations: 428.5 kB / 3.509 GB, free: 50.54 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003122/10.91, allocations: 220.9 kB / 3.509 GB, free: 50.44 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.733e-05/10.91, allocations: 12.81 kB / 3.509 GB, free: 50.44 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001016/10.91, allocations: 341.6 kB / 3.509 GB, free: 50.12 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009675/10.91, allocations: 344 kB / 3.51 GB, free: 50.12 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001215/10.91, allocations: 0.5432 MB / 3.51 GB, free: 49.89 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001205/10.91, allocations: 418.5 kB / 3.511 GB, free: 49.89 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.008e-05/10.91, allocations: 1.094 kB / 3.511 GB, free: 49.89 MB / 0.4948 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003422/10.91, allocations: 1.137 MB / 3.512 GB, free: 49.82 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005601/10.91, allocations: 2.266 MB / 3.514 GB, free: 47.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.199e-05/10.91, allocations: 6.219 kB / 3.514 GB, free: 47.47 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005414/10.92, allocations: 0.6366 MB / 3.515 GB, free: 47.46 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001296/10.92, allocations: 163.9 kB / 3.515 GB, free: 47.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002487/10.92, allocations: 1.25 MB / 3.516 GB, free: 46.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001876/10.93, allocations: 105.7 kB / 3.516 GB, free: 46.93 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001883/10.93, allocations: 43.34 kB / 3.516 GB, free: 46.93 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/10.93, allocations: 5.562 kB / 3.516 GB, free: 46.93 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003578/10.93, allocations: 1.049 MB / 3.517 GB, free: 46.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.397e-05/10.93, allocations: 5.938 kB / 3.517 GB, free: 46.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002702/10.93, allocations: 386.4 kB / 3.518 GB, free: 46.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001421/10.93, allocations: 177.2 kB / 3.518 GB, free: 46.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001718/10.94, allocations: 1.055 MB / 3.519 GB, free: 46.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00141/10.94, allocations: 98.84 kB / 3.519 GB, free: 46.36 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/10.94, allocations: 45.69 kB / 3.519 GB, free: 46.36 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.000365/10.94, allocations: 153.1 kB / 3.519 GB, free: 46.25 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004055/10.94, allocations: 85.61 kB / 3.519 GB, free: 46.21 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006076/10.94, allocations: 3.237 MB / 3.522 GB, free: 45.91 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.608e-05/10.94, allocations: 36.78 kB / 3.522 GB, free: 45.91 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/10.94, allocations: 0.9375 kB / 3.522 GB, free: 45.91 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004398/10.95, allocations: 2.696 MB / 3.525 GB, free: 45.39 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007927/10.96, allocations: 4.479 MB / 3.529 GB, free: 44.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/10.96, allocations: 0 / 3.529 GB, free: 44.98 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00137/10.96, allocations: 176.4 kB / 3.529 GB, free: 44.98 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005373/10.96, allocations: 93.5 kB / 3.53 GB, free: 44.97 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.734e-05/10.96, allocations: 24.44 kB / 3.53 GB, free: 44.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004591/10.96, allocations: 0.6394 MB / 3.53 GB, free: 44.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/10.96, allocations: 6.781 kB / 3.53 GB, free: 44.45 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004514/10.96, allocations: 2.742 MB / 3.533 GB, free: 43.98 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001134/10.96, allocations: 457.2 kB / 3.533 GB, free: 43.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000296/10.97, allocations: 19.25 kB / 3.533 GB, free: 43.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001535/10.97, allocations: 93.8 kB / 3.533 GB, free: 43.79 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002276/10.97, allocations: 63.95 kB / 3.534 GB, free: 43.79 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.755e-05/10.97, allocations: 28.52 kB / 3.534 GB, free: 43.79 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001589/10.97, allocations: 0.7822 MB / 3.534 GB, free: 43.67 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.01e-07/10.97, allocations: 0.5625 kB / 3.534 GB, free: 43.67 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008362/10.98, allocations: 1.735 MB / 3.536 GB, free: 43.62 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 21 ($cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.region,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01799/11, allocations: 5.313 MB / 3.541 GB, free: 42.38 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004729/11, allocations: 1.628 MB / 3.543 GB, free: 42.35 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.318e-05/11, allocations: 3.344 kB / 3.543 GB, free: 42.35 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00219/11, allocations: 0.8351 MB / 3.544 GB, free: 42.35 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004294/11.01, allocations: 481.1 kB / 3.544 GB, free: 42.34 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01033/11.02, allocations: 3.201 MB / 3.547 GB, free: 41.66 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008739/11.02, allocations: 1.336 MB / 3.548 GB, free: 40.94 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/11.02, allocations: 0.5689 MB / 3.549 GB, free: 40.93 MB / 0.4948 GB Notification: Performance of SimCode: time 8.92e-07/11.02, allocations: 0 / 3.549 GB, free: 40.93 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.198/15.22, allocations: 52.11 MB / 3.6 GB, free: 37.3 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat does not exist to compare? outputFormat=mat