Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.806/1.806, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.042e-05/4.061e-05, allocations: 7.984 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2513, allocations: 38.75 MB / 263.8 MB, free: 9.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1265/0.3778, allocations: 72.25 MB / 336.1 MB, free: 1.516 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002566/0.3781, allocations: 63.97 kB / 336.1 MB, free: 1.453 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09707/0.4752, allocations: 27.45 MB / 363.6 MB, free: 6.086 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.4753, allocations: 192 / 363.6 MB, free: 6.086 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.4753, allocations: 4 kB / 363.6 MB, free: 6.082 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.000742/0.4761, allocations: 0.6252 MB / 364.2 MB, free: 5.387 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.4761, allocations: 11.97 kB / 364.2 MB, free: 5.375 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.658e-05/0.4762, allocations: 38.56 kB / 364.3 MB, free: 5.328 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.4763, allocations: 39.53 kB / 364.3 MB, free: 5.289 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004339/0.4768, allocations: 261.5 kB / 364.6 MB, free: 4.992 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.414e-05/0.4768, allocations: 8 kB / 364.6 MB, free: 4.984 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.508e-05/0.4769, allocations: 12 kB / 364.6 MB, free: 4.973 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004172/0.4773, allocations: 137.6 kB / 364.7 MB, free: 4.832 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.4773, allocations: 3.953 kB / 364.7 MB, free: 4.828 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.952e-05/0.4774, allocations: 4 kB / 364.7 MB, free: 4.824 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.4774, allocations: 7.984 kB / 364.7 MB, free: 4.816 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002125/0.4776, allocations: 67.97 kB / 364.8 MB, free: 4.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001027/0.4787, allocations: 476.6 kB / 365.3 MB, free: 4.234 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002718/0.4789, allocations: 102.5 kB / 365.4 MB, free: 4.125 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002354/0.4792, allocations: 88.89 kB / 365.4 MB, free: 4.035 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.468e-05/0.4792, allocations: 4 kB / 365.4 MB, free: 4.031 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004267/0.4797, allocations: 226.6 kB / 365.7 MB, free: 3.785 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.234e-06/0.4797, allocations: 0 / 365.7 MB, free: 3.785 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.001047/0.4807, allocations: 435.9 kB / 366.1 MB, free: 3.328 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.4809, allocations: 162.2 kB / 366.3 MB, free: 3.133 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009625/0.4818, allocations: 466.5 kB / 366.7 MB, free: 2.672 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.608e-05/0.4819, allocations: 33.7 kB / 366.7 MB, free: 2.633 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.46e-05/0.482, allocations: 159.6 kB / 366.9 MB, free: 2.477 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.682e-05/0.4821, allocations: 39.52 kB / 366.9 MB, free: 2.438 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.552e-05/0.4822, allocations: 8 kB / 366.9 MB, free: 2.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.4823, allocations: 318.8 kB / 367.3 MB, free: 2.109 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/0.4825, allocations: 63.98 kB / 367.3 MB, free: 2.047 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.4827, allocations: 63.97 kB / 367.4 MB, free: 1.984 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000256/0.483, allocations: 169.2 kB / 367.5 MB, free: 1.797 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.483, allocations: 0 / 367.5 MB, free: 1.797 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0009309/0.484, allocations: 408.3 kB / 367.9 MB, free: 1.367 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001521/0.4841, allocations: 122.8 kB / 368.1 MB, free: 1.223 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.4842, allocations: 0 / 368.1 MB, free: 1.223 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.4842, allocations: 0 / 368.1 MB, free: 1.223 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.255e-05/0.4842, allocations: 0 / 368.1 MB, free: 1.223 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.4842, allocations: 4 kB / 368.1 MB, free: 1.219 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002557/0.4845, allocations: 19.89 kB / 368.1 MB, free: 1.199 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002354/0.4847, allocations: 127.7 kB / 368.2 MB, free: 1.074 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.0003058/0.4851, allocations: 233.5 kB / 368.4 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.417e-05/0.4852, allocations: 39.56 kB / 368.5 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002214/0.4854, allocations: 67.44 kB / 368.5 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.4854, allocations: 0 / 368.5 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.4854, allocations: 3.938 kB / 368.5 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.4854, allocations: 4 kB / 368.6 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2115/0.697, allocations: 0.8382 MB / 369.4 MB, free: 90.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.6971, allocations: 0 / 369.4 MB, free: 90.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.807e-05/0.6971, allocations: 1.438 kB / 369.4 MB, free: 90.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.015e-06/0.6971, allocations: 0.5 kB / 369.4 MB, free: 90.11 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.026e-05/0.6972, allocations: 22.64 kB / 369.4 MB, free: 90.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.079e-06/0.6972, allocations: 0.5312 kB / 369.4 MB, free: 90.11 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.6972, allocations: 0.5625 kB / 369.4 MB, free: 90.11 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.6984, allocations: 0.5512 MB / 370 MB, free: 89.86 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005859/0.699, allocations: 253.9 kB / 370.2 MB, free: 89.75 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001001/0.6991, allocations: 10.47 kB / 370.2 MB, free: 89.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000282/0.6994, allocations: 13.75 kB / 370.2 MB, free: 89.75 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.6996, allocations: 33.45 kB / 370.3 MB, free: 89.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002581/0.6999, allocations: 127.2 kB / 370.4 MB, free: 89.74 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007969/0.7007, allocations: 386.5 kB / 370.8 MB, free: 89.6 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7007, allocations: 0 / 370.8 MB, free: 89.6 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004321/0.7011, allocations: 45.88 kB / 370.8 MB, free: 89.6 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.001156/0.7023, allocations: 1.123 MB / 371.9 MB, free: 88.8 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006131/0.7029, allocations: 443 kB / 372.4 MB, free: 88.55 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.703, allocations: 0 / 372.4 MB, free: 88.55 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003612/0.7033, allocations: 381.6 kB / 372.7 MB, free: 88.3 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007423/0.7041, allocations: 95.67 kB / 372.8 MB, free: 88.29 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.7056, allocations: 0.6671 MB / 373.5 MB, free: 87.99 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003661/0.706, allocations: 0.8041 MB / 374.3 MB, free: 87.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.324e-05/0.706, allocations: 30.83 kB / 374.3 MB, free: 87.27 MB / 314.7 MB Notification: Performance of SimCode: time 6.72e-07/0.7061, allocations: 0 / 374.3 MB, free: 87.27 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.484/3.19, allocations: 4.321 MB / 378.7 MB, free: 86.91 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.BUF3S_res.mat does not exist to compare? outputFormat=mat