Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.038/2.038, allocations: 209.4 MB / 216.5 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.138e-05/3.153e-05, allocations: 4 kB / 267.6 MB, free: 4.934 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1105, allocations: 48.71 MB / 316.3 MB, free: 4.129 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.627/7.737, allocations: 2.476 GB / 2.785 GB, free: 105 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002819/7.737, allocations: 89.97 kB / 2.785 GB, free: 105 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.143/8.88, allocations: 208.9 MB / 2.989 GB, free: 60.18 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.595e-06/8.88, allocations: 0 / 2.989 GB, free: 60.18 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.121e-05/8.88, allocations: 10.72 kB / 2.989 GB, free: 60.18 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.005321/8.886, allocations: 1.145 MB / 2.991 GB, free: 59.46 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.211e-05/8.886, allocations: 10.91 kB / 2.991 GB, free: 59.46 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002421/8.888, allocations: 204.7 kB / 2.991 GB, free: 59.43 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008858/8.889, allocations: 390.2 kB / 2.991 GB, free: 59.14 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.052e-05/8.889, allocations: 15.5 kB / 2.991 GB, free: 59.14 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.316e-05/8.889, allocations: 15.62 kB / 2.991 GB, free: 59.14 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007644/8.89, allocations: 300 kB / 2.991 GB, free: 59.04 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007268/8.891, allocations: 379.1 kB / 2.992 GB, free: 58.81 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/8.891, allocations: 0 / 2.992 GB, free: 58.81 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.635e-05/8.891, allocations: 6.875 kB / 2.992 GB, free: 58.81 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/8.891, allocations: 7.625 kB / 2.992 GB, free: 58.81 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.007485/8.899, allocations: 3.869 MB / 2.996 GB, free: 55.77 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006094/8.899, allocations: 225.6 kB / 2.996 GB, free: 55.68 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000236/8.899, allocations: 116.9 kB / 2.996 GB, free: 55.62 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1853/9.085, allocations: 50.21 MB / 3.045 GB, free: 21.34 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.438e-05/9.085, allocations: 34.56 kB / 3.045 GB, free: 21.29 MB / 426.7 MB Notification: Performance of pre-optimization done (n=24): time 4.619e-06/9.085, allocations: 0 / 3.045 GB, free: 21.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=24): time 0.004228/9.089, allocations: 0.5083 MB / 3.046 GB, free: 20.88 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.158e-05/9.089, allocations: 106.7 kB / 3.046 GB, free: 20.75 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000487/9.09, allocations: 235.9 kB / 3.046 GB, free: 20.53 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.376e-05/9.09, allocations: 25.7 kB / 3.046 GB, free: 20.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002075/9.09, allocations: 226.4 kB / 3.046 GB, free: 20.29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001213/9.09, allocations: 76.98 kB / 3.046 GB, free: 20.22 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.829e-05/9.09, allocations: 0 / 3.046 GB, free: 20.22 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001139/9.09, allocations: 345.6 kB / 3.046 GB, free: 19.89 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003206/9.091, allocations: 83.89 kB / 3.047 GB, free: 19.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004036/9.091, allocations: 203 kB / 3.047 GB, free: 19.56 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/9.093, allocations: 175.9 kB / 3.047 GB, free: 19.42 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/9.093, allocations: 0 / 3.047 GB, free: 19.42 MB / 426.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002262/9.095, allocations: 384 kB / 3.047 GB, free: 19.07 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.126e-05/9.095, allocations: 11.94 kB / 3.047 GB, free: 19.06 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/9.095, allocations: 7.953 kB / 3.047 GB, free: 19.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.564e-05/9.095, allocations: 7.75 kB / 3.047 GB, free: 19.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001099/9.096, allocations: 94.66 kB / 3.047 GB, free: 18.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.729e-05/9.096, allocations: 4 kB / 3.047 GB, free: 18.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009225/9.097, allocations: 54.77 kB / 3.047 GB, free: 18.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.23e-05/9.097, allocations: 19.75 kB / 3.047 GB, free: 18.91 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.0001801/9.098, allocations: 124.7 kB / 3.048 GB, free: 18.78 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001954/9.1, allocations: 290.1 kB / 3.048 GB, free: 18.52 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/9.1, allocations: 35.58 kB / 3.048 GB, free: 18.48 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003587/9.103, allocations: 1.62 MB / 3.049 GB, free: 17.03 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.207e-05/9.103, allocations: 27.58 kB / 3.05 GB, free: 17.01 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/9.103, allocations: 0 / 3.05 GB, free: 17.01 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.852e-06/9.103, allocations: 0 / 3.05 GB, free: 17.01 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/9.105, allocations: 0.8156 MB / 3.05 GB, free: 16.28 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/9.105, allocations: 7.844 kB / 3.05 GB, free: 16.27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005395/9.105, allocations: 74.86 kB / 3.05 GB, free: 16.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-05/9.105, allocations: 4 kB / 3.05 GB, free: 16.21 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/9.105, allocations: 7.891 kB / 3.05 GB, free: 16.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.07e-06/9.105, allocations: 8 kB / 3.05 GB, free: 16.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/9.105, allocations: 0 / 3.05 GB, free: 16.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001535/9.107, allocations: 0.917 MB / 3.051 GB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000214/9.107, allocations: 210.3 kB / 3.052 GB, free: 15.13 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/9.107, allocations: 0 / 3.052 GB, free: 15.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004921/9.108, allocations: 35.41 kB / 3.052 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/9.108, allocations: 33.88 kB / 3.052 GB, free: 15.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.108e-05/9.108, allocations: 15.94 kB / 3.052 GB, free: 15.07 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003393/9.108, allocations: 257.4 kB / 3.052 GB, free: 14.84 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.21e-07/9.108, allocations: 0 / 3.052 GB, free: 14.84 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004728/9.113, allocations: 0.9778 MB / 3.053 GB, free: 13.88 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.124, allocations: 2.786 MB / 3.056 GB, free: 11.37 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001011/9.125, allocations: 459.7 kB / 3.056 GB, free: 10.95 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/9.125, allocations: 4.062 kB / 3.056 GB, free: 10.95 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005794/9.126, allocations: 419.2 kB / 3.056 GB, free: 10.56 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001701/9.128, allocations: 177.6 kB / 3.057 GB, free: 10.43 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.506/9.634, allocations: 54.77 MB / 3.11 GB, free: 71.88 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004673/9.634, allocations: 0.9587 MB / 3.111 GB, free: 71.18 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007225/9.635, allocations: 255.9 kB / 3.111 GB, free: 71.18 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003642/9.635, allocations: 234.7 kB / 3.111 GB, free: 71.17 MB / 442.7 MB Notification: Performance of SimCode: time 1.002e-06/9.635, allocations: 0 / 3.111 GB, free: 71.17 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1013/9.737, allocations: 34.75 MB / 3.145 GB, free: 69.32 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002244/9.737, allocations: 186.6 kB / 3.146 GB, free: 69.13 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.955/13.69, allocations: 3.281 kB / 3.146 GB, free: 69.13 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat