Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.976/1.976, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.382e-05/3.406e-05, allocations: 4 kB / 292.7 MB, free: 8.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1126, allocations: 50.42 MB / 343.2 MB, free: 5.828 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.444/0.5567, allocations: 82.95 MB / 426.1 MB, free: 10.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002642/0.557, allocations: 72.08 kB / 426.2 MB, free: 10.87 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09852/0.6555, allocations: 27.34 MB / 453.5 MB, free: 4.211 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.6556, allocations: 0 / 453.5 MB, free: 4.211 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.392e-05/0.6556, allocations: 4 kB / 453.5 MB, free: 4.207 MB / 362.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.0007092/0.6563, allocations: 0.6153 MB / 454.1 MB, free: 3.543 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.6564, allocations: 8.031 kB / 454.1 MB, free: 3.535 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.848e-05/0.6565, allocations: 45.36 kB / 454.2 MB, free: 3.484 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.6566, allocations: 43.48 kB / 454.2 MB, free: 3.441 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003963/0.657, allocations: 258.3 kB / 454.5 MB, free: 3.156 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.803e-05/0.657, allocations: 8 kB / 454.5 MB, free: 3.148 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.139e-05/0.6571, allocations: 6.938 kB / 454.5 MB, free: 3.145 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004081/0.6575, allocations: 144.4 kB / 454.6 MB, free: 3.016 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.6575, allocations: 0 / 454.6 MB, free: 3.016 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.158e-05/0.6576, allocations: 4 kB / 454.6 MB, free: 3.012 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.6576, allocations: 0 / 454.6 MB, free: 3.012 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002109/0.6578, allocations: 68.88 kB / 454.7 MB, free: 2.961 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.6589, allocations: 478.7 kB / 455.2 MB, free: 2.504 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002632/0.6592, allocations: 102.2 kB / 455.3 MB, free: 2.422 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002335/0.6594, allocations: 88.09 kB / 455.4 MB, free: 2.363 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.457e-05/0.6594, allocations: 7.938 kB / 455.4 MB, free: 2.355 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004309/0.6599, allocations: 225.2 kB / 455.6 MB, free: 2.133 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 3.016e-06/0.6599, allocations: 0 / 455.6 MB, free: 2.133 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.001046/0.661, allocations: 429.9 kB / 456 MB, free: 1.707 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.6611, allocations: 170.2 kB / 456.2 MB, free: 1.504 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009401/0.662, allocations: 462.5 kB / 456.6 MB, free: 1.043 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.392e-05/0.6621, allocations: 29.7 kB / 456.7 MB, free: 1.008 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.063e-05/0.6622, allocations: 105.1 kB / 456.8 MB, free: 0.9023 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.645e-05/0.6623, allocations: 27.66 kB / 456.8 MB, free: 0.875 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.286e-05/0.6623, allocations: 7.938 kB / 456.8 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.6625, allocations: 318.8 kB / 457.1 MB, free: 0.5469 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002098/0.6627, allocations: 67.97 kB / 457.2 MB, free: 492 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001952/0.6629, allocations: 59.98 kB / 457.2 MB, free: 432 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002612/0.6632, allocations: 174.6 kB / 457.4 MB, free: 232 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.6632, allocations: 0 / 457.4 MB, free: 232 kB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0009523/0.6642, allocations: 412.8 kB / 457.8 MB, free: 15.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001205/0.6643, allocations: 130.8 kB / 457.9 MB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.6644, allocations: 3.938 kB / 457.9 MB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.181e-05/0.6644, allocations: 3.953 kB / 457.9 MB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.441e-05/0.6644, allocations: 0 / 457.9 MB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.6644, allocations: 160 / 457.9 MB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000265/0.6647, allocations: 12 kB / 458 MB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001933/0.6649, allocations: 119.9 kB / 458.1 MB, free: 15.5 MB / 378.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.0002581/0.6652, allocations: 249.5 kB / 458.3 MB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.337e-05/0.6653, allocations: 39.53 kB / 458.4 MB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002252/0.6655, allocations: 71.27 kB / 458.4 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.6656, allocations: 3.953 kB / 458.4 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.6656, allocations: 0 / 458.4 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.615e-06/0.6656, allocations: 3.984 kB / 458.4 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001572/0.6672, allocations: 0.8409 MB / 459.3 MB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.6672, allocations: 0 / 459.3 MB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.294e-05/0.6672, allocations: 0 / 459.3 MB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.6673, allocations: 0 / 459.3 MB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.295e-05/0.6673, allocations: 23.94 kB / 459.3 MB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.6673, allocations: 4 kB / 459.3 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.6674, allocations: 0 / 459.3 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.6684, allocations: 0.5448 MB / 459.8 MB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005393/0.669, allocations: 252.4 kB / 460.1 MB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.601e-05/0.6691, allocations: 12 kB / 460.1 MB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002849/0.6694, allocations: 19.94 kB / 460.1 MB, free: 13.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/0.6696, allocations: 35.95 kB / 460.2 MB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001855/0.6698, allocations: 123.7 kB / 460.3 MB, free: 13.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009535/0.6707, allocations: 388.9 kB / 460.7 MB, free: 12.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.6708, allocations: 0 / 460.7 MB, free: 12.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004583/0.6712, allocations: 40 kB / 460.7 MB, free: 12.71 MB / 378.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.001453/0.6727, allocations: 1.117 MB / 461.8 MB, free: 11.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007511/0.6735, allocations: 437.6 kB / 462.2 MB, free: 11.06 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.6735, allocations: 0 / 462.2 MB, free: 11.06 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004673/0.674, allocations: 381.5 kB / 462.6 MB, free: 10.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000883/0.6749, allocations: 112.3 kB / 462.7 MB, free: 10.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001873/0.6768, allocations: 0.6109 MB / 463.3 MB, free: 9.879 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000546/0.6773, allocations: 0.8143 MB / 464.1 MB, free: 9.039 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.431e-05/0.6774, allocations: 4.672 kB / 464.2 MB, free: 9.031 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.27e-05/0.6775, allocations: 27.42 kB / 464.2 MB, free: 9.004 MB / 378.7 MB Notification: Performance of SimCode: time 1.222e-06/0.6775, allocations: 0 / 464.2 MB, free: 9.004 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03005/0.7076, allocations: 6.918 MB / 471.1 MB, free: 2.129 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002644/0.7079, allocations: 139.2 kB / 471.2 MB, free: 1.91 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.687/3.395, allocations: 0 / 471.2 MB, free: 1.91 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S_res.mat does not exist to compare? outputFormat=mat