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 2.148/2.148, allocations: 194.9 MB / 208 MB, free: 3.191 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.569e-05/3.572e-05, allocations: 0 / 255.5 MB, free: 2.621 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09229/0.09237, allocations: 44.5 MB / 300 MB, free: 6.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4301/0.5225, allocations: 77.92 MB / 377.9 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/0.5229, allocations: 66.78 kB / 378 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1178/0.6407, allocations: 37.64 MB / 415.6 MB, free: 4.316 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.6408, allocations: 0 / 415.6 MB, free: 4.316 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.472e-05/0.6408, allocations: 7.75 kB / 415.6 MB, free: 4.316 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.001536/0.6424, allocations: 1.014 MB / 416.6 MB, free: 3.438 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.6424, allocations: 7.75 kB / 416.6 MB, free: 3.438 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000228/0.6427, allocations: 56.48 kB / 416.7 MB, free: 3.391 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000223/0.6429, allocations: 93.3 kB / 416.8 MB, free: 3.344 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008996/0.6438, allocations: 417.3 kB / 417.2 MB, free: 3.055 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.992e-05/0.6439, allocations: 18.56 kB / 417.2 MB, free: 3.055 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.6441, allocations: 26.38 kB / 417.2 MB, free: 3.055 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001158/0.6452, allocations: 0.5056 MB / 417.7 MB, free: 2.91 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.6453, allocations: 3.938 kB / 417.7 MB, free: 2.906 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.667e-05/0.6454, allocations: 13.5 kB / 417.7 MB, free: 2.906 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.6454, allocations: 3.875 kB / 417.8 MB, free: 2.906 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008134/0.6462, allocations: 365.5 kB / 418.1 MB, free: 2.852 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001966/0.6482, allocations: 0.8642 MB / 419 MB, free: 2.363 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.6493, allocations: 0.5059 MB / 419.5 MB, free: 2.285 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/0.6504, allocations: 0.4969 MB / 420 MB, free: 2.223 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.6505, allocations: 0 / 420 MB, free: 2.223 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00122/0.6517, allocations: 0.6517 MB / 420.6 MB, free: 1.91 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 6.021e-06/0.6518, allocations: 0 / 420.6 MB, free: 1.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.002523/0.6543, allocations: 1.176 MB / 421.8 MB, free: 1.48 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001633/0.6545, allocations: 283.9 kB / 422.1 MB, free: 1.188 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002238/0.6568, allocations: 1.023 MB / 423.1 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002147/0.6571, allocations: 44.81 kB / 423.1 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.6572, allocations: 146.2 kB / 423.3 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001788/0.6574, allocations: 76.56 kB / 423.4 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.334e-05/0.6575, allocations: 10.34 kB / 423.4 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.876e-05/0.6576, allocations: 341.6 kB / 423.7 MB, free: 296 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007917/0.6584, allocations: 352.9 kB / 424.1 MB, free: 248 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007571/0.6592, allocations: 357.2 kB / 424.4 MB, free: 196 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007511/0.66, allocations: 496.8 kB / 424.9 MB, free: 15.91 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/0.66, allocations: 3.953 kB / 424.9 MB, free: 15.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002391/0.6624, allocations: 1.123 MB / 426 MB, free: 15.51 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002564/0.6628, allocations: 242.6 kB / 426.3 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.6628, allocations: 0 / 426.3 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.6628, allocations: 3.938 kB / 426.3 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4e-05/0.6629, allocations: 1.438 kB / 426.3 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.6629, allocations: 0 / 426.3 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006665/0.6636, allocations: 45.91 kB / 426.3 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002351/0.6638, allocations: 154.4 kB / 426.5 MB, free: 15.24 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.0005762/0.6644, allocations: 415.2 kB / 426.9 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000235/0.6646, allocations: 85.44 kB / 426.9 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005017/0.6652, allocations: 155.9 kB / 427.1 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.241e-06/0.6652, allocations: 0 / 427.1 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.6652, allocations: 0 / 427.1 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.856e-06/0.6652, allocations: 3.984 kB / 427.1 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004053/0.6693, allocations: 1.957 MB / 429.1 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.665e-06/0.6694, allocations: 0 / 429.1 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.605e-05/0.6694, allocations: 3.812 kB / 429.1 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.576e-06/0.6694, allocations: 0 / 429.1 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001093/0.6695, allocations: 38.38 kB / 429.1 MB, free: 13.85 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.6695, allocations: 0 / 429.1 MB, free: 13.85 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.6696, allocations: 0 / 429.1 MB, free: 13.85 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002632/0.6722, allocations: 1.378 MB / 430.5 MB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00165/0.6739, allocations: 0.569 MB / 431 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002976/0.6742, allocations: 59.59 kB / 431.1 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005846/0.6748, allocations: 41.62 kB / 431.1 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006323/0.6755, allocations: 233.5 kB / 431.4 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002388/0.6758, allocations: 160.2 kB / 431.5 MB, free: 12.91 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002018/0.6778, allocations: 0.8635 MB / 432.4 MB, free: 12.58 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.303e-06/0.6779, allocations: 0 / 432.4 MB, free: 12.58 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009212/0.6788, allocations: 124.3 kB / 432.5 MB, free: 12.58 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.003301/0.6821, allocations: 2.002 MB / 434.5 MB, free: 11.48 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002699/0.6849, allocations: 1.506 MB / 436 MB, free: 10.43 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.6849, allocations: 0 / 436 MB, free: 10.43 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001888/0.6868, allocations: 1.116 MB / 437.1 MB, free: 9.234 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002117/0.689, allocations: 263.3 kB / 437.4 MB, free: 8.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005631/0.6947, allocations: 1.888 MB / 439.3 MB, free: 7.051 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001135/0.6959, allocations: 1.035 MB / 440.3 MB, free: 5.984 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002585/0.6962, allocations: 41.48 kB / 440.4 MB, free: 5.941 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001586/0.6964, allocations: 79.41 kB / 440.4 MB, free: 5.867 MB / 330.7 MB Notification: Performance of SimCode: time 1.543e-06/0.6964, allocations: 0 / 440.4 MB, free: 5.867 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05182/0.7482, allocations: 16.47 MB / 456.9 MB, free: 5.191 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002521/0.7485, allocations: 149.3 kB / 457 MB, free: 4.965 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.789/3.537, allocations: 0 / 457 MB, free: 4.965 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