Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.089/2.089, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.99e-05/2.998e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1065, allocations: 44.51 MB / 300 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3983/0.5049, allocations: 77.87 MB / 377.8 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002827/0.5052, allocations: 71.12 kB / 377.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08509/0.5903, allocations: 27.92 MB / 405.8 MB, free: 8.562 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.5904, allocations: 4 kB / 405.8 MB, free: 8.559 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.532e-05/0.5904, allocations: 15.59 kB / 405.8 MB, free: 8.555 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.001099/0.5915, allocations: 1.006 MB / 406.8 MB, free: 7.676 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.5916, allocations: 11.66 kB / 406.8 MB, free: 7.676 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001175/0.5917, allocations: 57.64 kB / 406.9 MB, free: 7.633 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001678/0.5919, allocations: 92.58 kB / 407 MB, free: 7.586 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007195/0.5926, allocations: 417.6 kB / 407.4 MB, free: 7.297 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.954e-05/0.5927, allocations: 15.59 kB / 407.4 MB, free: 7.297 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.5928, allocations: 23.44 kB / 407.4 MB, free: 7.297 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.5939, allocations: 0.5048 MB / 407.9 MB, free: 7.148 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.5939, allocations: 3.875 kB / 408 MB, free: 7.148 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.356e-05/0.594, allocations: 19.3 kB / 408 MB, free: 7.145 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.594, allocations: 0 / 408 MB, free: 7.145 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007219/0.5947, allocations: 357.9 kB / 408.3 MB, free: 7.098 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001699/0.5964, allocations: 0.8807 MB / 409.2 MB, free: 6.594 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008587/0.5973, allocations: 0.4936 MB / 409.7 MB, free: 6.527 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007934/0.5981, allocations: 0.4916 MB / 410.2 MB, free: 6.473 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.5982, allocations: 0 / 410.2 MB, free: 6.473 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009997/0.5992, allocations: 0.6537 MB / 410.8 MB, free: 6.156 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 2.845e-06/0.5992, allocations: 0 / 410.8 MB, free: 6.156 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.002222/0.6014, allocations: 1.172 MB / 412 MB, free: 5.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001462/0.6016, allocations: 274.7 kB / 412.3 MB, free: 5.441 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001998/0.6036, allocations: 1.03 MB / 413.3 MB, free: 5.031 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001955/0.6038, allocations: 40.45 kB / 413.3 MB, free: 5 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.604, allocations: 204.9 kB / 413.5 MB, free: 4.84 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001594/0.6041, allocations: 76.25 kB / 413.6 MB, free: 4.797 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.128e-05/0.6042, allocations: 14.88 kB / 413.6 MB, free: 4.793 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.764e-05/0.6043, allocations: 325.1 kB / 414 MB, free: 4.477 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007133/0.605, allocations: 348.8 kB / 414.3 MB, free: 4.434 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007231/0.6058, allocations: 357.1 kB / 414.6 MB, free: 4.387 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006622/0.6064, allocations: 498.8 kB / 415.1 MB, free: 4.105 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.6065, allocations: 0 / 415.1 MB, free: 4.105 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001997/0.6085, allocations: 1.102 MB / 416.2 MB, free: 3.715 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001829/0.6087, allocations: 246.2 kB / 416.5 MB, free: 3.477 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.6087, allocations: 0 / 416.5 MB, free: 3.477 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.299e-05/0.6087, allocations: 7.938 kB / 416.5 MB, free: 3.469 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.669e-05/0.6088, allocations: 7.812 kB / 416.5 MB, free: 3.465 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.6088, allocations: 0 / 416.5 MB, free: 3.465 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005875/0.6094, allocations: 39.09 kB / 416.5 MB, free: 3.453 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002153/0.6096, allocations: 154.9 kB / 416.7 MB, free: 3.438 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: 40 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,$PRE.dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.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.0004246/0.6101, allocations: 404 kB / 417.1 MB, free: 3.086 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001798/0.6103, allocations: 89.62 kB / 417.2 MB, free: 3.043 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004565/0.6107, allocations: 159.9 kB / 417.3 MB, free: 2.957 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.6107, allocations: 0 / 417.3 MB, free: 2.957 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-06/0.6108, allocations: 0 / 417.3 MB, free: 2.957 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.6108, allocations: 3.984 kB / 417.3 MB, free: 2.953 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003282/0.6141, allocations: 1.953 MB / 419.3 MB, free: 2.066 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.6141, allocations: 0 / 419.3 MB, free: 2.066 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.322e-05/0.6142, allocations: 11.84 kB / 419.3 MB, free: 2.059 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.013e-06/0.6142, allocations: 0 / 419.3 MB, free: 2.059 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.816e-05/0.6143, allocations: 38.75 kB / 419.3 MB, free: 2.051 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.6143, allocations: 0 / 419.3 MB, free: 2.051 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.6143, allocations: 0 / 419.3 MB, free: 2.051 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002363/0.6167, allocations: 1.375 MB / 420.7 MB, free: 1.508 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001424/0.6181, allocations: 0.5629 MB / 421.3 MB, free: 1.227 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002639/0.6184, allocations: 57.28 kB / 421.3 MB, free: 1.219 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005393/0.619, allocations: 42.72 kB / 421.4 MB, free: 1.203 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005615/0.6196, allocations: 240.5 kB / 421.6 MB, free: 1.137 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002037/0.6198, allocations: 155.2 kB / 421.7 MB, free: 1.121 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001655/0.6214, allocations: 0.8582 MB / 422.6 MB, free: 0.793 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.11e-07/0.6215, allocations: 0 / 422.6 MB, free: 0.793 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007072/0.6222, allocations: 128.4 kB / 422.7 MB, free: 0.7891 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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.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.00288/0.6251, allocations: 1.999 MB / 424.7 MB, free: 15.7 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002349/0.6275, allocations: 1.512 MB / 426.2 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.6275, allocations: 0 / 426.2 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001504/0.629, allocations: 1.111 MB / 427.4 MB, free: 14.64 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001893/0.6309, allocations: 276.5 kB / 427.6 MB, free: 14.55 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004843/0.6358, allocations: 1.96 MB / 429.6 MB, free: 13.82 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/0.6369, allocations: 1.042 MB / 430.6 MB, free: 12.96 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001477/0.6371, allocations: 77.17 kB / 430.7 MB, free: 12.95 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.6371, allocations: 0 / 430.7 MB, free: 12.95 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.635/3.272, allocations: 9.447 MB / 440.1 MB, free: 5.977 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat