Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.121/2.121, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.177e-05/4.192e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1171, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.869/7.986, allocations: 2.477 GB / 2.791 GB, free: 91.62 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000324/7.987, allocations: 84.77 kB / 2.791 GB, free: 91.57 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.084/9.071, allocations: 211.5 MB / 2.998 GB, free: 45.43 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.916e-06/9.071, allocations: 4 kB / 2.998 GB, free: 45.42 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.026e-05/9.071, allocations: 4 kB / 2.998 GB, free: 45.42 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.005519/9.076, allocations: 1.151 MB / 2.999 GB, free: 44.32 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/9.077, allocations: 8.031 kB / 2.999 GB, free: 44.31 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001055/9.077, allocations: 62.45 kB / 2.999 GB, free: 44.24 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00236/9.079, allocations: 213.2 kB / 2.999 GB, free: 44.08 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008398/9.08, allocations: 390.5 kB / 3 GB, free: 43.67 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.437e-05/9.08, allocations: 28.78 kB / 3 GB, free: 43.64 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.159e-05/9.08, allocations: 31.66 kB / 3 GB, free: 43.61 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001782/9.082, allocations: 0.5769 MB / 3 GB, free: 43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/9.082, allocations: 0 / 3 GB, free: 43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.182e-05/9.082, allocations: 19.98 kB / 3 GB, free: 42.98 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.089e-05/9.082, allocations: 8 kB / 3 GB, free: 42.97 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00163/9.084, allocations: 0.4936 MB / 3.001 GB, free: 42.48 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.003411/9.087, allocations: 2.521 MB / 3.003 GB, free: 39.75 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/9.089, allocations: 422.2 kB / 3.004 GB, free: 39.33 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002846/9.089, allocations: 124.8 kB / 3.004 GB, free: 39.2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4951/9.584, allocations: 51.58 MB / 3.054 GB, free: 76.67 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.011e-05/9.584, allocations: 37.72 kB / 3.054 GB, free: 76.63 MB / 442.7 MB Notification: Performance of pre-optimization done (n=25): time 2.766e-06/9.584, allocations: 0 / 3.054 GB, free: 76.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=25): time 0.00307/9.587, allocations: 0.6103 MB / 3.055 GB, free: 76.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/9.587, allocations: 106.5 kB / 3.055 GB, free: 76.48 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000443/9.588, allocations: 252.9 kB / 3.055 GB, free: 76.38 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.474e-05/9.588, allocations: 30.08 kB / 3.055 GB, free: 76.35 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001864/9.588, allocations: 271.8 kB / 3.055 GB, free: 76.17 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/9.588, allocations: 85.97 kB / 3.055 GB, free: 76.13 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.939e-05/9.588, allocations: 6.875 kB / 3.055 GB, free: 76.13 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.128e-05/9.588, allocations: 323.9 kB / 3.056 GB, free: 75.82 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002957/9.589, allocations: 95.08 kB / 3.056 GB, free: 75.81 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003671/9.589, allocations: 217.4 kB / 3.056 GB, free: 75.67 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003107/9.589, allocations: 116.2 kB / 3.056 GB, free: 75.67 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/9.589, allocations: 3.594 kB / 3.056 GB, free: 75.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009457/9.59, allocations: 343.8 kB / 3.056 GB, free: 75.62 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/9.59, allocations: 7.312 kB / 3.056 GB, free: 75.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/9.59, allocations: 3.5 kB / 3.056 GB, free: 75.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.487e-05/9.591, allocations: 13.86 kB / 3.056 GB, free: 75.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007039/9.591, allocations: 97.75 kB / 3.057 GB, free: 75.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.717e-05/9.591, allocations: 5.625 kB / 3.057 GB, free: 75.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000607/9.592, allocations: 60.19 kB / 3.057 GB, free: 75.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.372e-05/9.592, allocations: 20.09 kB / 3.057 GB, free: 75.62 MB / 442.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.0001405/9.592, allocations: 127.7 kB / 3.057 GB, free: 75.51 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.964e-05/9.592, allocations: 30.91 kB / 3.057 GB, free: 75.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003095/9.595, allocations: 1.841 MB / 3.059 GB, free: 75.31 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-05/9.595, allocations: 37.8 kB / 3.059 GB, free: 75.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/9.595, allocations: 1.312 kB / 3.059 GB, free: 75.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.717e-06/9.595, allocations: 0 / 3.059 GB, free: 75.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001582/9.597, allocations: 0.9742 MB / 3.06 GB, free: 75.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/9.597, allocations: 3.812 kB / 3.06 GB, free: 75.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006072/9.598, allocations: 80.09 kB / 3.06 GB, free: 75.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.089e-05/9.598, allocations: 1.625 kB / 3.06 GB, free: 75.07 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.088e-05/9.598, allocations: 7.094 kB / 3.06 GB, free: 75.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.292e-06/9.598, allocations: 2.406 kB / 3.06 GB, free: 75.07 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.68e-06/9.598, allocations: 3.953 kB / 3.06 GB, free: 75.07 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001679/9.6, allocations: 0.9793 MB / 3.061 GB, free: 74.84 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002777/9.6, allocations: 208.5 kB / 3.061 GB, free: 74.71 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.015e-05/9.6, allocations: 11.8 kB / 3.061 GB, free: 74.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005463/9.6, allocations: 40.28 kB / 3.061 GB, free: 74.71 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/9.601, allocations: 36.73 kB / 3.061 GB, free: 74.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-05/9.601, allocations: 8.719 kB / 3.061 GB, free: 74.7 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004565/9.601, allocations: 255.2 kB / 3.061 GB, free: 74.62 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.2e-07/9.601, allocations: 1.781 kB / 3.061 GB, free: 74.62 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005924/9.607, allocations: 1.007 MB / 3.062 GB, free: 74.62 MB / 442.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.01208/9.619, allocations: 2.793 MB / 3.065 GB, free: 73.82 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001263/9.621, allocations: 0.5007 MB / 3.065 GB, free: 73.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/9.621, allocations: 8.594 kB / 3.065 GB, free: 73.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007454/9.621, allocations: 471.2 kB / 3.066 GB, free: 73.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001777/9.623, allocations: 184.6 kB / 3.066 GB, free: 73.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2482/9.871, allocations: 75.47 MB / 3.14 GB, free: 70.75 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004586/9.872, allocations: 0.9836 MB / 3.141 GB, free: 69.85 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000426/9.872, allocations: 244.8 kB / 3.141 GB, free: 69.81 MB / 442.7 MB Notification: Performance of SimCode: time 1.853e-06/9.872, allocations: 0 / 3.141 GB, free: 69.81 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.57/13.44, allocations: 28.88 MB / 3.169 GB, free: 53.06 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat