Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.016/2.016, allocations: 225.8 MB / 238.8 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.934e-05/3.953e-05, allocations: 10.02 kB / 292.2 MB, free: 8.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1337, allocations: 50.41 MB / 342.6 MB, free: 5.836 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4898/0.6236, allocations: 82.95 MB / 425.6 MB, free: 10.87 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002876/0.6239, allocations: 70.47 kB / 425.7 MB, free: 10.83 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1046/0.7285, allocations: 27.34 MB / 453 MB, free: 4.176 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.7286, allocations: 0 / 453 MB, free: 4.176 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.519e-05/0.7286, allocations: 4 kB / 453 MB, free: 4.172 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007588/0.7294, allocations: 0.6156 MB / 453.6 MB, free: 3.508 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.7294, allocations: 12.03 kB / 453.6 MB, free: 3.496 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.051e-05/0.7295, allocations: 41.69 kB / 453.7 MB, free: 3.449 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.7296, allocations: 47.48 kB / 453.7 MB, free: 3.402 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004258/0.7301, allocations: 257.1 kB / 454 MB, free: 3.117 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.712e-05/0.7301, allocations: 6.938 kB / 454 MB, free: 3.113 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.357e-05/0.7302, allocations: 8 kB / 454 MB, free: 3.105 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004037/0.7306, allocations: 145.7 kB / 454.1 MB, free: 2.977 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.7306, allocations: 3.984 kB / 454.1 MB, free: 2.973 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.11e-05/0.7307, allocations: 8 kB / 454.1 MB, free: 2.965 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.7307, allocations: 0 / 454.1 MB, free: 2.965 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002139/0.7309, allocations: 68.06 kB / 454.2 MB, free: 2.914 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009922/0.7319, allocations: 479.7 kB / 454.7 MB, free: 2.457 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002568/0.7322, allocations: 102.5 kB / 454.8 MB, free: 2.375 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002232/0.7324, allocations: 94.59 kB / 454.9 MB, free: 2.309 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/0.7325, allocations: 0 / 454.9 MB, free: 2.309 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004204/0.7329, allocations: 221.9 kB / 455.1 MB, free: 2.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 2.244e-06/0.7329, allocations: 0 / 455.1 MB, free: 2.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.00102/0.7339, allocations: 432.1 kB / 455.5 MB, free: 1.688 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.7341, allocations: 166.8 kB / 455.7 MB, free: 1.488 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000905/0.735, allocations: 470.5 kB / 456.1 MB, free: 1.023 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.618e-05/0.7351, allocations: 33.7 kB / 456.2 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.419e-05/0.7352, allocations: 101.1 kB / 456.3 MB, free: 0.8828 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.471e-05/0.7352, allocations: 19.72 kB / 456.3 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.314e-05/0.7353, allocations: 4 kB / 456.3 MB, free: 0.8594 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.7354, allocations: 326.8 kB / 456.6 MB, free: 0.5312 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002028/0.7356, allocations: 63.97 kB / 456.7 MB, free: 480 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002212/0.7359, allocations: 67.97 kB / 456.7 MB, free: 412 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002555/0.7361, allocations: 178.6 kB / 456.9 MB, free: 208 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.7362, allocations: 4 kB / 456.9 MB, free: 204 kB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0009159/0.7371, allocations: 412.8 kB / 457.3 MB, free: 15.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/0.7372, allocations: 118.8 kB / 457.4 MB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.7372, allocations: 0 / 457.4 MB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.237e-05/0.7373, allocations: 11.94 kB / 457.4 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.097e-05/0.7373, allocations: 0 / 457.4 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.7373, allocations: 0 / 457.4 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002474/0.7376, allocations: 16 kB / 457.5 MB, free: 15.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001907/0.7378, allocations: 115.9 kB / 457.6 MB, free: 15.48 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.x,$PRE.bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0002464/0.738, allocations: 245.5 kB / 457.8 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.49e-05/0.7381, allocations: 39.53 kB / 457.8 MB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000183/0.7383, allocations: 59.44 kB / 457.9 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.7383, allocations: 3.953 kB / 457.9 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.7384, allocations: 4 kB / 457.9 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.7384, allocations: 0 / 457.9 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00156/0.7399, allocations: 0.8409 MB / 458.8 MB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.74, allocations: 0 / 458.8 MB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.546e-05/0.74, allocations: 0 / 458.8 MB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.955e-06/0.74, allocations: 4 kB / 458.8 MB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.482e-05/0.7401, allocations: 23.94 kB / 458.8 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.7401, allocations: 4.125 kB / 458.8 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.7401, allocations: 0 / 458.8 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.7413, allocations: 0.5526 MB / 459.3 MB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005877/0.7419, allocations: 248.4 kB / 459.6 MB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.749e-05/0.742, allocations: 12 kB / 459.6 MB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002825/0.7423, allocations: 19.94 kB / 459.6 MB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001781/0.7425, allocations: 31.97 kB / 459.6 MB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001925/0.7427, allocations: 127.7 kB / 459.8 MB, free: 13.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007756/0.7435, allocations: 384.9 kB / 460.1 MB, free: 12.74 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7435, allocations: 0 / 460.1 MB, free: 12.74 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005022/0.744, allocations: 48 kB / 460.2 MB, free: 12.69 MB / 378.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: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,bUF3S.yy,bUF3S.nextstate,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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 Backend phase and start with SimCode phase: time 0.0015/0.7455, allocations: 1.109 MB / 461.3 MB, free: 11.53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007503/0.7463, allocations: 441.5 kB / 461.7 MB, free: 11.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.7463, allocations: 0 / 461.7 MB, free: 11.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004771/0.7468, allocations: 377.6 kB / 462.1 MB, free: 10.63 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008335/0.7476, allocations: 108.6 kB / 462.2 MB, free: 10.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001821/0.7495, allocations: 0.6185 MB / 462.8 MB, free: 9.867 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005649/0.7501, allocations: 0.8065 MB / 463.6 MB, free: 9.035 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.081e-05/0.7502, allocations: 8.656 kB / 463.6 MB, free: 9.023 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.519e-05/0.7502, allocations: 31.42 kB / 463.7 MB, free: 8.992 MB / 378.7 MB Notification: Performance of SimCode: time 1.403e-06/0.7503, allocations: 0 / 463.7 MB, free: 8.992 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03426/0.7845, allocations: 6.903 MB / 470.6 MB, free: 2.133 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002523/0.7848, allocations: 143.1 kB / 470.7 MB, free: 1.91 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.631/3.416, allocations: 0 / 470.7 MB, free: 1.91 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S_res.mat does not exist to compare? outputFormat=mat