Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.721/1.721, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.235e-05/3.247e-05, allocations: 4 kB / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2494, allocations: 38.77 MB / 258.3 MB, free: 12.07 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.13/0.3794, allocations: 71.9 MB / 330.2 MB, free: 5.938 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003121/0.3798, allocations: 63.97 kB / 330.3 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1111/0.4909, allocations: 27.66 MB / 357.9 MB, free: 10.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4909, allocations: 0 / 357.9 MB, free: 10.23 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.854e-05/0.491, allocations: 12 kB / 358 MB, free: 10.21 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.001385/0.4924, allocations: 1.015 MB / 359 MB, free: 9.109 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.4924, allocations: 8.031 kB / 359 MB, free: 9.102 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002037/0.4926, allocations: 87.06 kB / 359.1 MB, free: 9.016 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008396/0.4935, allocations: 419.5 kB / 359.5 MB, free: 8.562 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.187e-05/0.4936, allocations: 31.88 kB / 359.5 MB, free: 8.531 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.4937, allocations: 16 kB / 359.5 MB, free: 8.516 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008336/0.4945, allocations: 336.2 kB / 359.8 MB, free: 8.184 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.4956, allocations: 494.2 kB / 360.3 MB, free: 7.695 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.4957, allocations: 0 / 360.3 MB, free: 7.695 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-05/0.4958, allocations: 11.98 kB / 360.3 MB, free: 7.684 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.4958, allocations: 4 kB / 360.3 MB, free: 7.68 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001942/0.4977, allocations: 0.8171 MB / 361.2 MB, free: 6.824 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/0.4989, allocations: 486.4 kB / 361.6 MB, free: 6.34 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009344/0.4998, allocations: 480.7 kB / 362.1 MB, free: 5.867 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.4999, allocations: 0 / 362.1 MB, free: 5.867 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00128/0.5012, allocations: 0.6508 MB / 362.8 MB, free: 5.176 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.417e-06/0.5012, allocations: 4 kB / 362.8 MB, free: 5.172 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.002354/0.5036, allocations: 0.89 MB / 363.7 MB, free: 4.277 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002218/0.5038, allocations: 283.2 kB / 363.9 MB, free: 3.945 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002123/0.5059, allocations: 0.9723 MB / 364.9 MB, free: 2.965 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001737/0.5061, allocations: 41.7 kB / 364.9 MB, free: 2.918 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001513/0.5063, allocations: 200.4 kB / 365.1 MB, free: 2.719 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001732/0.5065, allocations: 79.05 kB / 365.2 MB, free: 2.641 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.017e-05/0.5066, allocations: 12 kB / 365.2 MB, free: 2.629 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.5067, allocations: 330.8 kB / 365.6 MB, free: 2.297 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007503/0.5075, allocations: 332.2 kB / 365.9 MB, free: 1.973 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007297/0.5082, allocations: 336.4 kB / 366.2 MB, free: 1.645 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005356/0.5088, allocations: 233.4 kB / 366.4 MB, free: 1.418 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.5088, allocations: 4 kB / 366.4 MB, free: 1.414 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002044/0.5109, allocations: 0.8099 MB / 367.2 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002499/0.5111, allocations: 247.8 kB / 367.5 MB, free: 320 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.5112, allocations: 0 / 367.5 MB, free: 320 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.5112, allocations: 4 kB / 367.5 MB, free: 316 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.57e-05/0.5112, allocations: 4 kB / 367.5 MB, free: 312 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.5113, allocations: 4 kB / 367.5 MB, free: 308 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005623/0.5118, allocations: 39.81 kB / 367.5 MB, free: 268 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002614/0.5121, allocations: 156.2 kB / 367.7 MB, free: 112 kB / 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.2069/0.719, allocations: 394.3 kB / 368.1 MB, free: 90.83 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003784/0.7228, allocations: 0.9646 MB / 369 MB, free: 90.8 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002786/0.7231, allocations: 91.3 kB / 369.1 MB, free: 90.78 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006469/0.7238, allocations: 150 kB / 369.3 MB, free: 90.74 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.7238, allocations: 1.938 kB / 369.3 MB, free: 90.74 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.7238, allocations: 0 / 369.3 MB, free: 90.74 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.7238, allocations: 0.9844 kB / 369.3 MB, free: 90.74 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004217/0.7281, allocations: 1.608 MB / 370.9 MB, free: 90.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.7281, allocations: 0 / 370.9 MB, free: 90.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.47e-05/0.7281, allocations: 1.875 kB / 370.9 MB, free: 90.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.148e-06/0.7281, allocations: 5.25 kB / 370.9 MB, free: 90.39 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001454/0.7283, allocations: 32.73 kB / 370.9 MB, free: 90.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.732e-06/0.7283, allocations: 6.188 kB / 370.9 MB, free: 90.39 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.7283, allocations: 0.7656 kB / 370.9 MB, free: 90.39 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003317/0.7317, allocations: 1.063 MB / 372 MB, free: 90.23 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001898/0.7336, allocations: 0.5645 MB / 372.6 MB, free: 90.04 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004062/0.734, allocations: 58.53 kB / 372.6 MB, free: 90.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007927/0.7348, allocations: 34.28 kB / 372.7 MB, free: 90.04 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000832/0.7357, allocations: 235.2 kB / 372.9 MB, free: 90.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003467/0.7361, allocations: 159.6 kB / 373 MB, free: 90.04 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002139/0.7382, allocations: 0.8085 MB / 373.8 MB, free: 89.82 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.7382, allocations: 3.281 kB / 373.8 MB, free: 89.82 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009247/0.7392, allocations: 118.1 kB / 374 MB, free: 89.82 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.00323/0.7424, allocations: 1.703 MB / 375.7 MB, free: 89.11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002633/0.7451, allocations: 1.467 MB / 377.1 MB, free: 88.66 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.7451, allocations: 0 / 377.1 MB, free: 88.66 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001651/0.7468, allocations: 1.084 MB / 378.2 MB, free: 88.02 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002386/0.7492, allocations: 291.5 kB / 378.5 MB, free: 87.96 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005802/0.755, allocations: 1.921 MB / 380.4 MB, free: 87.17 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001168/0.7562, allocations: 1.036 MB / 381.5 MB, free: 86.38 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001697/0.7564, allocations: 75.69 kB / 381.5 MB, free: 86.32 MB / 314.7 MB Notification: Performance of SimCode: time 1.262e-06/0.7564, allocations: 0 / 381.5 MB, free: 86.32 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.599/3.356, allocations: 9.371 MB / 390.9 MB, free: 81.85 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat