Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.068/2.068, allocations: 225.8 MB / 238.8 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.323e-05/4.32e-05, allocations: 4 kB / 292.2 MB, free: 8.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1065, allocations: 50.41 MB / 342.6 MB, free: 5.824 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4468/0.5534, allocations: 83.24 MB / 425.9 MB, free: 10.95 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/0.5537, allocations: 69.25 kB / 425.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1009/0.6547, allocations: 28.25 MB / 454.2 MB, free: 3.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.6547, allocations: 3.938 kB / 454.2 MB, free: 3.246 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.828e-05/0.6548, allocations: 8 kB / 454.2 MB, free: 3.238 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001895/0.6567, allocations: 1.016 MB / 455.2 MB, free: 2.133 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.6568, allocations: 8.031 kB / 455.2 MB, free: 2.125 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002381/0.657, allocations: 66.48 kB / 455.3 MB, free: 2.051 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002339/0.6573, allocations: 86.97 kB / 455.4 MB, free: 1.965 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009507/0.6582, allocations: 423.6 kB / 455.8 MB, free: 1.512 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.194e-05/0.6583, allocations: 16 kB / 455.8 MB, free: 1.496 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.6585, allocations: 27.95 kB / 455.8 MB, free: 1.469 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.6598, allocations: 0.506 MB / 456.3 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.6599, allocations: 0 / 456.3 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.009e-05/0.66, allocations: 15.98 kB / 456.4 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.66, allocations: 8 kB / 456.4 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00092/0.6609, allocations: 352.2 kB / 456.7 MB, free: 0.5859 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00221/0.6632, allocations: 0.8636 MB / 457.6 MB, free: 15.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/0.6645, allocations: 0.5062 MB / 458.1 MB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001155/0.6657, allocations: 495.2 kB / 458.6 MB, free: 14.67 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.969e-05/0.6658, allocations: 4 kB / 458.6 MB, free: 14.67 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001428/0.6672, allocations: 0.6446 MB / 459.2 MB, free: 13.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 4.369e-06/0.6673, allocations: 3.938 kB / 459.2 MB, free: 13.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002929/0.6702, allocations: 1.183 MB / 460.4 MB, free: 12.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002395/0.6705, allocations: 283.2 kB / 460.7 MB, free: 12.42 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002699/0.6732, allocations: 1.027 MB / 461.7 MB, free: 11.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002331/0.6735, allocations: 41.7 kB / 461.7 MB, free: 11.33 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001884/0.6737, allocations: 146 kB / 461.9 MB, free: 11.19 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002121/0.6739, allocations: 75.09 kB / 462 MB, free: 11.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.924e-05/0.674, allocations: 15.98 kB / 462 MB, free: 11.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.6742, allocations: 346.8 kB / 462.3 MB, free: 10.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000955/0.6752, allocations: 352.2 kB / 462.7 MB, free: 10.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000953/0.6762, allocations: 352.5 kB / 463 MB, free: 10.06 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009815/0.6772, allocations: 497.1 kB / 463.5 MB, free: 9.535 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.6772, allocations: 0 / 463.5 MB, free: 9.535 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002767/0.68, allocations: 1.118 MB / 464.6 MB, free: 8.367 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002827/0.6803, allocations: 247.8 kB / 464.9 MB, free: 8.082 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.6804, allocations: 0 / 464.9 MB, free: 8.082 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.497e-05/0.6804, allocations: 4 kB / 464.9 MB, free: 8.078 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.709e-05/0.6804, allocations: 11.94 kB / 464.9 MB, free: 8.066 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.6805, allocations: 0 / 464.9 MB, free: 8.066 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006322/0.6811, allocations: 39.88 kB / 464.9 MB, free: 8.027 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002808/0.6814, allocations: 156.1 kB / 465.1 MB, free: 7.875 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: 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.0005758/0.682, allocations: 410 kB / 465.5 MB, free: 7.422 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002378/0.6823, allocations: 90.97 kB / 465.5 MB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000512/0.6828, allocations: 151.8 kB / 465.7 MB, free: 7.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.6828, allocations: 0 / 465.7 MB, free: 7.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.6828, allocations: 4 kB / 465.7 MB, free: 7.176 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.6828, allocations: 7.922 kB / 465.7 MB, free: 7.168 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004506/0.6874, allocations: 1.95 MB / 467.7 MB, free: 5.117 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/0.6874, allocations: 0 / 467.7 MB, free: 5.117 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.762e-05/0.6875, allocations: 3.938 kB / 467.7 MB, free: 5.113 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.237e-05/0.6875, allocations: 3.953 kB / 467.7 MB, free: 5.109 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001202/0.6876, allocations: 43.97 kB / 467.7 MB, free: 5.066 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.6876, allocations: 4 kB / 467.7 MB, free: 5.062 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.6876, allocations: 0 / 467.7 MB, free: 5.062 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002973/0.6906, allocations: 1.369 MB / 469.1 MB, free: 3.633 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00172/0.6924, allocations: 0.5621 MB / 469.6 MB, free: 3.051 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003025/0.6928, allocations: 59.92 kB / 469.7 MB, free: 2.992 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005956/0.6934, allocations: 43.86 kB / 469.7 MB, free: 2.949 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007094/0.6941, allocations: 239.7 kB / 470 MB, free: 2.715 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002831/0.6944, allocations: 159.9 kB / 470.1 MB, free: 2.559 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00214/0.6965, allocations: 0.8539 MB / 471 MB, free: 1.711 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.052e-06/0.6966, allocations: 0 / 471 MB, free: 1.711 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008914/0.6975, allocations: 124 kB / 471.1 MB, free: 1.59 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: 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.003567/0.7011, allocations: 1.997 MB / 473.1 MB, free: 15.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002931/0.7041, allocations: 1.511 MB / 474.6 MB, free: 13.92 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.7042, allocations: 0 / 474.6 MB, free: 13.92 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001908/0.7061, allocations: 1.105 MB / 475.7 MB, free: 12.73 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002177/0.7083, allocations: 285.4 kB / 476 MB, free: 12.46 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005528/0.7139, allocations: 1.891 MB / 477.9 MB, free: 10.52 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/0.7151, allocations: 1.038 MB / 478.9 MB, free: 9.457 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002797/0.7154, allocations: 41.5 kB / 479 MB, free: 9.414 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001589/0.7156, allocations: 79.41 kB / 479 MB, free: 9.336 MB / 394.7 MB Notification: Performance of SimCode: time 1.222e-06/0.7156, allocations: 0 / 479 MB, free: 9.336 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05033/0.7659, allocations: 16.45 MB / 495.5 MB, free: 8.789 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003244/0.7663, allocations: 140.1 kB / 495.6 MB, free: 8.57 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.779/3.545, allocations: 0 / 495.6 MB, free: 8.57 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat