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.852/1.852, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.329e-05/3.337e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09426/0.09432, allocations: 44.51 MB / 299.9 MB, free: 6.547 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3988/0.4932, allocations: 77.56 MB / 377.5 MB, free: 12.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002654/0.4935, allocations: 67.36 kB / 377.6 MB, free: 12.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08552/0.5791, allocations: 26.96 MB / 404.5 MB, free: 9.824 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.5791, allocations: 0 / 404.5 MB, free: 9.824 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.5791, allocations: 4.062 kB / 404.5 MB, free: 9.824 MB / 314.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.0005915/0.5797, allocations: 0.6192 MB / 405.1 MB, free: 9.223 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.5798, allocations: 15.62 kB / 405.2 MB, free: 9.219 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.956e-05/0.5799, allocations: 42.05 kB / 405.2 MB, free: 9.176 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.393e-05/0.58, allocations: 38.94 kB / 405.2 MB, free: 9.156 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003471/0.5803, allocations: 258.5 kB / 405.5 MB, free: 8.914 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.116e-05/0.5804, allocations: 11.69 kB / 405.5 MB, free: 8.914 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.952e-05/0.5804, allocations: 7.688 kB / 405.5 MB, free: 8.914 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003827/0.5808, allocations: 145.2 kB / 405.6 MB, free: 8.848 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.5808, allocations: 0 / 405.6 MB, free: 8.848 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.862e-05/0.5809, allocations: 3.875 kB / 405.7 MB, free: 8.848 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.5809, allocations: 0 / 405.7 MB, free: 8.848 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001874/0.5811, allocations: 70.22 kB / 405.7 MB, free: 8.836 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008796/0.582, allocations: 482.2 kB / 406.2 MB, free: 8.484 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002263/0.5822, allocations: 98.05 kB / 406.3 MB, free: 8.453 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001963/0.5824, allocations: 87.27 kB / 406.4 MB, free: 8.438 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.436e-06/0.5825, allocations: 4 kB / 406.4 MB, free: 8.434 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003592/0.5828, allocations: 222.4 kB / 406.6 MB, free: 8.281 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.584e-06/0.5829, allocations: 3.875 kB / 406.6 MB, free: 8.281 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.000893/0.5838, allocations: 436.9 kB / 407 MB, free: 8.066 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.259e-05/0.5839, allocations: 161.1 kB / 407.2 MB, free: 7.879 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007729/0.5846, allocations: 467.7 kB / 407.6 MB, free: 7.652 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.297e-05/0.5847, allocations: 29.58 kB / 407.7 MB, free: 7.621 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.206e-05/0.5848, allocations: 162.6 kB / 407.8 MB, free: 7.469 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.796e-05/0.5848, allocations: 42.08 kB / 407.9 MB, free: 7.441 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.101e-05/0.5849, allocations: 3.969 kB / 407.9 MB, free: 7.441 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.041e-05/0.585, allocations: 318.4 kB / 408.2 MB, free: 7.125 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001815/0.5852, allocations: 63.72 kB / 408.2 MB, free: 7.117 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001713/0.5853, allocations: 63.45 kB / 408.3 MB, free: 7.113 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002093/0.5856, allocations: 173.9 kB / 408.5 MB, free: 6.977 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.5856, allocations: 0 / 408.5 MB, free: 6.977 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007586/0.5863, allocations: 400.4 kB / 408.9 MB, free: 6.785 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.417e-05/0.5864, allocations: 135 kB / 409 MB, free: 6.645 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.5865, allocations: 3.984 kB / 409 MB, free: 6.645 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.5865, allocations: 3.938 kB / 409 MB, free: 6.641 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.303e-05/0.5865, allocations: 0 / 409 MB, free: 6.641 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.5865, allocations: 0 / 409 MB, free: 6.641 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002483/0.5868, allocations: 15.58 kB / 409 MB, free: 6.637 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001482/0.587, allocations: 117.3 kB / 409.1 MB, free: 6.621 MB / 314.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.0001885/0.5872, allocations: 246.1 kB / 409.4 MB, free: 6.375 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.5873, allocations: 42.91 kB / 409.4 MB, free: 6.352 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001991/0.5875, allocations: 69.17 kB / 409.5 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.5875, allocations: 0 / 409.5 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.5875, allocations: 0 / 409.5 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.5875, allocations: 0 / 409.5 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/0.5888, allocations: 0.8405 MB / 410.3 MB, free: 5.762 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.5888, allocations: 7.906 kB / 410.3 MB, free: 5.758 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.248e-05/0.5889, allocations: 0 / 410.3 MB, free: 5.758 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.5889, allocations: 0 / 410.3 MB, free: 5.758 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.07e-05/0.5889, allocations: 23.48 kB / 410.4 MB, free: 5.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.589, allocations: 0 / 410.4 MB, free: 5.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.589, allocations: 0 / 410.4 MB, free: 5.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008777/0.5898, allocations: 0.5563 MB / 410.9 MB, free: 5.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004899/0.5904, allocations: 254.5 kB / 411.2 MB, free: 5.254 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.112e-05/0.5905, allocations: 13.92 kB / 411.2 MB, free: 5.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002651/0.5907, allocations: 15.38 kB / 411.2 MB, free: 5.246 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.5909, allocations: 37.45 kB / 411.2 MB, free: 5.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001423/0.5911, allocations: 120.2 kB / 411.3 MB, free: 5.215 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006158/0.5917, allocations: 389.3 kB / 411.7 MB, free: 5.035 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5917, allocations: 0 / 411.7 MB, free: 5.035 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004027/0.5921, allocations: 38.91 kB / 411.8 MB, free: 5.035 MB / 314.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.001204/0.5933, allocations: 1.114 MB / 412.9 MB, free: 4.184 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006301/0.594, allocations: 448.5 kB / 413.3 MB, free: 3.914 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.594, allocations: 0 / 413.3 MB, free: 3.914 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003603/0.5944, allocations: 378.6 kB / 413.7 MB, free: 3.652 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000798/0.5952, allocations: 102 kB / 413.8 MB, free: 3.617 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001656/0.5969, allocations: 0.6571 MB / 414.4 MB, free: 3.254 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005718/0.5975, allocations: 0.8066 MB / 415.2 MB, free: 18.49 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.619e-05/0.5975, allocations: 29.36 kB / 415.3 MB, free: 18.48 MB / 330.7 MB Notification: Performance of SimCode: time 1.783e-06/0.5976, allocations: 0 / 415.3 MB, free: 18.48 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.547/3.145, allocations: 4.333 MB / 419.6 MB, free: 16.31 MB / 330.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