Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.832/1.832, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.9e-05/2.915e-05, allocations: 4 kB / 255.4 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08992/0.08997, allocations: 44.51 MB / 299.9 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3894/0.4795, allocations: 77.87 MB / 377.8 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/0.4798, allocations: 70.39 kB / 377.9 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08357/0.5634, allocations: 27.92 MB / 405.8 MB, free: 8.562 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.5634, allocations: 0 / 405.8 MB, free: 8.562 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.416e-05/0.5634, allocations: 7.75 kB / 405.8 MB, free: 8.562 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.00108/0.5645, allocations: 1.019 MB / 406.8 MB, free: 7.68 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.5646, allocations: 11.5 kB / 406.8 MB, free: 7.68 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001068/0.5647, allocations: 55.17 kB / 406.9 MB, free: 7.637 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001636/0.5649, allocations: 89.55 kB / 407 MB, free: 7.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000733/0.5656, allocations: 422.9 kB / 407.4 MB, free: 7.297 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.383e-05/0.5657, allocations: 19.06 kB / 407.4 MB, free: 7.297 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.5658, allocations: 27.16 kB / 407.4 MB, free: 7.293 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.5669, allocations: 0.4983 MB / 407.9 MB, free: 7.152 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.5669, allocations: 0 / 407.9 MB, free: 7.152 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.94e-05/0.567, allocations: 15.2 kB / 407.9 MB, free: 7.148 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.567, allocations: 7.766 kB / 407.9 MB, free: 7.145 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007267/0.5677, allocations: 368.9 kB / 408.3 MB, free: 7.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001601/0.5694, allocations: 0.8642 MB / 409.2 MB, free: 6.602 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008131/0.5702, allocations: 0.5033 MB / 409.7 MB, free: 6.523 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007797/0.571, allocations: 496.6 kB / 410.2 MB, free: 6.473 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.016e-05/0.571, allocations: 3.375 kB / 410.2 MB, free: 6.473 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000976/0.572, allocations: 0.6532 MB / 410.8 MB, free: 6.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 2.755e-06/0.572, allocations: 0 / 410.8 MB, free: 6.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.002198/0.5742, allocations: 1.175 MB / 412 MB, free: 5.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/0.5744, allocations: 285.4 kB / 412.3 MB, free: 5.434 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001866/0.5763, allocations: 1.023 MB / 413.3 MB, free: 5.027 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.397e-05/0.5764, allocations: 41.2 kB / 413.3 MB, free: 4.996 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.5765, allocations: 208.7 kB / 413.5 MB, free: 4.832 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.5766, allocations: 76.55 kB / 413.6 MB, free: 4.789 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.473e-05/0.5767, allocations: 11.44 kB / 413.6 MB, free: 4.789 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.898e-05/0.5768, allocations: 326.1 kB / 413.9 MB, free: 4.473 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007052/0.5775, allocations: 352 kB / 414.3 MB, free: 4.426 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006947/0.5782, allocations: 352.1 kB / 414.6 MB, free: 4.379 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006602/0.5789, allocations: 496.3 kB / 415.1 MB, free: 4.102 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.5789, allocations: 0 / 415.1 MB, free: 4.102 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002028/0.5809, allocations: 1.105 MB / 416.2 MB, free: 3.707 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001759/0.5811, allocations: 241.3 kB / 416.4 MB, free: 3.473 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.5812, allocations: 7.938 kB / 416.5 MB, free: 3.465 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.42e-05/0.5812, allocations: 0 / 416.5 MB, free: 3.465 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.909e-05/0.5813, allocations: 11.69 kB / 416.5 MB, free: 3.461 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.5813, allocations: 0 / 416.5 MB, free: 3.461 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005534/0.5818, allocations: 39.23 kB / 416.5 MB, free: 3.445 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002024/0.5821, allocations: 150.5 kB / 416.7 MB, free: 3.434 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.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.0004078/0.5825, allocations: 419.8 kB / 417.1 MB, free: 3.07 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001586/0.5827, allocations: 85.78 kB / 417.1 MB, free: 3.031 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004279/0.5831, allocations: 152 kB / 417.3 MB, free: 2.949 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.371e-06/0.5831, allocations: 7.859 kB / 417.3 MB, free: 2.945 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.5831, allocations: 0 / 417.3 MB, free: 2.945 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.5831, allocations: 0 / 417.3 MB, free: 2.945 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003157/0.5863, allocations: 1.945 MB / 419.2 MB, free: 2.062 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.5863, allocations: 4 kB / 419.3 MB, free: 2.059 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.08e-05/0.5864, allocations: 3.938 kB / 419.3 MB, free: 2.059 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.593e-06/0.5864, allocations: 0 / 419.3 MB, free: 2.059 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-05/0.5865, allocations: 46.11 kB / 419.3 MB, free: 2.051 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.5865, allocations: 0 / 419.3 MB, free: 2.051 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.5865, allocations: 0 / 419.3 MB, free: 2.051 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002306/0.5888, allocations: 1.367 MB / 420.7 MB, free: 1.512 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001219/0.5901, allocations: 0.5653 MB / 421.2 MB, free: 1.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002357/0.5903, allocations: 59.03 kB / 421.3 MB, free: 1.219 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005208/0.5909, allocations: 35.03 kB / 421.3 MB, free: 1.207 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000556/0.5914, allocations: 244.1 kB / 421.6 MB, free: 1.137 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002002/0.5916, allocations: 159 kB / 421.7 MB, free: 1.121 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001572/0.5932, allocations: 0.8654 MB / 422.6 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5932, allocations: 0 / 422.6 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000598/0.5939, allocations: 118.9 kB / 422.7 MB, free: 0.7891 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,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.002874/0.5967, allocations: 2.005 MB / 424.7 MB, free: 15.7 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002253/0.599, allocations: 1.512 MB / 426.2 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.599, allocations: 0 / 426.2 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001425/0.6005, allocations: 1.118 MB / 427.3 MB, free: 14.63 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001812/0.6023, allocations: 269.9 kB / 427.6 MB, free: 14.55 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004348/0.6067, allocations: 1.965 MB / 429.6 MB, free: 13.81 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009782/0.6077, allocations: 1.038 MB / 430.6 MB, free: 12.96 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.6078, allocations: 76.28 kB / 430.7 MB, free: 12.95 MB / 330.7 MB Notification: Performance of SimCode: time 1.332e-06/0.6078, allocations: 0 / 430.7 MB, free: 12.95 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.589/3.197, allocations: 9.456 MB / 440.1 MB, free: 5.965 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat