Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.104/2.104, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.073e-05/4.107e-05, allocations: 4 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1099, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.971/8.081, allocations: 2.477 GB / 2.791 GB, free: 90.16 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003062/8.081, allocations: 77.58 kB / 2.791 GB, free: 90.12 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.139/9.221, allocations: 211.5 MB / 2.998 GB, free: 44.2 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.884e-06/9.221, allocations: 0 / 2.998 GB, free: 44.2 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.205e-05/9.221, allocations: 8 kB / 2.998 GB, free: 44.2 MB / 426.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.00573/9.227, allocations: 1.141 MB / 2.999 GB, free: 43.02 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/9.227, allocations: 12.03 kB / 2.999 GB, free: 43 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001294/9.227, allocations: 66.38 kB / 2.999 GB, free: 42.93 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00252/9.23, allocations: 218.9 kB / 2.999 GB, free: 42.72 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009097/9.23, allocations: 386.5 kB / 3 GB, free: 42.31 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.865e-05/9.231, allocations: 24.78 kB / 3 GB, free: 42.29 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.171e-05/9.231, allocations: 31.38 kB / 3 GB, free: 42.26 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001846/9.232, allocations: 0.5713 MB / 3 GB, free: 41.65 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/9.233, allocations: 4 kB / 3 GB, free: 41.64 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.159e-05/9.233, allocations: 12 kB / 3 GB, free: 41.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/9.233, allocations: 8 kB / 3 GB, free: 41.62 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001688/9.234, allocations: 496.5 kB / 3.001 GB, free: 41.14 MB / 426.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.003802/9.238, allocations: 2.527 MB / 3.003 GB, free: 38.41 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001926/9.24, allocations: 413.9 kB / 3.004 GB, free: 38 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003171/9.24, allocations: 128.8 kB / 3.004 GB, free: 37.87 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5106/9.751, allocations: 51.59 MB / 3.054 GB, free: 74.09 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.322e-05/9.751, allocations: 34.83 kB / 3.054 GB, free: 74.05 MB / 442.7 MB Notification: Performance of pre-optimization done (n=25): time 3.116e-06/9.751, allocations: 1.188 kB / 3.054 GB, free: 74.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=25): time 0.003131/9.754, allocations: 0.614 MB / 3.055 GB, free: 74.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.779e-05/9.754, allocations: 109.3 kB / 3.055 GB, free: 73.89 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004434/9.755, allocations: 252.7 kB / 3.055 GB, free: 73.8 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.496e-05/9.755, allocations: 32.55 kB / 3.055 GB, free: 73.77 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/9.755, allocations: 270.5 kB / 3.055 GB, free: 73.59 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.795e-05/9.755, allocations: 82.11 kB / 3.055 GB, free: 73.55 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.476e-05/9.755, allocations: 4.656 kB / 3.055 GB, free: 73.55 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.202e-05/9.755, allocations: 329.2 kB / 3.056 GB, free: 73.23 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002765/9.756, allocations: 88.86 kB / 3.056 GB, free: 73.23 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000353/9.756, allocations: 213.9 kB / 3.056 GB, free: 73.09 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003569/9.756, allocations: 119 kB / 3.056 GB, free: 73.09 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/9.756, allocations: 0 / 3.056 GB, free: 73.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000947/9.757, allocations: 330.2 kB / 3.056 GB, free: 73.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/9.757, allocations: 8.844 kB / 3.056 GB, free: 73.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/9.757, allocations: 5.109 kB / 3.056 GB, free: 73.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.02e-05/9.758, allocations: 11.69 kB / 3.056 GB, free: 73.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007377/9.758, allocations: 98.56 kB / 3.057 GB, free: 73.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.195e-05/9.758, allocations: 9.047 kB / 3.057 GB, free: 73.04 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006376/9.759, allocations: 59.41 kB / 3.057 GB, free: 73.04 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.173e-05/9.759, allocations: 21.38 kB / 3.057 GB, free: 73.04 MB / 442.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.0001618/9.759, allocations: 126.9 kB / 3.057 GB, free: 72.93 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.776e-05/9.759, allocations: 34.5 kB / 3.057 GB, free: 72.91 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003316/9.763, allocations: 1.834 MB / 3.059 GB, free: 72.73 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.817e-05/9.763, allocations: 34.19 kB / 3.059 GB, free: 72.72 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/9.763, allocations: 0.6562 kB / 3.059 GB, free: 72.72 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/9.763, allocations: 1.828 kB / 3.059 GB, free: 72.72 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001644/9.764, allocations: 0.9833 MB / 3.06 GB, free: 72.49 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/9.765, allocations: 0 / 3.06 GB, free: 72.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006301/9.765, allocations: 81.33 kB / 3.06 GB, free: 72.49 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.051e-05/9.765, allocations: 3.344 kB / 3.06 GB, free: 72.49 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.401e-05/9.765, allocations: 6.594 kB / 3.06 GB, free: 72.49 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.111e-06/9.765, allocations: 1.375 kB / 3.06 GB, free: 72.49 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.239e-06/9.765, allocations: 3.953 kB / 3.06 GB, free: 72.48 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001672/9.767, allocations: 0.9753 MB / 3.061 GB, free: 72.26 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003001/9.767, allocations: 206.5 kB / 3.061 GB, free: 72.12 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.926e-05/9.767, allocations: 11.89 kB / 3.061 GB, free: 72.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005623/9.768, allocations: 39 kB / 3.061 GB, free: 72.12 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/9.768, allocations: 32.62 kB / 3.061 GB, free: 72.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.719e-05/9.768, allocations: 14.48 kB / 3.061 GB, free: 72.12 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004928/9.769, allocations: 256.6 kB / 3.061 GB, free: 72.04 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.11e-07/9.769, allocations: 0 / 3.061 GB, free: 72.04 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005634/9.774, allocations: 0.9985 MB / 3.062 GB, free: 72.04 MB / 442.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.01253/9.787, allocations: 2.805 MB / 3.065 GB, free: 71.24 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001427/9.788, allocations: 0.5007 MB / 3.065 GB, free: 71.23 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/9.789, allocations: 1.156 kB / 3.065 GB, free: 71.23 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008663/9.789, allocations: 468.6 kB / 3.066 GB, free: 71.22 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00196/9.791, allocations: 185.8 kB / 3.066 GB, free: 71.22 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2581/10.05, allocations: 75.47 MB / 3.14 GB, free: 68.06 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004687/10.05, allocations: 0.9826 MB / 3.141 GB, free: 67.35 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004621/10.05, allocations: 250.7 kB / 3.141 GB, free: 67.34 MB / 442.7 MB Notification: Performance of SimCode: time 1.964e-06/10.05, allocations: 2.406 kB / 3.141 GB, free: 67.34 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.431/13.48, allocations: 28.9 MB / 3.169 GB, free: 50.59 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat