Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.538/2.538, allocations: 235.1 MB / 242.3 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.387e-05/2.39e-05, allocations: 4 kB / 299.6 MB, free: 208 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3811/0.3812, allocations: 54.85 MB / 354.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.362/1.743, allocations: 329.6 MB / 0.668 GB, free: 134.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003247/1.743, allocations: 88 kB / 0.6681 GB, free: 134.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5732/2.316, allocations: 140.4 MB / 0.8052 GB, free: 31.57 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.144e-06/2.316, allocations: 4 kB / 0.8052 GB, free: 31.56 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.168e-05/2.317, allocations: 20 kB / 0.8052 GB, free: 31.54 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.004095/2.321, allocations: 1.176 MB / 0.8063 GB, free: 30.31 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/2.321, allocations: 19.95 kB / 0.8064 GB, free: 30.29 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007792/2.322, allocations: 102.9 kB / 0.8064 GB, free: 30.19 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002525/2.324, allocations: 0.7024 MB / 0.8071 GB, free: 29.45 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001325/2.324, allocations: 96.66 kB / 0.8072 GB, free: 29.34 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001691/2.324, allocations: 36 kB / 0.8073 GB, free: 29.3 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002189/2.327, allocations: 0.8146 MB / 0.8081 GB, free: 28.49 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00228/2.329, allocations: 0.9231 MB / 0.809 GB, free: 27.52 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.42e-05/2.329, allocations: 0 / 0.809 GB, free: 27.52 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001387/2.329, allocations: 4 kB / 0.809 GB, free: 27.52 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000126/2.329, allocations: 49.28 kB / 0.809 GB, free: 27.47 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01002/2.339, allocations: 3.875 MB / 0.8128 GB, free: 23.41 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001489/2.341, allocations: 0.6087 MB / 0.8134 GB, free: 22.8 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008175/2.342, allocations: 378.2 kB / 0.8137 GB, free: 22.43 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005192/2.347, allocations: 2.335 MB / 0.816 GB, free: 19.84 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009515/2.348, allocations: 419.4 kB / 0.8164 GB, free: 19.41 MB / 490.7 MB Notification: Performance of pre-optimization done (n=47): time 4.418e-06/2.348, allocations: 0 / 0.8164 GB, free: 19.41 MB / 490.7 MB Notification: Performance of matching and sorting (n=52): time 0.01231/2.36, allocations: 2.393 MB / 0.8188 GB, free: 16.96 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.345e-05/2.36, allocations: 162.5 kB / 0.8189 GB, free: 16.76 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001036/2.361, allocations: 0.5464 MB / 0.8195 GB, free: 16.21 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001554/2.362, allocations: 29.7 kB / 0.8195 GB, free: 16.17 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003894/2.362, allocations: 446.8 kB / 0.8199 GB, free: 15.73 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002202/2.362, allocations: 169.5 kB / 0.8201 GB, free: 15.56 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.064e-05/2.362, allocations: 0 / 0.8201 GB, free: 15.56 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000147/2.363, allocations: 394.7 kB / 0.8204 GB, free: 15.16 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008438/2.363, allocations: 341.9 kB / 0.8208 GB, free: 14.83 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000988/2.364, allocations: 0.6112 MB / 0.8214 GB, free: 14.09 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00842/2.373, allocations: 1.036 MB / 0.8224 GB, free: 13.05 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.624e-05/2.373, allocations: 4 kB / 0.8224 GB, free: 13.05 MB / 490.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.01103/2.384, allocations: 1.753 MB / 0.8241 GB, free: 11.29 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007588/2.385, allocations: 3.429 MB / 0.8274 GB, free: 7.586 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.106e-05/2.385, allocations: 12 kB / 0.8275 GB, free: 7.574 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001353/2.386, allocations: 321.5 kB / 0.8278 GB, free: 7.254 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001364/2.388, allocations: 163.7 kB / 0.8279 GB, free: 7.094 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003518/2.391, allocations: 1.635 MB / 0.8295 GB, free: 5.406 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001423/2.393, allocations: 32.05 kB / 0.8295 GB, free: 5.375 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001682/2.393, allocations: 47.98 kB / 0.8296 GB, free: 5.328 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/2.393, allocations: 4 kB / 0.8296 GB, free: 5.324 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008767/2.402, allocations: 1.424 MB / 0.831 GB, free: 3.891 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.043e-05/2.402, allocations: 8 kB / 0.831 GB, free: 3.883 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001054/2.403, allocations: 253.9 kB / 0.8312 GB, free: 3.629 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/2.404, allocations: 163.7 kB / 0.8314 GB, free: 3.469 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002602/2.407, allocations: 2.284 MB / 0.8336 GB, free: 1.047 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001237/2.408, allocations: 32.08 kB / 0.8337 GB, free: 1.016 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001244/2.408, allocations: 43.98 kB / 0.8337 GB, free: 0.9727 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003673/2.408, allocations: 174.3 kB / 0.8339 GB, free: 0.7891 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3726/2.781, allocations: 1.031 MB / 0.8349 GB, free: 123.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004292/2.782, allocations: 76.66 kB / 0.8349 GB, free: 123.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006743/2.788, allocations: 1.136 MB / 0.8361 GB, free: 123.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-05/2.788, allocations: 5.312 kB / 0.8361 GB, free: 123.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/2.788, allocations: 0.5 kB / 0.8361 GB, free: 123.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.514e-05/2.788, allocations: 6.281 kB / 0.8361 GB, free: 123.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007543/2.796, allocations: 1.876 MB / 0.8379 GB, free: 123.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.235e-06/2.796, allocations: 1.031 kB / 0.8379 GB, free: 123.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009032/2.797, allocations: 77.64 kB / 0.838 GB, free: 123.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001316/2.798, allocations: 316.8 kB / 0.8383 GB, free: 123.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001351/2.798, allocations: 15.27 kB / 0.8383 GB, free: 123.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003535/2.802, allocations: 1.601 MB / 0.8399 GB, free: 122.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/2.802, allocations: 3.688 kB / 0.8399 GB, free: 122.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005752/2.808, allocations: 1.598 MB / 0.8414 GB, free: 121.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006941/2.809, allocations: 241.9 kB / 0.8416 GB, free: 121.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002628/2.809, allocations: 3.938 kB / 0.8416 GB, free: 121.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/2.81, allocations: 31.22 kB / 0.8417 GB, free: 121.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002191/2.81, allocations: 49.86 kB / 0.8417 GB, free: 121.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001087/2.81, allocations: 26.02 kB / 0.8418 GB, free: 121.8 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0007574/2.811, allocations: 415.1 kB / 0.8421 GB, free: 121.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.51e-07/2.811, allocations: 0 / 0.8421 GB, free: 121.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00313/2.814, allocations: 0.6307 MB / 0.8428 GB, free: 121.7 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.007675/2.822, allocations: 2.594 MB / 0.8453 GB, free: 121 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004233/2.826, allocations: 1.545 MB / 0.8468 GB, free: 120.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/2.826, allocations: 0 / 0.8468 GB, free: 120.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001503/2.828, allocations: 458.3 kB / 0.8472 GB, free: 120.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002547/2.83, allocations: 256.4 kB / 0.8475 GB, free: 120.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006415/2.837, allocations: 1.643 MB / 0.8491 GB, free: 120.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006719/2.837, allocations: 1.029 MB / 0.8501 GB, free: 119.6 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002375/2.84, allocations: 333.1 kB / 0.8504 GB, free: 119.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006874/2.841, allocations: 287.8 kB / 0.8507 GB, free: 119.6 MB / 490.7 MB Notification: Performance of SimCode: time 1.092e-06/2.841, allocations: 0 / 0.8507 GB, free: 119.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1018/2.942, allocations: 25.7 MB / 0.8758 GB, free: 118.9 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003083/2.943, allocations: 200.5 kB / 0.876 GB, free: 118.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.82/6.763, allocations: 3.594 kB / 0.876 GB, free: 118.7 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank_res.mat does not exist to compare? outputFormat=mat