Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.168/2.168, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.787e-05/3.798e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1155, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.084/1.2, allocations: 339.9 MB / 0.6463 GB, free: 8.711 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002819/1.2, allocations: 83.95 kB / 0.6463 GB, free: 8.629 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.656/2.856, allocations: 302.6 MB / 0.9419 GB, free: 37.73 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.655e-06/2.857, allocations: 0 / 0.9419 GB, free: 37.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001956/2.857, allocations: 43.98 kB / 0.9419 GB, free: 37.69 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: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.009254/2.866, allocations: 2.069 MB / 0.9439 GB, free: 35.57 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.596e-05/2.866, allocations: 12.03 kB / 0.9439 GB, free: 35.56 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008063/2.867, allocations: 181.2 kB / 0.9441 GB, free: 35.37 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001169/2.868, allocations: 195.2 kB / 0.9443 GB, free: 35.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004937/2.873, allocations: 1.267 MB / 0.9455 GB, free: 33.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002461/2.873, allocations: 183.2 kB / 0.9457 GB, free: 33.66 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006256/2.874, allocations: 124 kB / 0.9458 GB, free: 33.54 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005735/2.88, allocations: 1.915 MB / 0.9477 GB, free: 31.53 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.845e-05/2.88, allocations: 3.906 kB / 0.9477 GB, free: 31.53 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003321/2.88, allocations: 47.97 kB / 0.9477 GB, free: 31.48 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000258/2.881, allocations: 118.2 kB / 0.9479 GB, free: 31.36 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005837/2.886, allocations: 1.891 MB / 0.9497 GB, free: 29.46 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.02267/2.909, allocations: 7.024 MB / 0.9566 GB, free: 22.13 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003427/2.913, allocations: 1.327 MB / 0.9579 GB, free: 20.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002255/2.915, allocations: 0.78 MB / 0.9586 GB, free: 20.02 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01174/2.927, allocations: 4.517 MB / 0.963 GB, free: 15.09 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.132e-05/2.927, allocations: 47.56 kB / 0.9631 GB, free: 15.04 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00176/2.929, allocations: 234.4 kB / 0.9633 GB, free: 14.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 6.012e-06/2.929, allocations: 0 / 0.9633 GB, free: 14.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=132): time 0.0162/2.945, allocations: 4.369 MB / 0.9676 GB, free: 10.39 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.757e-05/2.945, allocations: 222.9 kB / 0.9678 GB, free: 10.12 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002492/2.947, allocations: 1.191 MB / 0.9689 GB, free: 8.922 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000535/2.948, allocations: 53.7 kB / 0.969 GB, free: 8.863 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005714/2.949, allocations: 0.6116 MB / 0.9696 GB, free: 8.246 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007897/2.949, allocations: 457.4 kB / 0.97 GB, free: 7.793 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002106/2.95, allocations: 36 kB / 0.9701 GB, free: 7.758 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/2.95, allocations: 374.9 kB / 0.9704 GB, free: 7.383 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00203/2.952, allocations: 0.7302 MB / 0.9711 GB, free: 6.652 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002457/2.954, allocations: 1.067 MB / 0.9722 GB, free: 5.461 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002497/2.957, allocations: 0.8559 MB / 0.973 GB, free: 4.605 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.186e-05/2.957, allocations: 4 kB / 0.973 GB, free: 4.602 MB / 426.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.007031/2.964, allocations: 2.294 MB / 0.9753 GB, free: 2.297 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009228/2.965, allocations: 2.958 MB / 0.9781 GB, free: 15.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.246e-05/2.965, allocations: 11.98 kB / 0.9782 GB, free: 15.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01454/2.98, allocations: 1.478 MB / 0.9796 GB, free: 13.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002964/2.983, allocations: 331.5 kB / 0.9799 GB, free: 13.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004862/2.988, allocations: 1.696 MB / 0.9816 GB, free: 11.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00311/2.991, allocations: 103.8 kB / 0.9817 GB, free: 11.47 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005413/2.991, allocations: 75.95 kB / 0.9817 GB, free: 11.39 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/2.991, allocations: 4 kB / 0.9817 GB, free: 11.39 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006335/2.998, allocations: 1.98 MB / 0.9837 GB, free: 9.406 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.104e-05/2.998, allocations: 8 kB / 0.9837 GB, free: 9.398 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01004/3.008, allocations: 0.9101 MB / 0.9846 GB, free: 8.484 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003079/3.011, allocations: 335.5 kB / 0.9849 GB, free: 8.156 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003012/3.014, allocations: 1.262 MB / 0.9861 GB, free: 6.867 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002205/3.016, allocations: 99.78 kB / 0.9862 GB, free: 6.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002816/3.017, allocations: 79.95 kB / 0.9863 GB, free: 6.691 MB / 442.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.0006527/3.017, allocations: 184.7 kB / 0.9865 GB, free: 6.504 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006151/3.018, allocations: 173.8 kB / 0.9866 GB, free: 6.332 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008594/3.026, allocations: 2.465 MB / 0.989 GB, free: 3.855 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.649e-05/3.027, allocations: 23.98 kB / 0.9891 GB, free: 3.832 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/3.027, allocations: 7.922 kB / 0.9891 GB, free: 3.824 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-05/3.027, allocations: 3.984 kB / 0.9891 GB, free: 3.82 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3486/3.375, allocations: 4.018 MB / 0.993 GB, free: 63.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-05/3.375, allocations: 0 / 0.993 GB, free: 63.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002409/3.378, allocations: 231.1 kB / 0.9932 GB, free: 63.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008912/3.387, allocations: 1.208 MB / 0.9944 GB, free: 63.53 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004861/3.387, allocations: 47.78 kB / 0.9945 GB, free: 63.53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004429/3.392, allocations: 1.745 MB / 0.9962 GB, free: 63 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/3.392, allocations: 0.9375 kB / 0.9962 GB, free: 63 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009615/3.401, allocations: 3.273 MB / 0.9994 GB, free: 62.86 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001827/3.403, allocations: 464.2 kB / 0.9998 GB, free: 62.76 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007379/3.404, allocations: 33.28 kB / 0.9998 GB, free: 62.76 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00291/3.407, allocations: 101.7 kB / 0.9999 GB, free: 62.76 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005921/3.408, allocations: 123.1 kB / 1 GB, free: 62.76 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002804/3.408, allocations: 60.03 kB / 1 GB, free: 62.76 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002296/3.41, allocations: 0.8944 MB / 1.001 GB, free: 62.64 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.81e-07/3.41, allocations: 1.094 kB / 1.001 GB, free: 62.64 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007292/3.418, allocations: 1.426 MB / 1.002 GB, free: 62.64 MB / 442.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.01534/3.433, allocations: 4.944 MB / 1.007 GB, free: 61.88 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0119/3.445, allocations: 2.991 MB / 1.01 GB, free: 61.78 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/3.445, allocations: 1.312 kB / 1.01 GB, free: 61.78 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004001/3.449, allocations: 0.9897 MB / 1.011 GB, free: 61.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006443/3.455, allocations: 0.6968 MB / 1.012 GB, free: 61.75 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01458/3.47, allocations: 3.634 MB / 1.015 GB, free: 61.09 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001098/3.471, allocations: 1.405 MB / 1.017 GB, free: 60.37 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001679/3.473, allocations: 0.6509 MB / 1.017 GB, free: 60.36 MB / 442.7 MB Notification: Performance of SimCode: time 1.653e-06/3.473, allocations: 2.031 kB / 1.017 GB, free: 60.36 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.984/7.457, allocations: 48.48 MB / 1.065 GB, free: 57.43 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve_res.mat does not exist to compare? outputFormat=mat