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.249/2.249, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.59e-05/2.6e-05, allocations: 0 / 267.6 MB, free: 5.312 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1191, allocations: 48.7 MB / 316.3 MB, free: 4.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.804/7.923, allocations: 2.476 GB / 2.785 GB, free: 105.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003042/7.924, allocations: 84.69 kB / 2.785 GB, free: 105.5 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.136/9.06, allocations: 208.9 MB / 2.989 GB, free: 59.13 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.613e-06/9.06, allocations: 3.938 kB / 2.989 GB, free: 59.12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.03e-05/9.06, allocations: 11.84 kB / 2.989 GB, free: 59.12 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.005496/9.066, allocations: 1.144 MB / 2.991 GB, free: 58.41 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/9.066, allocations: 11.34 kB / 2.991 GB, free: 58.41 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002363/9.068, allocations: 208.9 kB / 2.991 GB, free: 58.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008074/9.069, allocations: 386 kB / 2.991 GB, free: 58.09 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.208e-05/9.069, allocations: 21.86 kB / 2.991 GB, free: 58.08 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.447e-05/9.069, allocations: 16.78 kB / 2.991 GB, free: 58.08 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007286/9.07, allocations: 290.9 kB / 2.991 GB, free: 57.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007203/9.07, allocations: 382.7 kB / 2.992 GB, free: 57.75 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/9.071, allocations: 7.719 kB / 2.992 GB, free: 57.75 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.215e-05/9.071, allocations: 0 / 2.992 GB, free: 57.75 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/9.071, allocations: 7.75 kB / 2.992 GB, free: 57.75 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.007371/9.078, allocations: 3.864 MB / 2.996 GB, free: 54.71 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005987/9.079, allocations: 231.6 kB / 2.996 GB, free: 54.61 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002371/9.079, allocations: 113.4 kB / 2.996 GB, free: 54.56 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1705/9.249, allocations: 50.21 MB / 3.045 GB, free: 19.62 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.752e-05/9.249, allocations: 34.56 kB / 3.045 GB, free: 19.57 MB / 426.7 MB Notification: Performance of pre-optimization done (n=24): time 3.356e-06/9.249, allocations: 0 / 3.045 GB, free: 19.57 MB / 426.7 MB Notification: Performance of matching and sorting (n=24): time 0.002424/9.252, allocations: 0.5008 MB / 3.045 GB, free: 19.16 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.335e-05/9.252, allocations: 109.6 kB / 3.046 GB, free: 19.04 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003293/9.252, allocations: 240.3 kB / 3.046 GB, free: 18.81 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.335e-05/9.252, allocations: 33.58 kB / 3.046 GB, free: 18.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/9.253, allocations: 276 kB / 3.046 GB, free: 18.51 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.805e-05/9.253, allocations: 77.56 kB / 3.046 GB, free: 18.45 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.306e-05/9.253, allocations: 4 kB / 3.046 GB, free: 18.44 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.977e-05/9.253, allocations: 321.3 kB / 3.047 GB, free: 18.12 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001922/9.253, allocations: 83.98 kB / 3.047 GB, free: 18.04 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002574/9.253, allocations: 206.8 kB / 3.047 GB, free: 17.79 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008894/9.254, allocations: 172.2 kB / 3.047 GB, free: 17.65 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/9.254, allocations: 0 / 3.047 GB, free: 17.65 MB / 426.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001309/9.255, allocations: 361 kB / 3.047 GB, free: 17.33 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/9.256, allocations: 8 kB / 3.047 GB, free: 17.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/9.256, allocations: 7.953 kB / 3.047 GB, free: 17.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.764e-05/9.256, allocations: 4 kB / 3.047 GB, free: 17.31 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006558/9.256, allocations: 99.2 kB / 3.047 GB, free: 17.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/9.256, allocations: 8 kB / 3.047 GB, free: 17.22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005946/9.257, allocations: 54.67 kB / 3.047 GB, free: 17.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.386e-05/9.257, allocations: 16 kB / 3.047 GB, free: 17.16 MB / 426.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.0001259/9.257, allocations: 123.5 kB / 3.048 GB, free: 17.04 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001146/9.258, allocations: 300.9 kB / 3.048 GB, free: 16.77 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.448e-05/9.258, allocations: 35.52 kB / 3.048 GB, free: 16.74 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002513/9.261, allocations: 1.615 MB / 3.049 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.754e-05/9.261, allocations: 22.83 kB / 3.05 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/9.261, allocations: 7.938 kB / 3.05 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/9.261, allocations: 3.328 kB / 3.05 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/9.262, allocations: 0.8238 MB / 3.05 GB, free: 14.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/9.262, allocations: 0 / 3.05 GB, free: 14.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005553/9.263, allocations: 74.72 kB / 3.05 GB, free: 14.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/9.263, allocations: 0 / 3.05 GB, free: 14.46 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.605e-05/9.263, allocations: 7.953 kB / 3.05 GB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/9.263, allocations: 8 kB / 3.05 GB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/9.263, allocations: 0 / 3.05 GB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001584/9.264, allocations: 0.9167 MB / 3.051 GB, free: 13.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002589/9.265, allocations: 210.9 kB / 3.052 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.709e-05/9.265, allocations: 0 / 3.052 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005014/9.265, allocations: 43.58 kB / 3.052 GB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/9.265, allocations: 29.97 kB / 3.052 GB, free: 13.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-05/9.265, allocations: 12 kB / 3.052 GB, free: 13.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003576/9.266, allocations: 257.9 kB / 3.052 GB, free: 13.09 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.81e-07/9.266, allocations: 4 kB / 3.052 GB, free: 13.09 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005356/9.271, allocations: 0.9741 MB / 3.053 GB, free: 12.14 MB / 426.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: 17 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.01135/9.283, allocations: 2.794 MB / 3.056 GB, free: 9.531 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009393/9.284, allocations: 461.2 kB / 3.056 GB, free: 9.082 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/9.284, allocations: 0 / 3.056 GB, free: 9.082 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005262/9.284, allocations: 421 kB / 3.056 GB, free: 8.668 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001604/9.286, allocations: 170.7 kB / 3.057 GB, free: 8.504 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5114/9.797, allocations: 54.81 MB / 3.11 GB, free: 72.84 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000427/9.798, allocations: 0.9603 MB / 3.111 GB, free: 72.14 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003939/9.798, allocations: 238.8 kB / 3.111 GB, free: 72.13 MB / 442.7 MB Notification: Performance of SimCode: time 1.122e-06/9.798, allocations: 0 / 3.111 GB, free: 72.13 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.643/13.44, allocations: 29.22 MB / 3.14 GB, free: 69.07 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