Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.433/2.433, allocations: 270 MB / 283.6 MB, free: 3.105 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.615e-05/3.643e-05, allocations: 3.234 kB / 348.5 MB, free: 10.7 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1346, allocations: 61.89 MB / 410.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.962/9.097, allocations: 2.759 GB / 3.16 GB, free: 90.48 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003117/9.097, allocations: 88.88 kB / 3.16 GB, free: 90.43 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.222/10.32, allocations: 218.8 MB / 3.374 GB, free: 82.87 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.545e-06/10.32, allocations: 3.625 kB / 3.374 GB, free: 82.87 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.41e-05/10.32, allocations: 7.656 kB / 3.374 GB, free: 82.87 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.005746/10.32, allocations: 1.171 MB / 3.375 GB, free: 82.12 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/10.33, allocations: 7.688 kB / 3.375 GB, free: 82.12 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001464/10.33, allocations: 69.7 kB / 3.375 GB, free: 82.06 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002629/10.33, allocations: 212.1 kB / 3.375 GB, free: 82.03 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009015/10.33, allocations: 375.3 kB / 3.376 GB, free: 81.74 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.129e-05/10.33, allocations: 26.03 kB / 3.376 GB, free: 81.73 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.524e-05/10.33, allocations: 29.56 kB / 3.376 GB, free: 81.72 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001972/10.33, allocations: 0.5866 MB / 3.376 GB, free: 81.44 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/10.33, allocations: 0 / 3.376 GB, free: 81.44 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.611e-05/10.33, allocations: 15.94 kB / 3.376 GB, free: 81.43 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/10.33, allocations: 6.812 kB / 3.376 GB, free: 81.43 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00185/10.33, allocations: 492.8 kB / 3.377 GB, free: 81.29 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.004383/10.34, allocations: 2.597 MB / 3.379 GB, free: 79.11 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00185/10.34, allocations: 426.1 kB / 3.38 GB, free: 78.87 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003431/10.34, allocations: 132 kB / 3.38 GB, free: 78.75 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07768/10.42, allocations: 24.15 MB / 3.404 GB, free: 52.06 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.444e-05/10.42, allocations: 42.5 kB / 3.404 GB, free: 52.01 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=25): time 5.03e-06/10.42, allocations: 0 / 3.404 GB, free: 52.01 MB / 0.5261 GB Notification: Performance of matching and sorting (n=25): time 0.004406/10.42, allocations: 0.6363 MB / 3.404 GB, free: 51.37 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.569e-05/10.42, allocations: 106.8 kB / 3.404 GB, free: 51.24 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006686/10.42, allocations: 266.8 kB / 3.405 GB, free: 50.97 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.984e-05/10.42, allocations: 29.7 kB / 3.405 GB, free: 50.94 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002196/10.42, allocations: 211.9 kB / 3.405 GB, free: 50.73 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/10.42, allocations: 82.2 kB / 3.405 GB, free: 50.65 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.544e-05/10.42, allocations: 8 kB / 3.405 GB, free: 50.64 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000137/10.42, allocations: 342.8 kB / 3.405 GB, free: 50.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004056/10.42, allocations: 91.84 kB / 3.405 GB, free: 50.21 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004929/10.42, allocations: 183.1 kB / 3.405 GB, free: 49.99 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004849/10.42, allocations: 99.94 kB / 3.406 GB, free: 49.89 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.755e-06/10.43, allocations: 0 / 3.406 GB, free: 49.89 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001598/10.43, allocations: 328.7 kB / 3.406 GB, free: 49.57 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.372e-05/10.43, allocations: 8.312 kB / 3.406 GB, free: 49.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/10.43, allocations: 4 kB / 3.406 GB, free: 49.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.5e-05/10.43, allocations: 4 kB / 3.406 GB, free: 49.55 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009958/10.43, allocations: 83.89 kB / 3.406 GB, free: 49.47 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.488e-05/10.43, allocations: 11.94 kB / 3.406 GB, free: 49.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001204/10.43, allocations: 67.66 kB / 3.406 GB, free: 49.39 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.539e-05/10.43, allocations: 19.94 kB / 3.406 GB, free: 49.37 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.0002368/10.43, allocations: 124.8 kB / 3.406 GB, free: 49.24 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002049/10.43, allocations: 35.62 kB / 3.406 GB, free: 49.21 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004178/10.43, allocations: 1.845 MB / 3.408 GB, free: 47.35 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.004e-05/10.43, allocations: 31.94 kB / 3.408 GB, free: 47.32 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/10.43, allocations: 0 / 3.408 GB, free: 47.32 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-05/10.43, allocations: 7.953 kB / 3.408 GB, free: 47.31 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001667/10.44, allocations: 0.9942 MB / 3.409 GB, free: 46.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.872e-06/10.44, allocations: 0 / 3.409 GB, free: 46.27 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006275/10.44, allocations: 83.88 kB / 3.409 GB, free: 46.19 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.036e-05/10.44, allocations: 4 kB / 3.409 GB, free: 46.19 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.127e-05/10.44, allocations: 4 kB / 3.409 GB, free: 46.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/10.44, allocations: 4 kB / 3.409 GB, free: 46.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/10.44, allocations: 3.984 kB / 3.409 GB, free: 46.18 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001457/10.44, allocations: 0.9868 MB / 3.41 GB, free: 45.17 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002675/10.44, allocations: 223.5 kB / 3.41 GB, free: 44.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/10.44, allocations: 4 kB / 3.41 GB, free: 44.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005958/10.44, allocations: 35.97 kB / 3.41 GB, free: 44.89 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/10.44, allocations: 39.94 kB / 3.41 GB, free: 44.86 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.778e-05/10.44, allocations: 12 kB / 3.41 GB, free: 44.84 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0004974/10.44, allocations: 317.2 kB / 3.411 GB, free: 44.53 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.91e-07/10.44, allocations: 0 / 3.411 GB, free: 44.53 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005122/10.44, allocations: 1.017 MB / 3.412 GB, free: 43.52 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.01112/10.46, allocations: 2.815 MB / 3.414 GB, free: 40.81 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001095/10.46, allocations: 0.4891 MB / 3.415 GB, free: 40.32 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.814e-06/10.46, allocations: 4.625 kB / 3.415 GB, free: 40.31 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0006273/10.46, allocations: 477.1 kB / 3.415 GB, free: 39.85 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001907/10.46, allocations: 195.7 kB / 3.416 GB, free: 39.66 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005879/10.47, allocations: 1.585 MB / 3.417 GB, free: 38.04 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004316/10.47, allocations: 0.9758 MB / 3.418 GB, free: 37.04 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0007104/10.47, allocations: 246.9 kB / 3.418 GB, free: 36.79 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003994/10.47, allocations: 251.4 kB / 3.419 GB, free: 36.55 MB / 0.5261 GB Notification: Performance of SimCode: time 1.963e-06/10.47, allocations: 0 / 3.419 GB, free: 36.55 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4928/10.96, allocations: 41.01 MB / 3.459 GB, free: 93.98 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002434/10.96, allocations: 214 kB / 3.459 GB, free: 93.75 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.674/15.63, allocations: 0 / 3.459 GB, free: 93.75 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat