Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.927/1.927, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.32e-05/2.32e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3408/0.3409, allocations: 44.49 MB / 294.2 MB, free: 14.16 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1325/0.4734, allocations: 76.9 MB / 371.1 MB, free: 4.988 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002548/0.4737, allocations: 71.95 kB / 371.2 MB, free: 4.918 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09389/0.5676, allocations: 26.75 MB / 397.9 MB, free: 10.21 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.5677, allocations: 4 kB / 397.9 MB, free: 10.2 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.545e-05/0.5677, allocations: 8 kB / 397.9 MB, free: 10.2 MB / 346.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.0007193/0.5684, allocations: 0.6216 MB / 398.6 MB, free: 9.504 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.5685, allocations: 8.031 kB / 398.6 MB, free: 9.496 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/0.5686, allocations: 39.53 kB / 398.6 MB, free: 9.457 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004013/0.569, allocations: 259.6 kB / 398.9 MB, free: 9.164 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.5691, allocations: 7.953 kB / 398.9 MB, free: 9.156 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.167e-05/0.5691, allocations: 8 kB / 398.9 MB, free: 9.148 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002031/0.5694, allocations: 59.92 kB / 398.9 MB, free: 9.09 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003302/0.5697, allocations: 141.6 kB / 399.1 MB, free: 8.945 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.5697, allocations: 0 / 399.1 MB, free: 8.945 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.581e-05/0.5698, allocations: 4 kB / 399.1 MB, free: 8.941 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.5698, allocations: 4 kB / 399.1 MB, free: 8.938 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009258/0.5707, allocations: 445.1 kB / 399.5 MB, free: 8.465 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002305/0.571, allocations: 106.5 kB / 399.6 MB, free: 8.352 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001919/0.5712, allocations: 80.89 kB / 399.7 MB, free: 8.27 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.367e-05/0.5712, allocations: 3.984 kB / 399.7 MB, free: 8.266 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003817/0.5716, allocations: 218.7 kB / 399.9 MB, free: 8.027 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 2.725e-06/0.5716, allocations: 0 / 399.9 MB, free: 8.027 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008681/0.5725, allocations: 309.3 kB / 400.2 MB, free: 7.719 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.5726, allocations: 170.2 kB / 400.4 MB, free: 7.516 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008281/0.5735, allocations: 456.8 kB / 400.8 MB, free: 7.066 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.831e-05/0.5735, allocations: 29.7 kB / 400.9 MB, free: 7.031 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.95e-05/0.5736, allocations: 163.9 kB / 401 MB, free: 6.871 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.306e-05/0.5737, allocations: 23.66 kB / 401 MB, free: 6.848 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.254e-05/0.5737, allocations: 4 kB / 401 MB, free: 6.844 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.5739, allocations: 326.8 kB / 401.4 MB, free: 6.516 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/0.574, allocations: 51.98 kB / 401.4 MB, free: 6.465 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001609/0.5742, allocations: 63.97 kB / 401.5 MB, free: 6.402 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001453/0.5744, allocations: 53.94 kB / 401.5 MB, free: 6.352 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.5744, allocations: 0 / 401.5 MB, free: 6.352 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007281/0.5751, allocations: 277.5 kB / 401.8 MB, free: 6.074 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001098/0.5753, allocations: 126.8 kB / 401.9 MB, free: 5.926 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.5753, allocations: 4.109 kB / 401.9 MB, free: 5.922 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.5753, allocations: 3.938 kB / 401.9 MB, free: 5.918 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.478e-05/0.5753, allocations: 4 kB / 401.9 MB, free: 5.914 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.5754, allocations: 0 / 401.9 MB, free: 5.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002276/0.5756, allocations: 11.98 kB / 401.9 MB, free: 5.902 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001878/0.5758, allocations: 123.8 kB / 402.1 MB, free: 5.781 MB / 346.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.0002312/0.576, allocations: 245.3 kB / 402.3 MB, free: 5.508 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008194/0.5769, allocations: 333 kB / 402.6 MB, free: 5.176 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.69e-05/0.577, allocations: 39.56 kB / 402.7 MB, free: 5.137 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000202/0.5772, allocations: 63.44 kB / 402.7 MB, free: 5.07 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.5772, allocations: 0 / 402.7 MB, free: 5.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.5772, allocations: 4 kB / 402.7 MB, free: 5.066 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.822e-06/0.5772, allocations: 7.922 kB / 402.7 MB, free: 5.059 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001269/0.5785, allocations: 0.6823 MB / 403.4 MB, free: 4.332 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.5785, allocations: 0 / 403.4 MB, free: 4.332 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.123e-05/0.5785, allocations: 3.984 kB / 403.4 MB, free: 4.328 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.399e-06/0.5786, allocations: 0 / 403.4 MB, free: 4.328 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.535e-05/0.5786, allocations: 23.98 kB / 403.5 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.5786, allocations: 0 / 403.5 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.5787, allocations: 0 / 403.5 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008626/0.5795, allocations: 438.7 kB / 403.9 MB, free: 3.859 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005062/0.58, allocations: 252.3 kB / 404.1 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.973e-05/0.5802, allocations: 12 kB / 404.1 MB, free: 3.582 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002578/0.5804, allocations: 15.98 kB / 404.2 MB, free: 3.566 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001638/0.5806, allocations: 31.97 kB / 404.2 MB, free: 3.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001818/0.5808, allocations: 115.8 kB / 404.3 MB, free: 3.422 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006535/0.5815, allocations: 374.7 kB / 404.7 MB, free: 3.059 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5815, allocations: 0 / 404.7 MB, free: 3.059 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004249/0.5819, allocations: 40 kB / 404.7 MB, free: 3.02 MB / 346.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.001217/0.5831, allocations: 0.9816 MB / 405.7 MB, free: 2.012 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006436/0.5838, allocations: 433.6 kB / 406.1 MB, free: 1.539 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.5838, allocations: 0 / 406.1 MB, free: 1.539 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004125/0.5842, allocations: 369.6 kB / 406.5 MB, free: 1.129 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008245/0.5851, allocations: 109.8 kB / 406.6 MB, free: 1.023 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001756/0.5869, allocations: 0.6521 MB / 407.2 MB, free: 336 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005643/0.5874, allocations: 0.8101 MB / 408 MB, free: 15.49 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.131e-05/0.5875, allocations: 27.42 kB / 408.1 MB, free: 15.46 MB / 362.7 MB Notification: Performance of SimCode: time 9.21e-07/0.5875, allocations: 0 / 408.1 MB, free: 15.46 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.819/3.406, allocations: 4.316 MB / 412.4 MB, free: 11.09 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.BUF3S_res.mat does not exist to compare? outputFormat=mat