Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.101/2.101, allocations: 205.8 MB / 218.9 MB, free: 9.348 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.253e-05/3.231e-05, allocations: 4 kB / 269.4 MB, free: 6.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09911/0.09918, allocations: 47.57 MB / 317 MB, free: 6.66 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4221/0.5213, allocations: 81.81 MB / 398.8 MB, free: 5.797 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/0.5217, allocations: 68.59 kB / 398.9 MB, free: 5.762 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09823/0.6199, allocations: 27 MB / 425.9 MB, free: 15.44 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.62, allocations: 0 / 425.9 MB, free: 15.44 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.639e-05/0.62, allocations: 4 kB / 425.9 MB, free: 15.44 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.001218/0.6212, allocations: 0.6262 MB / 426.5 MB, free: 14.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.322e-05/0.6213, allocations: 8.031 kB / 426.5 MB, free: 14.76 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001233/0.6215, allocations: 34.56 kB / 426.6 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001522/0.6216, allocations: 43.56 kB / 426.6 MB, free: 14.67 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000451/0.6221, allocations: 256.3 kB / 426.9 MB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/0.6222, allocations: 4 kB / 426.9 MB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.572e-05/0.6222, allocations: 8 kB / 426.9 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004285/0.6227, allocations: 153.4 kB / 427 MB, free: 14.24 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.6227, allocations: 0 / 427 MB, free: 14.24 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.589e-05/0.6228, allocations: 11.42 kB / 427 MB, free: 14.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.6228, allocations: 0 / 427 MB, free: 14.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002039/0.623, allocations: 58.61 kB / 427.1 MB, free: 14.19 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.624, allocations: 488.3 kB / 427.6 MB, free: 13.72 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002649/0.6243, allocations: 97.31 kB / 427.7 MB, free: 13.65 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002268/0.6246, allocations: 91.2 kB / 427.7 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.305e-05/0.6246, allocations: 0 / 427.7 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004418/0.6251, allocations: 229.3 kB / 428 MB, free: 13.36 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 2.655e-06/0.6251, allocations: 0 / 428 MB, free: 13.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.001058/0.6261, allocations: 436 kB / 428.4 MB, free: 12.95 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.6263, allocations: 169.3 kB / 428.6 MB, free: 12.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009736/0.6273, allocations: 459.9 kB / 429 MB, free: 12.37 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.979e-05/0.6274, allocations: 33.08 kB / 429 MB, free: 12.33 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.333e-05/0.6275, allocations: 95.2 kB / 429.1 MB, free: 12.25 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.251e-05/0.6276, allocations: 34.72 kB / 429.2 MB, free: 12.22 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.186e-05/0.6276, allocations: 4 kB / 429.2 MB, free: 12.21 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.6278, allocations: 325.4 kB / 429.5 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002063/0.628, allocations: 59.48 kB / 429.5 MB, free: 11.85 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002001/0.6282, allocations: 70.22 kB / 429.6 MB, free: 11.8 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002592/0.6285, allocations: 166.3 kB / 429.8 MB, free: 11.63 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.6285, allocations: 3.953 kB / 429.8 MB, free: 11.63 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0009379/0.6294, allocations: 418.8 kB / 430.2 MB, free: 11.24 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001237/0.6296, allocations: 125.6 kB / 430.3 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.6296, allocations: 0 / 430.3 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.6296, allocations: 4 kB / 430.3 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.372e-05/0.6297, allocations: 0 / 430.3 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.6297, allocations: 3.984 kB / 430.3 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002568/0.63, allocations: 12 kB / 430.3 MB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002/0.6302, allocations: 119.7 kB / 430.4 MB, free: 10.96 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.0002719/0.6304, allocations: 249.3 kB / 430.7 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.732e-05/0.6306, allocations: 51.36 kB / 430.7 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002368/0.6308, allocations: 66.92 kB / 430.8 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.6308, allocations: 8 kB / 430.8 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.6308, allocations: 0 / 430.8 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.6309, allocations: 0 / 430.8 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001552/0.6324, allocations: 0.8308 MB / 431.6 MB, free: 9.777 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.6325, allocations: 0 / 431.6 MB, free: 9.777 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.584e-05/0.6325, allocations: 3.984 kB / 431.7 MB, free: 9.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.6325, allocations: 0 / 431.7 MB, free: 9.773 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.678e-05/0.6326, allocations: 27.16 kB / 431.7 MB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.6326, allocations: 0 / 431.7 MB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.6326, allocations: 0 / 431.7 MB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001091/0.6337, allocations: 0.5611 MB / 432.2 MB, free: 9.211 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006041/0.6343, allocations: 245.7 kB / 432.5 MB, free: 8.992 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.886e-05/0.6345, allocations: 11.38 kB / 432.5 MB, free: 8.984 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003081/0.6348, allocations: 11.98 kB / 432.5 MB, free: 8.973 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001811/0.635, allocations: 31.03 kB / 432.5 MB, free: 8.949 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002103/0.6352, allocations: 123.3 kB / 432.7 MB, free: 8.832 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007873/0.636, allocations: 387.3 kB / 433 MB, free: 8.512 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.636, allocations: 4 kB / 433 MB, free: 8.508 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004668/0.6365, allocations: 43.5 kB / 433.1 MB, free: 8.469 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.001586/0.6381, allocations: 1.104 MB / 434.2 MB, free: 7.379 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000823/0.639, allocations: 446.6 kB / 434.6 MB, free: 6.984 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.639, allocations: 4 kB / 434.6 MB, free: 6.98 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005079/0.6395, allocations: 385.9 kB / 435 MB, free: 6.633 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008785/0.6404, allocations: 103.3 kB / 435.1 MB, free: 6.547 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001954/0.6424, allocations: 0.615 MB / 435.7 MB, free: 5.949 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006654/0.6431, allocations: 0.8087 MB / 436.5 MB, free: 5.121 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.416e-05/0.6432, allocations: 12.66 kB / 436.5 MB, free: 5.105 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.898e-05/0.6433, allocations: 26.11 kB / 436.6 MB, free: 5.094 MB / 346.7 MB Notification: Performance of SimCode: time 1.573e-06/0.6433, allocations: 7.938 kB / 436.6 MB, free: 5.086 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03364/0.677, allocations: 6.911 MB / 443.5 MB, free: 14.14 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002836/0.6773, allocations: 147 kB / 443.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.554/3.232, allocations: 0 / 443.6 MB, free: 13.91 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S_res.mat does not exist to compare? outputFormat=mat