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.405/2.405, allocations: 235 MB / 247.2 MB, free: 14.56 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.961e-05/3.977e-05, allocations: 4 kB / 305 MB, free: 5.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4279/0.428, allocations: 54.84 MB / 359.9 MB, free: 3.078 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.826/8.254, allocations: 2.588 GB / 2.939 GB, free: 105.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002679/8.255, allocations: 79.84 kB / 2.939 GB, free: 105.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.135/9.389, allocations: 215.4 MB / 3.149 GB, free: 80.92 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.204e-06/9.389, allocations: 0 / 3.149 GB, free: 80.92 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.322e-05/9.39, allocations: 12.53 kB / 3.149 GB, free: 80.92 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.006718/9.396, allocations: 1.164 MB / 3.151 GB, free: 80.36 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.248e-05/9.396, allocations: 14.53 kB / 3.151 GB, free: 80.36 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001862/9.397, allocations: 65.69 kB / 3.151 GB, free: 80.32 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007995/9.405, allocations: 227.5 kB / 3.151 GB, free: 80.29 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001404/9.406, allocations: 384.3 kB / 3.151 GB, free: 80.08 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.405e-05/9.406, allocations: 28.56 kB / 3.151 GB, free: 80.08 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.748e-05/9.406, allocations: 25.94 kB / 3.151 GB, free: 80.08 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00276/9.409, allocations: 0.5862 MB / 3.152 GB, free: 79.94 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.58e-05/9.409, allocations: 0 / 3.152 GB, free: 79.94 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.064e-05/9.409, allocations: 14.22 kB / 3.152 GB, free: 79.94 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/9.409, allocations: 7.406 kB / 3.152 GB, free: 79.94 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002641/9.412, allocations: 496.4 kB / 3.152 GB, free: 79.94 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.01687/9.429, allocations: 2.541 MB / 3.155 GB, free: 78.06 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002547/9.431, allocations: 410.3 kB / 3.155 GB, free: 78.04 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004228/9.432, allocations: 134.7 kB / 3.155 GB, free: 78.02 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1991/9.631, allocations: 51.64 MB / 3.206 GB, free: 49.86 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/9.631, allocations: 36.62 kB / 3.206 GB, free: 49.82 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 2.315e-06/9.631, allocations: 0 / 3.206 GB, free: 49.82 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.002648/9.634, allocations: 0.6111 MB / 3.206 GB, free: 49.77 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.841e-05/9.634, allocations: 112.7 kB / 3.207 GB, free: 49.64 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003508/9.634, allocations: 251.7 kB / 3.207 GB, free: 49.53 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.687e-05/9.634, allocations: 37.39 kB / 3.207 GB, free: 49.5 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/9.634, allocations: 211 kB / 3.207 GB, free: 49.38 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.122e-05/9.634, allocations: 88.02 kB / 3.207 GB, free: 49.33 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.729e-05/9.635, allocations: 6.969 kB / 3.207 GB, free: 49.33 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.342e-05/9.635, allocations: 346.7 kB / 3.207 GB, free: 49.02 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/9.635, allocations: 89.75 kB / 3.208 GB, free: 49.01 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002936/9.635, allocations: 207.8 kB / 3.208 GB, free: 48.87 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002735/9.635, allocations: 121.9 kB / 3.208 GB, free: 48.86 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/9.635, allocations: 2.516 kB / 3.208 GB, free: 48.86 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000793/9.636, allocations: 357.4 kB / 3.208 GB, free: 48.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/9.636, allocations: 5.594 kB / 3.208 GB, free: 48.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/9.636, allocations: 7.219 kB / 3.208 GB, free: 48.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.378e-05/9.636, allocations: 7.656 kB / 3.208 GB, free: 48.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006418/9.637, allocations: 100.3 kB / 3.208 GB, free: 48.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.292e-05/9.637, allocations: 5.156 kB / 3.208 GB, free: 48.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005536/9.638, allocations: 67 kB / 3.208 GB, free: 48.79 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.554e-05/9.638, allocations: 15.28 kB / 3.208 GB, free: 48.79 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.0001256/9.638, allocations: 134.8 kB / 3.209 GB, free: 48.68 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.131e-05/9.638, allocations: 30.91 kB / 3.209 GB, free: 48.66 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002455/9.64, allocations: 1.843 MB / 3.21 GB, free: 48.45 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-05/9.64, allocations: 25.12 kB / 3.21 GB, free: 48.45 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/9.64, allocations: 0 / 3.21 GB, free: 48.45 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.537e-06/9.641, allocations: 3.422 kB / 3.21 GB, free: 48.45 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001307/9.642, allocations: 0.9861 MB / 3.211 GB, free: 48.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/9.642, allocations: 3.75 kB / 3.211 GB, free: 48.21 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005675/9.642, allocations: 80.36 kB / 3.211 GB, free: 48.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.031e-05/9.642, allocations: 3.688 kB / 3.211 GB, free: 48.2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.9e-05/9.643, allocations: 7.312 kB / 3.211 GB, free: 48.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/9.643, allocations: 0 / 3.211 GB, free: 48.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/9.643, allocations: 0 / 3.211 GB, free: 48.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00135/9.644, allocations: 0.9808 MB / 3.212 GB, free: 47.98 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00024/9.644, allocations: 216.6 kB / 3.213 GB, free: 47.81 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.764e-05/9.644, allocations: 7.75 kB / 3.213 GB, free: 47.81 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005259/9.645, allocations: 42.75 kB / 3.213 GB, free: 47.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/9.645, allocations: 30.31 kB / 3.213 GB, free: 47.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.448e-05/9.645, allocations: 7.875 kB / 3.213 GB, free: 47.8 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004013/9.645, allocations: 257.6 kB / 3.213 GB, free: 47.71 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.412e-06/9.645, allocations: 0 / 3.213 GB, free: 47.71 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005092/9.65, allocations: 1.008 MB / 3.214 GB, free: 47.57 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.01127/9.662, allocations: 2.791 MB / 3.217 GB, free: 46.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001046/9.663, allocations: 0.5079 MB / 3.217 GB, free: 46.58 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/9.663, allocations: 0 / 3.217 GB, free: 46.58 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006053/9.664, allocations: 476.6 kB / 3.218 GB, free: 46.58 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00169/9.665, allocations: 183 kB / 3.218 GB, free: 46.56 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2569/9.922, allocations: 76.72 MB / 3.293 GB, free: 12.85 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004197/9.923, allocations: 0.9815 MB / 3.294 GB, free: 11.95 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0006819/9.923, allocations: 239.8 kB / 3.294 GB, free: 11.82 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003685/9.924, allocations: 249.9 kB / 3.294 GB, free: 11.6 MB / 490.7 MB Notification: Performance of SimCode: time 1.493e-06/9.924, allocations: 0 / 3.294 GB, free: 11.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5166/10.44, allocations: 40.22 MB / 3.333 GB, free: 65.31 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001622/10.44, allocations: 211.7 kB / 3.334 GB, free: 65.08 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.616/15.06, allocations: 0 / 3.334 GB, free: 65.08 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