Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.71/1.71, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.113e-05/3.119e-05, allocations: 4 kB / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2532, allocations: 38.78 MB / 263.9 MB, free: 9.766 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1285/0.3818, allocations: 72.61 MB / 336.5 MB, free: 1.051 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002592/0.3821, allocations: 71.95 kB / 336.5 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3385/0.7206, allocations: 37.48 MB / 374 MB, free: 90.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.7206, allocations: 3.625 kB / 374 MB, free: 90.23 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.527e-05/0.7207, allocations: 14.72 kB / 374 MB, free: 90.23 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.001069/0.7218, allocations: 1.012 MB / 375 MB, free: 89.61 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.7218, allocations: 7.094 kB / 375 MB, free: 89.61 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001102/0.7219, allocations: 56.25 kB / 375.1 MB, free: 89.57 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001668/0.7221, allocations: 91.56 kB / 375.2 MB, free: 89.53 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007131/0.7228, allocations: 422.6 kB / 375.6 MB, free: 89.26 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.989e-05/0.7229, allocations: 15.62 kB / 375.6 MB, free: 89.26 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/0.723, allocations: 27.69 kB / 375.6 MB, free: 89.26 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.724, allocations: 0.4992 MB / 376.1 MB, free: 89.22 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.7241, allocations: 3.844 kB / 376.1 MB, free: 89.22 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.124e-05/0.7242, allocations: 14.25 kB / 376.2 MB, free: 89.22 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.7242, allocations: 0 / 376.2 MB, free: 89.22 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007088/0.7249, allocations: 351.2 kB / 376.5 MB, free: 89.22 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001624/0.7265, allocations: 0.8622 MB / 377.4 MB, free: 88.9 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008257/0.7274, allocations: 0.4967 MB / 377.9 MB, free: 88.88 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007799/0.7282, allocations: 495.2 kB / 378.3 MB, free: 88.87 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.491e-05/0.7282, allocations: 0 / 378.3 MB, free: 88.87 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009877/0.7292, allocations: 0.6408 MB / 379 MB, free: 88.68 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 2.495e-06/0.7292, allocations: 0 / 379 MB, free: 88.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.002196/0.7314, allocations: 1.152 MB / 380.1 MB, free: 88.39 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001429/0.7316, allocations: 286.3 kB / 380.4 MB, free: 88.11 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001814/0.7334, allocations: 1.022 MB / 381.4 MB, free: 87.64 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.776e-05/0.7335, allocations: 41.55 kB / 381.5 MB, free: 87.61 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.66e-05/0.7336, allocations: 197.2 kB / 381.7 MB, free: 87.42 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.7338, allocations: 84.36 kB / 381.8 MB, free: 87.37 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.98e-05/0.7339, allocations: 7.875 kB / 381.8 MB, free: 87.37 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.769e-05/0.734, allocations: 330.7 kB / 382.1 MB, free: 87.05 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006701/0.7346, allocations: 338.7 kB / 382.4 MB, free: 86.94 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006629/0.7353, allocations: 345 kB / 382.8 MB, free: 86.83 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006223/0.736, allocations: 492.1 kB / 383.2 MB, free: 86.51 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.736, allocations: 0 / 383.2 MB, free: 86.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001947/0.7379, allocations: 1.09 MB / 384.3 MB, free: 86.01 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001699/0.7381, allocations: 252.4 kB / 384.6 MB, free: 85.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.7381, allocations: 3.75 kB / 384.6 MB, free: 85.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.7382, allocations: 0 / 384.6 MB, free: 85.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.316e-05/0.7382, allocations: 3.844 kB / 384.6 MB, free: 85.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.7382, allocations: 0 / 384.6 MB, free: 85.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00053/0.7388, allocations: 39.73 kB / 384.6 MB, free: 85.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000205/0.739, allocations: 144.7 kB / 384.8 MB, free: 85.76 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.0003967/0.7394, allocations: 413.9 kB / 385.2 MB, free: 85.41 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001493/0.7396, allocations: 89.59 kB / 385.2 MB, free: 85.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003454/0.7399, allocations: 154.2 kB / 385.4 MB, free: 85.27 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.7399, allocations: 0 / 385.4 MB, free: 85.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.7399, allocations: 3.422 kB / 385.4 MB, free: 85.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.74, allocations: 0 / 385.4 MB, free: 85.27 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003125/0.7431, allocations: 1.942 MB / 387.3 MB, free: 83.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.7431, allocations: 0 / 387.3 MB, free: 83.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.583e-05/0.7431, allocations: 3.938 kB / 387.3 MB, free: 83.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.103e-06/0.7432, allocations: 3.953 kB / 387.4 MB, free: 83.78 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.479e-05/0.7433, allocations: 38.38 kB / 387.4 MB, free: 83.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.7433, allocations: 0 / 387.4 MB, free: 83.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.7433, allocations: 0 / 387.4 MB, free: 83.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002246/0.7455, allocations: 1.355 MB / 388.7 MB, free: 82.47 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001137/0.7467, allocations: 0.5712 MB / 389.3 MB, free: 81.97 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002343/0.7469, allocations: 63.11 kB / 389.4 MB, free: 81.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005176/0.7475, allocations: 30.42 kB / 389.4 MB, free: 81.9 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005521/0.748, allocations: 240.9 kB / 389.6 MB, free: 81.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001965/0.7483, allocations: 162 kB / 389.8 MB, free: 81.58 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001455/0.7497, allocations: 0.8493 MB / 390.7 MB, free: 80.83 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7497, allocations: 0 / 390.7 MB, free: 80.83 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006095/0.7504, allocations: 123.1 kB / 390.8 MB, free: 80.71 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,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.002612/0.753, allocations: 1.989 MB / 392.8 MB, free: 78.8 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002032/0.755, allocations: 1.496 MB / 394.3 MB, free: 77.28 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.755, allocations: 0 / 394.3 MB, free: 77.28 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001217/0.7563, allocations: 1.102 MB / 395.4 MB, free: 76.09 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001757/0.758, allocations: 288.1 kB / 395.6 MB, free: 75.83 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003962/0.762, allocations: 1.932 MB / 397.6 MB, free: 73.85 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007859/0.7628, allocations: 1.042 MB / 398.6 MB, free: 72.77 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.763, allocations: 79.34 kB / 398.7 MB, free: 72.7 MB / 314.7 MB Notification: Performance of SimCode: time 1.042e-06/0.763, allocations: 7.844 kB / 398.7 MB, free: 72.69 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.591/3.354, allocations: 9.376 MB / 408.1 MB, free: 63.27 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat does not exist to compare? outputFormat=mat