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.605/1.605, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.401e-05/3.404e-05, allocations: 8 kB / 225.1 MB, free: 2.613 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2535, allocations: 38.76 MB / 263.9 MB, free: 9.754 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1216/0.3751, allocations: 72.25 MB / 336.1 MB, free: 1.398 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.3754, allocations: 67.97 kB / 336.2 MB, free: 1.332 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09981/0.4752, allocations: 27.46 MB / 363.6 MB, free: 5.953 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4753, allocations: 0 / 363.6 MB, free: 5.953 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.4753, allocations: 4 kB / 363.6 MB, free: 5.949 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.0006954/0.476, allocations: 0.6136 MB / 364.2 MB, free: 5.266 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.4761, allocations: 12.02 kB / 364.3 MB, free: 5.254 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.867e-05/0.4761, allocations: 38.56 kB / 364.3 MB, free: 5.207 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.569e-05/0.4762, allocations: 39.53 kB / 364.3 MB, free: 5.168 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003828/0.4766, allocations: 261.5 kB / 364.6 MB, free: 4.871 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.042e-05/0.4767, allocations: 8 kB / 364.6 MB, free: 4.863 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.969e-05/0.4767, allocations: 4 kB / 364.6 MB, free: 4.859 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003924/0.4771, allocations: 145.6 kB / 364.7 MB, free: 4.711 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.4772, allocations: 3.953 kB / 364.7 MB, free: 4.707 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.205e-05/0.4772, allocations: 8 kB / 364.7 MB, free: 4.699 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.4772, allocations: 0 / 364.7 MB, free: 4.699 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002093/0.4775, allocations: 67.97 kB / 364.8 MB, free: 4.633 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009183/0.4784, allocations: 480.6 kB / 365.3 MB, free: 4.113 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002546/0.4787, allocations: 102.5 kB / 365.4 MB, free: 4.004 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002273/0.4789, allocations: 92.89 kB / 365.5 MB, free: 3.91 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.256e-05/0.4789, allocations: 112 / 365.5 MB, free: 3.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000408/0.4794, allocations: 234.5 kB / 365.7 MB, free: 3.656 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.094e-06/0.4794, allocations: 0 / 365.7 MB, free: 3.656 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009892/0.4804, allocations: 431.9 kB / 366.1 MB, free: 3.203 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/0.4805, allocations: 166.2 kB / 366.3 MB, free: 3.004 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008423/0.4813, allocations: 458.5 kB / 366.7 MB, free: 2.551 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.86e-05/0.4814, allocations: 33.69 kB / 366.8 MB, free: 2.512 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.409e-05/0.4815, allocations: 163.5 kB / 366.9 MB, free: 2.352 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.889e-05/0.4816, allocations: 35.58 kB / 367 MB, free: 2.316 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.317e-05/0.4816, allocations: 8 kB / 367 MB, free: 2.309 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.4818, allocations: 318.8 kB / 367.3 MB, free: 1.988 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001969/0.482, allocations: 63.98 kB / 367.3 MB, free: 1.926 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001956/0.4822, allocations: 66.64 kB / 367.4 MB, free: 1.863 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002409/0.4824, allocations: 166.8 kB / 367.6 MB, free: 1.676 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.4824, allocations: 0 / 367.6 MB, free: 1.676 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008579/0.4833, allocations: 400.3 kB / 368 MB, free: 1.254 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001017/0.4834, allocations: 126.8 kB / 368.1 MB, free: 1.105 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.4834, allocations: 0 / 368.1 MB, free: 1.105 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.4835, allocations: 0 / 368.1 MB, free: 1.105 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.611e-05/0.4835, allocations: 11.94 kB / 368.1 MB, free: 1.094 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.4835, allocations: 0 / 368.1 MB, free: 1.094 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002288/0.4838, allocations: 15.89 kB / 368.1 MB, free: 1.078 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001909/0.484, allocations: 123.7 kB / 368.2 MB, free: 0.957 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.0002324/0.4842, allocations: 237.5 kB / 368.5 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.938e-05/0.4843, allocations: 39.58 kB / 368.5 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001701/0.4845, allocations: 71.41 kB / 368.6 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.4845, allocations: 0 / 368.6 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.4845, allocations: 4 kB / 368.6 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.4845, allocations: 0 / 368.6 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2081/0.6927, allocations: 0.8298 MB / 369.4 MB, free: 90.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.6927, allocations: 2.062 kB / 369.4 MB, free: 90.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.558e-05/0.6927, allocations: 0.5312 kB / 369.4 MB, free: 90.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.614e-06/0.6928, allocations: 0.5938 kB / 369.4 MB, free: 90.05 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.835e-05/0.6928, allocations: 21.25 kB / 369.4 MB, free: 90.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.6929, allocations: 0.5 kB / 369.4 MB, free: 90.05 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.6929, allocations: 1.703 kB / 369.4 MB, free: 90.05 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/0.694, allocations: 0.5521 MB / 370 MB, free: 89.8 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000584/0.6946, allocations: 254.1 kB / 370.2 MB, free: 89.69 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001018/0.6948, allocations: 14.58 kB / 370.3 MB, free: 89.69 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002758/0.695, allocations: 17.31 kB / 370.3 MB, free: 89.69 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001811/0.6952, allocations: 38.59 kB / 370.3 MB, free: 89.69 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002595/0.6955, allocations: 119.6 kB / 370.4 MB, free: 89.69 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007675/0.6963, allocations: 387.8 kB / 370.8 MB, free: 89.54 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6963, allocations: 0 / 370.8 MB, free: 89.54 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004597/0.6968, allocations: 41.88 kB / 370.8 MB, free: 89.54 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.001167/0.698, allocations: 1.119 MB / 372 MB, free: 88.74 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005995/0.6986, allocations: 445.2 kB / 372.4 MB, free: 88.49 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.6986, allocations: 0 / 372.4 MB, free: 88.49 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003637/0.699, allocations: 376.9 kB / 372.8 MB, free: 88.24 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007474/0.6997, allocations: 108.3 kB / 372.9 MB, free: 88.23 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001526/0.7013, allocations: 0.6556 MB / 373.5 MB, free: 87.94 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003704/0.7017, allocations: 0.8075 MB / 374.3 MB, free: 87.21 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.321e-05/0.7017, allocations: 25.22 kB / 374.4 MB, free: 87.21 MB / 314.7 MB Notification: Performance of SimCode: time 2.114e-06/0.7017, allocations: 0 / 374.4 MB, free: 87.21 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.754/3.456, allocations: 4.331 MB / 378.7 MB, free: 86.86 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