Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.88/1.88, allocations: 194.9 MB / 208 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.063e-05/4.073e-05, allocations: 7.984 kB / 255.4 MB, free: 2.605 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1072, allocations: 44.5 MB / 300 MB, free: 6.039 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4234/0.5306, allocations: 77.91 MB / 377.9 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002761/0.5309, allocations: 66.28 kB / 377.9 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1277/0.6587, allocations: 37.63 MB / 415.6 MB, free: 4.359 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.6588, allocations: 0 / 415.6 MB, free: 4.359 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.635e-05/0.6588, allocations: 15.69 kB / 415.6 MB, free: 4.355 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001072/0.6599, allocations: 1.02 MB / 416.6 MB, free: 3.473 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.6599, allocations: 7.625 kB / 416.6 MB, free: 3.473 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001217/0.6601, allocations: 57.11 kB / 416.7 MB, free: 3.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002164/0.6603, allocations: 89.3 kB / 416.8 MB, free: 3.383 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007587/0.6611, allocations: 419 kB / 417.2 MB, free: 3.094 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.127e-05/0.6611, allocations: 15 kB / 417.2 MB, free: 3.094 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.837e-05/0.6613, allocations: 32.12 kB / 417.2 MB, free: 3.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/0.6623, allocations: 0.5066 MB / 417.7 MB, free: 2.941 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.6624, allocations: 0 / 417.7 MB, free: 2.941 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.937e-05/0.6624, allocations: 23.12 kB / 417.7 MB, free: 2.934 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.6625, allocations: 0 / 417.7 MB, free: 2.934 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007203/0.6632, allocations: 358.3 kB / 418.1 MB, free: 2.887 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001774/0.665, allocations: 0.862 MB / 418.9 MB, free: 2.402 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008486/0.6659, allocations: 0.5042 MB / 419.5 MB, free: 2.328 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007899/0.6667, allocations: 499.8 kB / 419.9 MB, free: 2.273 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.47e-05/0.6667, allocations: 0 / 419.9 MB, free: 2.273 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001025/0.6677, allocations: 0.6532 MB / 420.6 MB, free: 1.961 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 2.735e-06/0.6678, allocations: 4 kB / 420.6 MB, free: 1.957 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.002255/0.67, allocations: 1.177 MB / 421.8 MB, free: 1.527 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001411/0.6702, allocations: 278.4 kB / 422 MB, free: 1.238 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001959/0.6722, allocations: 1.026 MB / 423.1 MB, free: 0.832 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000174/0.6724, allocations: 40.81 kB / 423.1 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.6725, allocations: 149.5 kB / 423.3 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001517/0.6727, allocations: 77.23 kB / 423.3 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.123e-05/0.6728, allocations: 11.31 kB / 423.3 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.837e-05/0.6729, allocations: 344.6 kB / 423.7 MB, free: 344 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007031/0.6736, allocations: 354.6 kB / 424 MB, free: 292 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006706/0.6743, allocations: 352.5 kB / 424.4 MB, free: 248 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006871/0.675, allocations: 0.4907 MB / 424.9 MB, free: 15.96 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.675, allocations: 0 / 424.9 MB, free: 15.96 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002212/0.6772, allocations: 1.126 MB / 426 MB, free: 15.55 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000243/0.6775, allocations: 244 kB / 426.2 MB, free: 15.31 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.6775, allocations: 0 / 426.2 MB, free: 15.31 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.6776, allocations: 0 / 426.2 MB, free: 15.31 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.855e-05/0.6776, allocations: 3.844 kB / 426.2 MB, free: 15.31 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.6776, allocations: 4 kB / 426.2 MB, free: 15.31 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005584/0.6782, allocations: 43.44 kB / 426.3 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002085/0.6784, allocations: 150.4 kB / 426.4 MB, free: 15.28 MB / 330.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: 40 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGL.dFFR.reset,dFFREGL.dFFR.reset,$PRE.dFFREGL.dFFR.clock,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 7 * 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.0005085/0.6789, allocations: 419.3 kB / 426.8 MB, free: 14.92 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001792/0.6791, allocations: 84.69 kB / 426.9 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004528/0.6796, allocations: 147.1 kB / 427.1 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.655e-06/0.6796, allocations: 11.61 kB / 427.1 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.6796, allocations: 0 / 427.1 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.6796, allocations: 0 / 427.1 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003538/0.6832, allocations: 1.95 MB / 429 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.6832, allocations: 3.984 kB / 429 MB, free: 13.9 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.032e-05/0.6833, allocations: 3.875 kB / 429 MB, free: 13.9 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.6833, allocations: 0 / 429 MB, free: 13.9 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001044/0.6834, allocations: 50.56 kB / 429.1 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.6834, allocations: 0 / 429.1 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.6834, allocations: 0 / 429.1 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002602/0.686, allocations: 1.375 MB / 430.5 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001478/0.6875, allocations: 0.5664 MB / 431 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002524/0.6878, allocations: 61.09 kB / 431.1 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005658/0.6884, allocations: 37.31 kB / 431.1 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000614/0.689, allocations: 243.9 kB / 431.4 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002171/0.6893, allocations: 155.4 kB / 431.5 MB, free: 12.95 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001861/0.6911, allocations: 0.8588 MB / 432.4 MB, free: 12.62 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6912, allocations: 0 / 432.4 MB, free: 12.62 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007568/0.6919, allocations: 124.2 kB / 432.5 MB, free: 12.62 MB / 330.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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.dFFR.reset,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.next_assign_val[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.clock,dFFREGL.dFFR.reset,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGL.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 7 * 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.003241/0.6952, allocations: 2.001 MB / 434.5 MB, free: 11.52 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002589/0.6978, allocations: 1.508 MB / 436 MB, free: 10.41 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.6979, allocations: 0 / 436 MB, free: 10.41 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001769/0.6997, allocations: 1.113 MB / 437.1 MB, free: 9.207 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002018/0.7017, allocations: 271.1 kB / 437.4 MB, free: 8.949 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005345/0.7071, allocations: 1.891 MB / 439.3 MB, free: 7.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00117/0.7083, allocations: 1.039 MB / 440.3 MB, free: 5.949 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002506/0.7086, allocations: 46.17 kB / 440.3 MB, free: 5.902 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.7087, allocations: 71.42 kB / 440.4 MB, free: 5.836 MB / 330.7 MB Notification: Performance of SimCode: time 1.443e-06/0.7087, allocations: 0 / 440.4 MB, free: 5.836 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06796/0.7767, allocations: 16.46 MB / 456.9 MB, free: 5.168 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003429/0.7771, allocations: 162.2 kB / 457 MB, free: 4.934 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.713/3.49, allocations: 0 / 457 MB, free: 4.934 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat does not exist to compare? outputFormat=mat