Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.419/2.419, allocations: 270 MB / 283.6 MB, free: 3.113 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.565e-05/4.583e-05, allocations: 0 / 348.5 MB, free: 10.72 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2044/0.2045, allocations: 61.88 MB / 410.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.92/9.125, allocations: 2.759 GB / 3.16 GB, free: 90.54 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002716/9.125, allocations: 84.95 kB / 3.16 GB, free: 90.49 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.278/10.4, allocations: 218.8 MB / 3.374 GB, free: 82.82 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.573e-06/10.4, allocations: 0 / 3.374 GB, free: 82.82 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.079e-05/10.4, allocations: 7.312 kB / 3.374 GB, free: 82.82 MB / 0.5261 GB 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.005523/10.41, allocations: 1.17 MB / 3.375 GB, free: 82.07 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5e-05/10.41, allocations: 7.906 kB / 3.375 GB, free: 82.07 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001168/10.41, allocations: 69.73 kB / 3.375 GB, free: 82.01 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002546/10.41, allocations: 223.2 kB / 3.375 GB, free: 81.98 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008171/10.41, allocations: 365.8 kB / 3.376 GB, free: 81.7 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.795e-05/10.41, allocations: 26.44 kB / 3.376 GB, free: 81.68 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.067e-05/10.41, allocations: 30.44 kB / 3.376 GB, free: 81.67 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002472/10.41, allocations: 0.5691 MB / 3.376 GB, free: 81.4 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/10.41, allocations: 7.688 kB / 3.376 GB, free: 81.4 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.261e-05/10.42, allocations: 15.81 kB / 3.376 GB, free: 81.39 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/10.42, allocations: 7.594 kB / 3.376 GB, free: 81.39 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001805/10.42, allocations: 490.7 kB / 3.377 GB, free: 81.25 MB / 0.5261 GB 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.004305/10.42, allocations: 2.604 MB / 3.379 GB, free: 79.06 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001767/10.42, allocations: 416.4 kB / 3.38 GB, free: 78.84 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003167/10.42, allocations: 132.6 kB / 3.38 GB, free: 78.72 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07335/10.5, allocations: 24.16 MB / 3.404 GB, free: 52.12 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.975e-05/10.5, allocations: 38.56 kB / 3.404 GB, free: 52.07 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=25): time 3.596e-06/10.5, allocations: 3.938 kB / 3.404 GB, free: 52.07 MB / 0.5261 GB Notification: Performance of matching and sorting (n=25): time 0.002781/10.5, allocations: 0.6324 MB / 3.404 GB, free: 51.43 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.518e-05/10.5, allocations: 110.8 kB / 3.404 GB, free: 51.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003881/10.5, allocations: 262.7 kB / 3.405 GB, free: 51.04 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.909e-05/10.5, allocations: 37.64 kB / 3.405 GB, free: 51 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/10.5, allocations: 203.9 kB / 3.405 GB, free: 50.79 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 7.659e-05/10.5, allocations: 81.19 kB / 3.405 GB, free: 50.71 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.536e-05/10.5, allocations: 8 kB / 3.405 GB, free: 50.71 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.187e-05/10.5, allocations: 346.8 kB / 3.405 GB, free: 50.36 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002335/10.5, allocations: 91.84 kB / 3.405 GB, free: 50.27 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003152/10.5, allocations: 179.1 kB / 3.405 GB, free: 50.05 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002576/10.5, allocations: 104 kB / 3.406 GB, free: 49.95 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.117e-06/10.5, allocations: 7.938 kB / 3.406 GB, free: 49.95 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007252/10.5, allocations: 316.8 kB / 3.406 GB, free: 49.63 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/10.5, allocations: 8 kB / 3.406 GB, free: 49.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/10.5, allocations: 0 / 3.406 GB, free: 49.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/10.5, allocations: 4 kB / 3.406 GB, free: 49.62 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000605/10.5, allocations: 96.12 kB / 3.406 GB, free: 49.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.437e-05/10.5, allocations: 7.953 kB / 3.406 GB, free: 49.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000569/10.5, allocations: 67.64 kB / 3.406 GB, free: 49.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.224e-05/10.5, allocations: 16 kB / 3.406 GB, free: 49.44 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (35): * Single equations (assignments): 35 * 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.0001142/10.5, allocations: 124.9 kB / 3.406 GB, free: 49.31 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.103e-05/10.5, allocations: 31.62 kB / 3.406 GB, free: 49.28 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002376/10.51, allocations: 1.849 MB / 3.408 GB, free: 47.41 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.492e-05/10.51, allocations: 27.95 kB / 3.408 GB, free: 47.39 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/10.51, allocations: 4 kB / 3.408 GB, free: 47.38 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/10.51, allocations: 7.938 kB / 3.408 GB, free: 47.38 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001182/10.51, allocations: 1.005 MB / 3.409 GB, free: 46.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/10.51, allocations: 0 / 3.409 GB, free: 46.33 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005689/10.51, allocations: 71.94 kB / 3.409 GB, free: 46.26 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/10.51, allocations: 7.938 kB / 3.409 GB, free: 46.25 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.859e-05/10.51, allocations: 12 kB / 3.409 GB, free: 46.24 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/10.51, allocations: 7.938 kB / 3.409 GB, free: 46.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/10.51, allocations: 0 / 3.409 GB, free: 46.23 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/10.51, allocations: 0.983 MB / 3.41 GB, free: 45.23 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/10.51, allocations: 211.6 kB / 3.41 GB, free: 45.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.239e-05/10.51, allocations: 12 kB / 3.41 GB, free: 45 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005489/10.51, allocations: 39.97 kB / 3.41 GB, free: 44.96 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/10.51, allocations: 31.95 kB / 3.41 GB, free: 44.93 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.607e-05/10.51, allocations: 11.98 kB / 3.41 GB, free: 44.91 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0004545/10.51, allocations: 321.2 kB / 3.411 GB, free: 44.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.1e-07/10.51, allocations: 0 / 3.411 GB, free: 44.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005298/10.52, allocations: 1.013 MB / 3.412 GB, free: 43.59 MB / 0.5261 GB 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.009238/10.53, allocations: 2.82 MB / 3.414 GB, free: 40.87 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00103/10.53, allocations: 0.493 MB / 3.415 GB, free: 40.38 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/10.53, allocations: 0 / 3.415 GB, free: 40.38 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0005995/10.53, allocations: 469.2 kB / 3.415 GB, free: 39.92 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001763/10.53, allocations: 197.7 kB / 3.416 GB, free: 39.73 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005453/10.53, allocations: 1.584 MB / 3.417 GB, free: 38.11 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004311/10.53, allocations: 0.9797 MB / 3.418 GB, free: 37.1 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0006832/10.54, allocations: 246.8 kB / 3.418 GB, free: 36.86 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003892/10.54, allocations: 259.3 kB / 3.419 GB, free: 36.61 MB / 0.5261 GB Notification: Performance of SimCode: time 1.062e-06/10.54, allocations: 0 / 3.419 GB, free: 36.61 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4806/11.02, allocations: 41.01 MB / 3.459 GB, free: 93.67 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002741/11.02, allocations: 213.3 kB / 3.459 GB, free: 93.45 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.413/15.43, allocations: 0 / 3.459 GB, free: 93.45 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat