Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.564/2.564, allocations: 235 MB / 247.6 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.779e-05/4.799e-05, allocations: 4 kB / 305 MB, free: 5.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4545/0.4546, allocations: 54.85 MB / 359.9 MB, free: 2.316 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8681/1.323, allocations: 346.2 MB / 0.6895 GB, free: 3.262 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/1.323, allocations: 78.64 kB / 0.6896 GB, free: 3.223 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.772/3.095, allocations: 302.6 MB / 0.9851 GB, free: 80.71 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.863e-06/3.095, allocations: 0 / 0.9851 GB, free: 80.71 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001955/3.095, allocations: 48.41 kB / 0.9851 GB, free: 80.7 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: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.008813/3.104, allocations: 2.059 MB / 0.9872 GB, free: 79.63 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/3.104, allocations: 11.41 kB / 0.9872 GB, free: 79.63 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006279/3.105, allocations: 180.9 kB / 0.9873 GB, free: 79.59 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001037/3.106, allocations: 201.2 kB / 0.9875 GB, free: 79.5 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004467/3.11, allocations: 1.259 MB / 0.9888 GB, free: 79.12 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002077/3.111, allocations: 191.1 kB / 0.9889 GB, free: 79.03 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000403/3.111, allocations: 117.2 kB / 0.9891 GB, free: 79.03 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004646/3.116, allocations: 1.913 MB / 0.9909 GB, free: 78.8 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.799e-05/3.116, allocations: 2.938 kB / 0.9909 GB, free: 78.8 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002593/3.116, allocations: 51.56 kB / 0.991 GB, free: 78.8 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002499/3.116, allocations: 118.4 kB / 0.9911 GB, free: 78.79 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004937/3.121, allocations: 1.877 MB / 0.9929 GB, free: 78.78 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.02004/3.141, allocations: 7.024 MB / 0.9998 GB, free: 76.49 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003112/3.145, allocations: 1.299 MB / 1.001 GB, free: 76.46 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001822/3.146, allocations: 0.7797 MB / 1.002 GB, free: 76.45 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009682/3.156, allocations: 4.509 MB / 1.006 GB, free: 73.47 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.81e-05/3.156, allocations: 56.19 kB / 1.006 GB, free: 73.42 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001671/3.158, allocations: 223.5 kB / 1.006 GB, free: 73.33 MB / 490.7 MB Notification: Performance of pre-optimization done (n=117): time 5.45e-06/3.158, allocations: 0 / 1.006 GB, free: 73.33 MB / 490.7 MB Notification: Performance of matching and sorting (n=132): time 0.01512/3.173, allocations: 4.369 MB / 1.011 GB, free: 71.61 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.73e-05/3.173, allocations: 230 kB / 1.011 GB, free: 71.36 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002453/3.176, allocations: 1.182 MB / 1.012 GB, free: 70.88 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004633/3.176, allocations: 53.27 kB / 1.012 GB, free: 70.83 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004971/3.177, allocations: 0.6161 MB / 1.013 GB, free: 70.29 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006477/3.177, allocations: 463.2 kB / 1.013 GB, free: 69.94 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001811/3.178, allocations: 30.53 kB / 1.013 GB, free: 69.91 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001317/3.178, allocations: 376.8 kB / 1.014 GB, free: 69.57 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001989/3.18, allocations: 0.7307 MB / 1.014 GB, free: 69.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002221/3.182, allocations: 1.053 MB / 1.015 GB, free: 68.67 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002263/3.184, allocations: 0.8578 MB / 1.016 GB, free: 68.36 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/3.184, allocations: 3.812 kB / 1.016 GB, free: 68.36 MB / 490.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.006492/3.191, allocations: 2.268 MB / 1.018 GB, free: 67.57 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007587/3.192, allocations: 2.973 MB / 1.021 GB, free: 64.41 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.595e-05/3.192, allocations: 11.44 kB / 1.021 GB, free: 64.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01403/3.206, allocations: 1.469 MB / 1.023 GB, free: 64.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002816/3.209, allocations: 334 kB / 1.023 GB, free: 64.21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004267/3.213, allocations: 1.688 MB / 1.025 GB, free: 63.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00296/3.216, allocations: 107.9 kB / 1.025 GB, free: 63.23 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003447/3.216, allocations: 80.22 kB / 1.025 GB, free: 63.22 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/3.216, allocations: 3.219 kB / 1.025 GB, free: 63.22 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005435/3.222, allocations: 1.967 MB / 1.027 GB, free: 62.51 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.803e-05/3.222, allocations: 11.16 kB / 1.027 GB, free: 62.51 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009534/3.231, allocations: 0.917 MB / 1.028 GB, free: 62.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002912/3.234, allocations: 346.8 kB / 1.028 GB, free: 62.37 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002566/3.237, allocations: 1.244 MB / 1.029 GB, free: 61.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002151/3.239, allocations: 99 kB / 1.029 GB, free: 61.57 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002412/3.239, allocations: 72.42 kB / 1.029 GB, free: 61.55 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 162 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 23} Notification: Performance of prepare postOptimizeDAE: time 0.0006625/3.24, allocations: 200.9 kB / 1.03 GB, free: 61.38 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005697/3.241, allocations: 163.8 kB / 1.03 GB, free: 61.29 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007468/3.248, allocations: 2.467 MB / 1.032 GB, free: 60.39 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.791e-05/3.248, allocations: 14.44 kB / 1.032 GB, free: 60.39 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/3.248, allocations: 7.672 kB / 1.032 GB, free: 60.39 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.071e-05/3.248, allocations: 11.34 kB / 1.032 GB, free: 60.39 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01012/3.258, allocations: 4.02 MB / 1.036 GB, free: 57.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-05/3.259, allocations: 0 / 1.036 GB, free: 57.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002071/3.261, allocations: 229.3 kB / 1.036 GB, free: 57.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007883/3.269, allocations: 1.213 MB / 1.038 GB, free: 56.36 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003931/3.269, allocations: 38.7 kB / 1.038 GB, free: 56.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003644/3.273, allocations: 1.753 MB / 1.039 GB, free: 54.73 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/3.273, allocations: 0 / 1.039 GB, free: 54.73 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007946/3.281, allocations: 3.272 MB / 1.042 GB, free: 51.78 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001583/3.282, allocations: 466.1 kB / 1.043 GB, free: 51.38 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004603/3.283, allocations: 35.22 kB / 1.043 GB, free: 51.35 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002211/3.285, allocations: 104.2 kB / 1.043 GB, free: 51.27 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003426/3.285, allocations: 112 kB / 1.043 GB, free: 51.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002085/3.286, allocations: 65.59 kB / 1.043 GB, free: 51.15 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001807/3.287, allocations: 0.8962 MB / 1.044 GB, free: 50.33 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.81e-07/3.287, allocations: 0 / 1.044 GB, free: 50.33 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006005/3.293, allocations: 1.423 MB / 1.046 GB, free: 48.94 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level,valveDelayed.filter.x[1],valveDelayed.filter.x[2]) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.0118/3.305, allocations: 4.976 MB / 1.05 GB, free: 44.54 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009573/3.315, allocations: 2.945 MB / 1.053 GB, free: 41.87 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.808e-06/3.315, allocations: 3.859 kB / 1.053 GB, free: 41.87 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003238/3.318, allocations: 0.987 MB / 1.054 GB, free: 40.98 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006043/3.324, allocations: 0.6933 MB / 1.055 GB, free: 40.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01248/3.337, allocations: 3.631 MB / 1.058 GB, free: 37.42 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001081/3.338, allocations: 1.401 MB / 1.06 GB, free: 36.25 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001672/3.34, allocations: 0.6531 MB / 1.06 GB, free: 35.66 MB / 490.7 MB Notification: Performance of SimCode: time 1.493e-06/3.34, allocations: 0 / 1.06 GB, free: 35.66 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.214/7.554, allocations: 48.49 MB / 1.108 GB, free: 73.82 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve_res.mat does not exist to compare? outputFormat=mat