Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.387/2.387, allocations: 235 MB / 247.6 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.601e-05/4.599e-05, allocations: 4 kB / 305 MB, free: 5.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4175/0.4175, allocations: 54.85 MB / 359.9 MB, free: 2.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.144/8.562, allocations: 2.588 GB / 2.939 GB, free: 106.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/8.562, allocations: 82.81 kB / 2.939 GB, free: 106.6 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.157/9.719, allocations: 215.4 MB / 3.149 GB, free: 81.3 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.463e-06/9.72, allocations: 1.219 kB / 3.149 GB, free: 81.3 MB / 490.7 MB Notification: Performance of Transformations before backend: time 2.987e-05/9.72, allocations: 12.78 kB / 3.149 GB, free: 81.3 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.00557/9.725, allocations: 1.164 MB / 3.151 GB, free: 80.73 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/9.725, allocations: 8.625 kB / 3.151 GB, free: 80.73 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000117/9.725, allocations: 69.34 kB / 3.151 GB, free: 80.69 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002442/9.728, allocations: 221.1 kB / 3.151 GB, free: 80.66 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007789/9.729, allocations: 386.8 kB / 3.151 GB, free: 80.45 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.799e-05/9.729, allocations: 34.73 kB / 3.151 GB, free: 80.45 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.814e-05/9.729, allocations: 32.05 kB / 3.151 GB, free: 80.45 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00178/9.731, allocations: 0.5721 MB / 3.152 GB, free: 80.31 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/9.731, allocations: 1.594 kB / 3.152 GB, free: 80.31 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.293e-05/9.731, allocations: 12.69 kB / 3.152 GB, free: 80.31 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/9.731, allocations: 6.375 kB / 3.152 GB, free: 80.31 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001611/9.732, allocations: 492.8 kB / 3.152 GB, free: 80.31 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.003418/9.736, allocations: 2.539 MB / 3.155 GB, free: 78.43 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0017/9.737, allocations: 414.1 kB / 3.155 GB, free: 78.41 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002879/9.738, allocations: 130.8 kB / 3.155 GB, free: 78.4 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1796/9.917, allocations: 51.63 MB / 3.206 GB, free: 50.19 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.897e-05/9.917, allocations: 37.69 kB / 3.206 GB, free: 50.15 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 2.995e-06/9.917, allocations: 0 / 3.206 GB, free: 50.15 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.002738/9.92, allocations: 0.6151 MB / 3.206 GB, free: 50.09 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/9.92, allocations: 113.6 kB / 3.207 GB, free: 49.96 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003638/9.921, allocations: 250 kB / 3.207 GB, free: 49.86 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.103e-05/9.921, allocations: 28.2 kB / 3.207 GB, free: 49.83 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000142/9.921, allocations: 274.3 kB / 3.207 GB, free: 49.64 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.689e-05/9.921, allocations: 88.75 kB / 3.207 GB, free: 49.59 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.714e-05/9.921, allocations: 3.812 kB / 3.207 GB, free: 49.59 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.517e-05/9.921, allocations: 326.5 kB / 3.207 GB, free: 49.28 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002653/9.921, allocations: 89.91 kB / 3.208 GB, free: 49.27 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003028/9.922, allocations: 210.2 kB / 3.208 GB, free: 49.13 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002918/9.922, allocations: 119.9 kB / 3.208 GB, free: 49.12 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/9.922, allocations: 0 / 3.208 GB, free: 49.12 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000789/9.923, allocations: 330 kB / 3.208 GB, free: 49.07 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/9.923, allocations: 7.594 kB / 3.208 GB, free: 49.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/9.923, allocations: 3.406 kB / 3.208 GB, free: 49.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.828e-05/9.923, allocations: 10.62 kB / 3.208 GB, free: 49.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006593/9.924, allocations: 92.66 kB / 3.208 GB, free: 49.07 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.745e-05/9.924, allocations: 9.719 kB / 3.208 GB, free: 49.07 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005917/9.924, allocations: 67.58 kB / 3.208 GB, free: 49.06 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.857e-05/9.924, allocations: 17.75 kB / 3.208 GB, free: 49.06 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000138/9.924, allocations: 129.8 kB / 3.208 GB, free: 48.95 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.671e-05/9.925, allocations: 30.25 kB / 3.209 GB, free: 48.93 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002604/9.927, allocations: 1.841 MB / 3.21 GB, free: 48.72 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.157e-05/9.927, allocations: 34.34 kB / 3.21 GB, free: 48.72 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/9.927, allocations: 0 / 3.21 GB, free: 48.72 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/9.927, allocations: 3.906 kB / 3.21 GB, free: 48.72 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001386/9.929, allocations: 0.9796 MB / 3.211 GB, free: 48.47 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/9.929, allocations: 0 / 3.211 GB, free: 48.47 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006249/9.929, allocations: 78.12 kB / 3.211 GB, free: 48.47 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.075e-05/9.929, allocations: 7.375 kB / 3.211 GB, free: 48.46 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.313e-05/9.929, allocations: 7.531 kB / 3.211 GB, free: 48.46 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/9.929, allocations: 4 kB / 3.211 GB, free: 48.46 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/9.929, allocations: 0 / 3.211 GB, free: 48.46 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001426/9.931, allocations: 0.9789 MB / 3.212 GB, free: 48.24 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002429/9.931, allocations: 209.8 kB / 3.213 GB, free: 48.07 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.26e-05/9.931, allocations: 7.062 kB / 3.213 GB, free: 48.07 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005461/9.932, allocations: 49.61 kB / 3.213 GB, free: 48.07 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/9.932, allocations: 29.5 kB / 3.213 GB, free: 48.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.864e-05/9.932, allocations: 14.88 kB / 3.213 GB, free: 48.07 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003944/9.932, allocations: 257.4 kB / 3.213 GB, free: 47.98 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.41e-07/9.932, allocations: 0 / 3.213 GB, free: 47.98 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005349/9.938, allocations: 1.005 MB / 3.214 GB, free: 47.83 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01169/9.95, allocations: 2.812 MB / 3.217 GB, free: 46.85 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001074/9.951, allocations: 0.4988 MB / 3.217 GB, free: 46.84 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/9.951, allocations: 0 / 3.217 GB, free: 46.84 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006553/9.951, allocations: 470.8 kB / 3.218 GB, free: 46.84 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001674/9.953, allocations: 175.4 kB / 3.218 GB, free: 46.82 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2541/10.21, allocations: 76.75 MB / 3.293 GB, free: 12.27 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004416/10.21, allocations: 0.9825 MB / 3.294 GB, free: 11.32 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004061/10.21, allocations: 247.3 kB / 3.294 GB, free: 11.08 MB / 490.7 MB Notification: Performance of SimCode: time 1.182e-06/10.21, allocations: 0 / 3.294 GB, free: 11.08 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.819/14.03, allocations: 29.04 MB / 3.322 GB, free: 67.23 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat