Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.912/1.912, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.59e-05/2.593e-05, allocations: 4 kB / 255.5 MB, free: 2.633 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0961/0.09615, allocations: 44.5 MB / 300 MB, free: 6.074 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5141/0.6103, allocations: 77.88 MB / 377.9 MB, free: 12.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002907/0.6106, allocations: 71.14 kB / 377.9 MB, free: 12.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.123/0.7336, allocations: 27.92 MB / 405.8 MB, free: 8.445 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.7337, allocations: 0 / 405.8 MB, free: 8.445 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.632e-05/0.7337, allocations: 7.719 kB / 405.9 MB, free: 8.445 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.001643/0.7354, allocations: 1.011 MB / 406.9 MB, free: 7.566 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.829e-05/0.7354, allocations: 7.812 kB / 406.9 MB, free: 7.566 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002098/0.7357, allocations: 62.61 kB / 406.9 MB, free: 7.52 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002654/0.736, allocations: 93.67 kB / 407 MB, free: 7.469 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/0.7371, allocations: 420.8 kB / 407.4 MB, free: 7.18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.584e-05/0.7372, allocations: 18.69 kB / 407.5 MB, free: 7.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001459/0.7373, allocations: 22.31 kB / 407.5 MB, free: 7.18 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001564/0.7389, allocations: 0.5053 MB / 408 MB, free: 7.031 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.7389, allocations: 0 / 408 MB, free: 7.031 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001199/0.7391, allocations: 14.5 kB / 408 MB, free: 7.031 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.7391, allocations: 0 / 408 MB, free: 7.031 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.7402, allocations: 365.9 kB / 408.4 MB, free: 6.98 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002533/0.7428, allocations: 0.866 MB / 409.2 MB, free: 6.488 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.7442, allocations: 0.5039 MB / 409.7 MB, free: 6.414 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001253/0.7454, allocations: 0.4889 MB / 410.2 MB, free: 6.359 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.7455, allocations: 0 / 410.2 MB, free: 6.359 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001561/0.7471, allocations: 0.6545 MB / 410.9 MB, free: 6.043 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 4.358e-06/0.7471, allocations: 0 / 410.9 MB, free: 6.043 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.003382/0.7505, allocations: 1.174 MB / 412 MB, free: 5.617 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002209/0.7508, allocations: 275.3 kB / 412.3 MB, free: 5.328 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003272/0.7541, allocations: 1.034 MB / 413.3 MB, free: 4.914 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000268/0.7544, allocations: 44.97 kB / 413.4 MB, free: 4.879 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001759/0.7546, allocations: 144.7 kB / 413.5 MB, free: 4.789 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002301/0.7548, allocations: 84.53 kB / 413.6 MB, free: 4.738 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/0.755, allocations: 11.66 kB / 413.6 MB, free: 4.738 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.7551, allocations: 337.4 kB / 413.9 MB, free: 4.418 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001073/0.7562, allocations: 352.2 kB / 414.3 MB, free: 4.375 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/0.7573, allocations: 358.3 kB / 414.6 MB, free: 4.324 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009815/0.7583, allocations: 495.5 kB / 415.1 MB, free: 4.047 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.665e-06/0.7583, allocations: 4 kB / 415.1 MB, free: 4.043 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.003154/0.7615, allocations: 1.125 MB / 416.3 MB, free: 3.641 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002578/0.7618, allocations: 242.5 kB / 416.5 MB, free: 3.406 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.7618, allocations: 3.938 kB / 416.5 MB, free: 3.402 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.473e-05/0.7619, allocations: 0 / 416.5 MB, free: 3.402 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.995e-05/0.7619, allocations: 7.75 kB / 416.5 MB, free: 3.398 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.762, allocations: 0 / 416.5 MB, free: 3.398 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008846/0.7629, allocations: 41.72 kB / 416.5 MB, free: 3.387 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003083/0.7632, allocations: 155.1 kB / 416.7 MB, free: 3.371 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.0006155/0.7638, allocations: 400.9 kB / 417.1 MB, free: 3.016 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002995/0.7641, allocations: 89.44 kB / 417.2 MB, free: 2.973 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006508/0.7648, allocations: 147.8 kB / 417.3 MB, free: 2.898 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.7648, allocations: 0 / 417.3 MB, free: 2.898 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/0.7649, allocations: 7.969 kB / 417.3 MB, free: 2.891 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.7649, allocations: 7.656 kB / 417.3 MB, free: 2.887 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005226/0.7701, allocations: 1.959 MB / 419.3 MB, free: 1.996 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.7702, allocations: 3.938 kB / 419.3 MB, free: 1.996 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.33e-05/0.7702, allocations: 3.938 kB / 419.3 MB, free: 1.992 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.958e-06/0.7703, allocations: 0 / 419.3 MB, free: 1.992 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001527/0.7704, allocations: 37.75 kB / 419.3 MB, free: 1.984 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.7704, allocations: 0 / 419.3 MB, free: 1.984 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.7705, allocations: 0 / 419.3 MB, free: 1.984 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003671/0.7741, allocations: 1.38 MB / 420.7 MB, free: 1.434 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002028/0.7762, allocations: 0.5595 MB / 421.3 MB, free: 1.156 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000394/0.7767, allocations: 63.31 kB / 421.3 MB, free: 1.145 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008433/0.7775, allocations: 38.5 kB / 421.4 MB, free: 1.133 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008616/0.7784, allocations: 234 kB / 421.6 MB, free: 1.066 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000324/0.7788, allocations: 161 kB / 421.8 MB, free: 1.051 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002756/0.7816, allocations: 0.8543 MB / 422.6 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.072e-06/0.7816, allocations: 4 kB / 422.6 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001223/0.7828, allocations: 126.7 kB / 422.7 MB, free: 0.7188 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.003427/0.7863, allocations: 1.997 MB / 424.7 MB, free: 15.63 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002305/0.7886, allocations: 1.511 MB / 426.3 MB, free: 15.07 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.7887, allocations: 0 / 426.3 MB, free: 15.07 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001472/0.7902, allocations: 1.108 MB / 427.4 MB, free: 14.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001894/0.7921, allocations: 276.1 kB / 427.6 MB, free: 14.48 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004916/0.797, allocations: 1.89 MB / 429.5 MB, free: 13.79 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001036/0.7981, allocations: 1.037 MB / 430.6 MB, free: 12.93 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002351/0.7984, allocations: 40.67 kB / 430.6 MB, free: 12.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00013/0.7985, allocations: 74.23 kB / 430.7 MB, free: 12.9 MB / 330.7 MB Notification: Performance of SimCode: time 1.142e-06/0.7985, allocations: 0 / 430.7 MB, free: 12.9 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05608/0.8546, allocations: 16.44 MB / 447.1 MB, free: 14.52 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003035/0.855, allocations: 152 kB / 447.3 MB, free: 14.29 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.611/3.466, allocations: 7.938 kB / 447.3 MB, free: 14.28 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat