Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.946/1.946, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.147e-05/2.158e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.293, allocations: 44.49 MB / 294.2 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1343/0.4274, allocations: 77.25 MB / 371.4 MB, free: 4.738 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/0.4277, allocations: 71.95 kB / 371.5 MB, free: 4.668 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1234/0.5511, allocations: 37.39 MB / 408.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5511, allocations: 0 / 408.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.775e-05/0.5512, allocations: 11.94 kB / 408.9 MB, free: 15.27 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.001409/0.5526, allocations: 1.008 MB / 409.9 MB, free: 14.17 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.5527, allocations: 8.031 kB / 409.9 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002092/0.5529, allocations: 94.95 kB / 410 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008374/0.5537, allocations: 419.5 kB / 410.4 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.504e-05/0.5538, allocations: 24 kB / 410.5 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.5539, allocations: 16 kB / 410.5 MB, free: 13.58 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008053/0.5547, allocations: 344.1 kB / 410.8 MB, free: 13.24 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001096/0.5559, allocations: 498.2 kB / 411.3 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.5559, allocations: 11.92 kB / 411.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.537e-05/0.556, allocations: 11.98 kB / 411.3 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.556, allocations: 0 / 411.3 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001916/0.5579, allocations: 0.8248 MB / 412.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000999/0.559, allocations: 0.4906 MB / 412.6 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009583/0.5599, allocations: 484.7 kB / 413.1 MB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.133e-05/0.56, allocations: 0 / 413.1 MB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001224/0.5612, allocations: 0.6587 MB / 413.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 3.045e-06/0.5612, allocations: 0 / 413.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.002336/0.5636, allocations: 0.9212 MB / 414.7 MB, free: 9.258 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002125/0.5638, allocations: 279.3 kB / 415 MB, free: 8.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002143/0.566, allocations: 0.9801 MB / 415.9 MB, free: 7.941 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001481/0.5661, allocations: 41.69 kB / 416 MB, free: 7.895 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.5663, allocations: 196.5 kB / 416.2 MB, free: 7.699 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.5665, allocations: 75.16 kB / 416.2 MB, free: 7.625 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.713e-05/0.5666, allocations: 12 kB / 416.3 MB, free: 7.613 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.5667, allocations: 322.8 kB / 416.6 MB, free: 7.289 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007553/0.5675, allocations: 344.1 kB / 416.9 MB, free: 6.953 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000725/0.5682, allocations: 336.4 kB / 417.2 MB, free: 6.625 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005239/0.5687, allocations: 245.1 kB / 417.5 MB, free: 6.387 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.5688, allocations: 0 / 417.5 MB, free: 6.387 MB / 362.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002/0.5708, allocations: 0.8412 MB / 418.3 MB, free: 5.539 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000239/0.571, allocations: 247.9 kB / 418.6 MB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.5711, allocations: 0 / 418.6 MB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.11e-05/0.5711, allocations: 3.984 kB / 418.6 MB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.588e-05/0.5711, allocations: 4 kB / 418.6 MB, free: 5.246 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.5711, allocations: 0 / 418.6 MB, free: 5.246 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005739/0.5717, allocations: 35.91 kB / 418.6 MB, free: 5.211 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002532/0.572, allocations: 148.2 kB / 418.7 MB, free: 5.066 MB / 362.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.0005226/0.5725, allocations: 413.8 kB / 419.2 MB, free: 4.613 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002323/0.5749, allocations: 0.9805 MB / 420.1 MB, free: 3.625 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001766/0.5751, allocations: 90.97 kB / 420.2 MB, free: 3.535 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004881/0.5756, allocations: 148.1 kB / 420.4 MB, free: 3.387 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.5756, allocations: 3.938 kB / 420.4 MB, free: 3.383 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.146e-06/0.5756, allocations: 4 kB / 420.4 MB, free: 3.379 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.5756, allocations: 0 / 420.4 MB, free: 3.379 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003375/0.579, allocations: 1.615 MB / 422 MB, free: 1.719 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.579, allocations: 3.938 kB / 422 MB, free: 1.715 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.212e-05/0.5791, allocations: 3.984 kB / 422 MB, free: 1.711 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.223e-06/0.5791, allocations: 4 kB / 422 MB, free: 1.707 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.5792, allocations: 31.98 kB / 422 MB, free: 1.676 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.5792, allocations: 4 kB / 422 MB, free: 1.672 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.5792, allocations: 0 / 422 MB, free: 1.672 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002395/0.5816, allocations: 1.084 MB / 423.1 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2415/0.8231, allocations: 0.5582 MB / 423.7 MB, free: 108.4 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005263/0.8237, allocations: 57.45 kB / 423.7 MB, free: 108.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006081/0.8243, allocations: 34.67 kB / 423.8 MB, free: 108.4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008156/0.8252, allocations: 240.9 kB / 424 MB, free: 108.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000375/0.8256, allocations: 156 kB / 424.2 MB, free: 108.4 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002022/0.8276, allocations: 0.817 MB / 425 MB, free: 108.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.8276, allocations: 0 / 425 MB, free: 108.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008473/0.8285, allocations: 124.8 kB / 425.1 MB, free: 108.2 MB / 362.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.002782/0.8313, allocations: 1.707 MB / 426.8 MB, free: 107.6 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002202/0.8335, allocations: 1.484 MB / 428.3 MB, free: 107.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.8336, allocations: 0 / 428.3 MB, free: 107.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001395/0.835, allocations: 1.096 MB / 429.4 MB, free: 106.7 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001904/0.8369, allocations: 277.5 kB / 429.7 MB, free: 106.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004731/0.8417, allocations: 1.94 MB / 431.6 MB, free: 106.2 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008855/0.8426, allocations: 1.039 MB / 432.6 MB, free: 105.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.8427, allocations: 78.36 kB / 432.7 MB, free: 105.4 MB / 362.7 MB Notification: Performance of SimCode: time 9.22e-07/0.8428, allocations: 1.219 kB / 432.7 MB, free: 105.4 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.626/3.468, allocations: 9.444 MB / 442.2 MB, free: 103.7 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat does not exist to compare? outputFormat=mat