Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.317/2.317, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.671e-05/2.673e-05, allocations: 3.438 kB / 249.8 MB, free: 5.223 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1002, allocations: 44.51 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4555/0.5558, allocations: 77.25 MB / 371.5 MB, free: 7.215 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003325/0.5562, allocations: 67.14 kB / 371.6 MB, free: 7.215 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1497/0.7059, allocations: 37.41 MB / 409 MB, free: 10.63 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.7059, allocations: 0 / 409 MB, free: 10.63 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.412e-05/0.706, allocations: 16 kB / 409 MB, free: 10.62 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.001622/0.7076, allocations: 1.005 MB / 410 MB, free: 9.574 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.494e-05/0.7077, allocations: 12.03 kB / 410 MB, free: 9.562 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000279/0.708, allocations: 86.97 kB / 410.1 MB, free: 9.477 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/0.709, allocations: 421.5 kB / 410.5 MB, free: 9.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.057e-05/0.7091, allocations: 15.94 kB / 410.6 MB, free: 9.059 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001451/0.7092, allocations: 23.98 kB / 410.6 MB, free: 9.035 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009956/0.7102, allocations: 342.3 kB / 410.9 MB, free: 8.801 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001321/0.7116, allocations: 0.4944 MB / 411.4 MB, free: 8.41 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.7116, allocations: 0 / 411.4 MB, free: 8.41 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001072/0.7117, allocations: 15.33 kB / 411.4 MB, free: 8.402 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.7118, allocations: 4 kB / 411.4 MB, free: 8.398 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002376/0.7142, allocations: 0.8186 MB / 412.2 MB, free: 7.711 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001101/0.7153, allocations: 497.7 kB / 412.7 MB, free: 7.414 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001023/0.7163, allocations: 492 kB / 413.2 MB, free: 7.129 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.7164, allocations: 4 kB / 413.2 MB, free: 7.125 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001436/0.7178, allocations: 0.6521 MB / 413.9 MB, free: 6.555 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.577e-06/0.7178, allocations: 0 / 413.9 MB, free: 6.555 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.002758/0.7206, allocations: 0.9112 MB / 414.8 MB, free: 5.84 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000258/0.7209, allocations: 284.5 kB / 415.1 MB, free: 5.52 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002606/0.7235, allocations: 0.9868 MB / 416 MB, free: 4.711 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001467/0.7237, allocations: 37.7 kB / 416.1 MB, free: 4.672 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001847/0.7239, allocations: 149.5 kB / 416.2 MB, free: 4.559 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001961/0.7241, allocations: 75.92 kB / 416.3 MB, free: 4.5 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.004e-05/0.7242, allocations: 15.94 kB / 416.3 MB, free: 4.484 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002116/0.7244, allocations: 354 kB / 416.7 MB, free: 4.145 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009151/0.7254, allocations: 332 kB / 417 MB, free: 3.926 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009302/0.7263, allocations: 341.8 kB / 417.3 MB, free: 3.629 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006469/0.727, allocations: 237.5 kB / 417.6 MB, free: 3.398 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.251e-06/0.727, allocations: 3.984 kB / 417.6 MB, free: 3.395 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00253/0.7295, allocations: 0.8563 MB / 418.4 MB, free: 2.531 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003126/0.7299, allocations: 239.9 kB / 418.6 MB, free: 2.254 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.7299, allocations: 0 / 418.6 MB, free: 2.254 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.941e-05/0.7299, allocations: 4 kB / 418.7 MB, free: 2.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.744e-05/0.73, allocations: 7.984 kB / 418.7 MB, free: 2.242 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.73, allocations: 0 / 418.7 MB, free: 2.242 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006585/0.7307, allocations: 39.88 kB / 418.7 MB, free: 2.203 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003131/0.731, allocations: 148.2 kB / 418.8 MB, free: 2.059 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.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.000655/0.7317, allocations: 413.7 kB / 419.2 MB, free: 1.605 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002879/0.7346, allocations: 0.9725 MB / 420.2 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002333/0.7348, allocations: 90.97 kB / 420.3 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005565/0.7354, allocations: 156.1 kB / 420.5 MB, free: 392 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/0.7354, allocations: 4 kB / 420.5 MB, free: 388 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.7355, allocations: 7.938 kB / 420.5 MB, free: 380 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.7355, allocations: 0 / 420.5 MB, free: 380 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004115/0.7396, allocations: 1.611 MB / 422.1 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.7396, allocations: 4 kB / 422.1 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.34e-05/0.7397, allocations: 11.98 kB / 422.1 MB, free: 14.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.7397, allocations: 0 / 422.1 MB, free: 14.7 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001319/0.7398, allocations: 35.98 kB / 422.1 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.7398, allocations: 0 / 422.1 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.7399, allocations: 0 / 422.1 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002852/0.7427, allocations: 1.076 MB / 423.2 MB, free: 13.57 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00168/0.7444, allocations: 0.5659 MB / 423.8 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000341/0.7448, allocations: 63.95 kB / 423.8 MB, free: 12.92 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006683/0.7455, allocations: 31.97 kB / 423.9 MB, free: 12.89 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000786/0.7463, allocations: 235.7 kB / 424.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003238/0.7466, allocations: 159.6 kB / 424.3 MB, free: 12.51 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00202/0.7487, allocations: 0.8187 MB / 425.1 MB, free: 11.69 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7487, allocations: 0 / 425.1 MB, free: 11.69 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008605/0.7495, allocations: 120 kB / 425.2 MB, free: 11.57 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.003631/0.7532, allocations: 1.72 MB / 426.9 MB, free: 9.824 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003045/0.7563, allocations: 1.476 MB / 428.4 MB, free: 8.262 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.7564, allocations: 0 / 428.4 MB, free: 8.262 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001934/0.7583, allocations: 1.097 MB / 429.5 MB, free: 7.078 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002409/0.7607, allocations: 276.3 kB / 429.8 MB, free: 6.816 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006001/0.7668, allocations: 1.865 MB / 431.6 MB, free: 4.906 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001392/0.7682, allocations: 1.042 MB / 432.7 MB, free: 3.832 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002855/0.7686, allocations: 49.67 kB / 432.7 MB, free: 3.781 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001715/0.7688, allocations: 75.41 kB / 432.8 MB, free: 3.711 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.7688, allocations: 0 / 432.8 MB, free: 3.711 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07558/0.8444, allocations: 15.7 MB / 448.5 MB, free: 3.801 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003984/0.8448, allocations: 135.1 kB / 448.6 MB, free: 3.609 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.368/4.213, allocations: 4 kB / 448.6 MB, free: 3.605 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat does not exist to compare? outputFormat=mat