Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.409/2.409, allocations: 235 MB / 247.2 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.964e-05/3.97e-05, allocations: 4 kB / 305 MB, free: 5.066 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.444/0.444, allocations: 54.86 MB / 359.9 MB, free: 2.816 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.947/8.391, allocations: 2.588 GB / 2.939 GB, free: 106.7 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003125/8.391, allocations: 82.97 kB / 2.939 GB, free: 106.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.184/9.575, allocations: 215.4 MB / 3.149 GB, free: 80.71 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.465e-06/9.575, allocations: 3.844 kB / 3.149 GB, free: 80.71 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.515e-05/9.575, allocations: 13.59 kB / 3.149 GB, free: 80.71 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.005761/9.581, allocations: 1.167 MB / 3.151 GB, free: 80.13 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/9.581, allocations: 10.09 kB / 3.151 GB, free: 80.13 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001326/9.581, allocations: 66.98 kB / 3.151 GB, free: 80.09 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002563/9.584, allocations: 215.6 kB / 3.151 GB, free: 80.07 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00098/9.585, allocations: 394.8 kB / 3.151 GB, free: 79.86 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.045e-05/9.585, allocations: 30.3 kB / 3.151 GB, free: 79.85 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.899e-05/9.585, allocations: 29.5 kB / 3.151 GB, free: 79.85 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001948/9.587, allocations: 0.572 MB / 3.152 GB, free: 79.71 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/9.587, allocations: 4.844 kB / 3.152 GB, free: 79.71 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.333e-05/9.587, allocations: 17 kB / 3.152 GB, free: 79.71 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/9.587, allocations: 7.531 kB / 3.152 GB, free: 79.71 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001759/9.589, allocations: 496.3 kB / 3.152 GB, free: 79.71 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.004162/9.593, allocations: 2.531 MB / 3.155 GB, free: 77.84 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001857/9.595, allocations: 408.2 kB / 3.155 GB, free: 77.81 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003365/9.595, allocations: 127.7 kB / 3.155 GB, free: 77.8 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1802/9.775, allocations: 51.64 MB / 3.206 GB, free: 49.66 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.603e-05/9.776, allocations: 41.75 kB / 3.206 GB, free: 49.62 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 2.375e-06/9.776, allocations: 0 / 3.206 GB, free: 49.62 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.002744/9.778, allocations: 0.6129 MB / 3.206 GB, free: 49.56 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.413e-05/9.778, allocations: 114.5 kB / 3.207 GB, free: 49.43 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003675/9.779, allocations: 252.3 kB / 3.207 GB, free: 49.33 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.759e-05/9.779, allocations: 32.64 kB / 3.207 GB, free: 49.29 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/9.779, allocations: 211.4 kB / 3.207 GB, free: 49.17 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.799e-05/9.779, allocations: 85.09 kB / 3.207 GB, free: 49.12 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.565e-05/9.779, allocations: 10.97 kB / 3.207 GB, free: 49.12 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.716e-05/9.779, allocations: 338.6 kB / 3.207 GB, free: 48.81 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002322/9.78, allocations: 91.53 kB / 3.208 GB, free: 48.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003063/9.78, allocations: 216 kB / 3.208 GB, free: 48.66 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002821/9.78, allocations: 115.1 kB / 3.208 GB, free: 48.65 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.134e-06/9.78, allocations: 0 / 3.208 GB, free: 48.65 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008244/9.781, allocations: 347.2 kB / 3.208 GB, free: 48.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/9.781, allocations: 5.125 kB / 3.208 GB, free: 48.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/9.781, allocations: 10.69 kB / 3.208 GB, free: 48.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.796e-05/9.781, allocations: 3.969 kB / 3.208 GB, free: 48.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006637/9.782, allocations: 96.48 kB / 3.208 GB, free: 48.59 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.875e-05/9.782, allocations: 11.91 kB / 3.208 GB, free: 48.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005644/9.782, allocations: 68.97 kB / 3.208 GB, free: 48.58 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.504e-05/9.782, allocations: 14.94 kB / 3.208 GB, free: 48.58 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.0001324/9.783, allocations: 125.9 kB / 3.209 GB, free: 48.47 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.52e-05/9.783, allocations: 33.72 kB / 3.209 GB, free: 48.46 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002511/9.785, allocations: 1.84 MB / 3.21 GB, free: 48.24 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.042e-05/9.785, allocations: 32.47 kB / 3.21 GB, free: 48.24 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/9.785, allocations: 0 / 3.21 GB, free: 48.24 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/9.785, allocations: 0 / 3.21 GB, free: 48.24 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001348/9.787, allocations: 0.9813 MB / 3.211 GB, free: 47.99 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.862e-06/9.787, allocations: 0 / 3.211 GB, free: 47.99 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005784/9.787, allocations: 80.77 kB / 3.211 GB, free: 47.98 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.728e-06/9.787, allocations: 7.719 kB / 3.211 GB, free: 47.98 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.222e-05/9.787, allocations: 3.875 kB / 3.211 GB, free: 47.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/9.787, allocations: 3.875 kB / 3.211 GB, free: 47.98 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/9.787, allocations: 0 / 3.211 GB, free: 47.98 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001366/9.789, allocations: 0.986 MB / 3.212 GB, free: 47.76 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/9.789, allocations: 213.2 kB / 3.213 GB, free: 47.59 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.673e-05/9.789, allocations: 3.938 kB / 3.213 GB, free: 47.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005103/9.79, allocations: 45.89 kB / 3.213 GB, free: 47.59 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/9.79, allocations: 26.05 kB / 3.213 GB, free: 47.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.582e-05/9.79, allocations: 14.31 kB / 3.213 GB, free: 47.59 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003711/9.79, allocations: 259.4 kB / 3.213 GB, free: 47.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.61e-07/9.79, allocations: 0 / 3.213 GB, free: 47.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005035/9.795, allocations: 1.012 MB / 3.214 GB, free: 47.34 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.01128/9.807, allocations: 2.806 MB / 3.217 GB, free: 46.37 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001043/9.808, allocations: 0.4963 MB / 3.217 GB, free: 46.35 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/9.808, allocations: 0 / 3.217 GB, free: 46.35 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006199/9.808, allocations: 472 kB / 3.218 GB, free: 46.35 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001677/9.81, allocations: 174.7 kB / 3.218 GB, free: 46.34 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2482/10.06, allocations: 76.72 MB / 3.293 GB, free: 11.83 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004543/10.06, allocations: 0.9829 MB / 3.294 GB, free: 10.93 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0007355/10.06, allocations: 234.8 kB / 3.294 GB, free: 10.79 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003699/10.06, allocations: 250.2 kB / 3.294 GB, free: 10.57 MB / 490.7 MB Notification: Performance of SimCode: time 1.453e-06/10.06, allocations: 0 / 3.294 GB, free: 10.57 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4869/10.55, allocations: 40.28 MB / 3.333 GB, free: 66.6 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002693/10.55, allocations: 210.7 kB / 3.334 GB, free: 66.38 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.291/14.84, allocations: 0 / 3.334 GB, free: 66.38 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat