Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.933/1.933, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.082e-05/3.106e-05, allocations: 4 kB / 249.7 MB, free: 14.82 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3147/0.3148, allocations: 44.49 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1347/0.4496, allocations: 76.91 MB / 371.1 MB, free: 4.938 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/0.4499, allocations: 75.91 kB / 371.2 MB, free: 4.863 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1231/0.573, allocations: 26.75 MB / 398 MB, free: 10.15 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.5731, allocations: 0 / 398 MB, free: 10.15 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.546e-05/0.5731, allocations: 8 kB / 398 MB, free: 10.14 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.008166/0.5813, allocations: 0.6177 MB / 398.6 MB, free: 9.453 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0008394/0.5821, allocations: 8.031 kB / 398.6 MB, free: 9.445 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001335/0.5823, allocations: 39.53 kB / 398.6 MB, free: 9.406 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005106/0.5828, allocations: 259.6 kB / 398.9 MB, free: 9.113 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.269e-05/0.5829, allocations: 7.953 kB / 398.9 MB, free: 9.105 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.093e-05/0.5829, allocations: 8 kB / 398.9 MB, free: 9.098 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002591/0.5832, allocations: 63.91 kB / 399 MB, free: 9.035 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004325/0.5837, allocations: 137.6 kB / 399.1 MB, free: 8.895 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.5837, allocations: 4 kB / 399.1 MB, free: 8.891 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.821e-05/0.5838, allocations: 0 / 399.1 MB, free: 8.891 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.5838, allocations: 8 kB / 399.1 MB, free: 8.883 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.585, allocations: 445.1 kB / 399.5 MB, free: 8.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002824/0.5853, allocations: 98.5 kB / 399.6 MB, free: 8.305 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002461/0.5855, allocations: 84.83 kB / 399.7 MB, free: 8.219 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.336e-06/0.5856, allocations: 4 kB / 399.7 MB, free: 8.215 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004674/0.5861, allocations: 218.7 kB / 399.9 MB, free: 7.977 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 2.334e-06/0.5861, allocations: 0 / 399.9 MB, free: 7.977 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.001143/0.5872, allocations: 309.3 kB / 400.2 MB, free: 7.668 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/0.5874, allocations: 170.1 kB / 400.4 MB, free: 7.465 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00114/0.5885, allocations: 448.8 kB / 400.8 MB, free: 7.023 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.984e-05/0.5886, allocations: 29.7 kB / 400.9 MB, free: 6.988 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.309e-05/0.5887, allocations: 101.5 kB / 401 MB, free: 6.887 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.401e-05/0.5888, allocations: 31.64 kB / 401 MB, free: 6.855 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.931e-05/0.5889, allocations: 4 kB / 401 MB, free: 6.852 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001901/0.5891, allocations: 326.8 kB / 401.3 MB, free: 6.523 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001863/0.591, allocations: 55.98 kB / 401.4 MB, free: 6.469 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002454/0.5912, allocations: 63.97 kB / 401.4 MB, free: 6.406 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/0.5915, allocations: 53.78 kB / 401.5 MB, free: 6.355 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.5916, allocations: 0 / 401.5 MB, free: 6.355 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.001174/0.5928, allocations: 285.3 kB / 401.8 MB, free: 6.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001548/0.593, allocations: 126.8 kB / 401.9 MB, free: 5.922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.593, allocations: 4.172 kB / 401.9 MB, free: 5.918 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.5931, allocations: 3.938 kB / 401.9 MB, free: 5.914 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.345e-05/0.5931, allocations: 0 / 401.9 MB, free: 5.914 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.5931, allocations: 4.141 kB / 401.9 MB, free: 5.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003389/0.5935, allocations: 19.97 kB / 401.9 MB, free: 5.891 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000281/0.5938, allocations: 119.8 kB / 402 MB, free: 5.773 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.0003458/0.5941, allocations: 245.2 kB / 402.3 MB, free: 5.5 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00124/0.5954, allocations: 337.1 kB / 402.6 MB, free: 5.164 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.5956, allocations: 43.47 kB / 402.7 MB, free: 5.121 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002652/0.5958, allocations: 67.27 kB / 402.7 MB, free: 5.051 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.5959, allocations: 0 / 402.7 MB, free: 5.051 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/0.5959, allocations: 0 / 402.7 MB, free: 5.051 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.5959, allocations: 3.938 kB / 402.7 MB, free: 5.047 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001876/0.5978, allocations: 0.6745 MB / 403.4 MB, free: 4.328 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.5978, allocations: 0 / 403.4 MB, free: 4.328 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.806e-06/0.5978, allocations: 0 / 403.4 MB, free: 4.328 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.496e-06/0.5979, allocations: 4 kB / 403.4 MB, free: 4.324 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.772e-05/0.5979, allocations: 19.98 kB / 403.4 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.598, allocations: 0 / 403.4 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/0.598, allocations: 3.938 kB / 403.4 MB, free: 4.301 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.5992, allocations: 442.8 kB / 403.9 MB, free: 3.852 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000727/0.6, allocations: 252.4 kB / 404.1 MB, free: 3.586 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/0.6001, allocations: 12 kB / 404.1 MB, free: 3.574 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003599/0.6005, allocations: 11.98 kB / 404.1 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001914/0.6007, allocations: 35.95 kB / 404.2 MB, free: 3.527 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002596/0.601, allocations: 123.8 kB / 404.3 MB, free: 3.406 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009431/0.602, allocations: 366.7 kB / 404.6 MB, free: 3.051 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.602, allocations: 0 / 404.6 MB, free: 3.051 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006779/0.6027, allocations: 44 kB / 404.7 MB, free: 3.008 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.00172/0.6044, allocations: 0.9815 MB / 405.7 MB, free: 2 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008996/0.6053, allocations: 433.6 kB / 406.1 MB, free: 1.527 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.6054, allocations: 0 / 406.1 MB, free: 1.527 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005952/0.606, allocations: 369.6 kB / 406.4 MB, free: 1.117 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/0.6071, allocations: 97.7 kB / 406.5 MB, free: 1.023 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001902/0.609, allocations: 0.6154 MB / 407.2 MB, free: 380 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006314/0.6096, allocations: 0.8101 MB / 408 MB, free: 15.54 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.936e-05/0.6097, allocations: 12.64 kB / 408 MB, free: 15.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.17e-05/0.6098, allocations: 23.42 kB / 408 MB, free: 15.5 MB / 362.7 MB Notification: Performance of SimCode: time 8.92e-07/0.6098, allocations: 4 kB / 408 MB, free: 15.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04525/0.655, allocations: 6.466 MB / 414.5 MB, free: 8.965 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002666/0.6554, allocations: 124.1 kB / 414.6 MB, free: 8.777 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.406/3.062, allocations: 0 / 414.6 MB, free: 8.777 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.BUF3S_res.mat does not exist to compare? outputFormat=mat