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.63/1.63, allocations: 171.2 MB / 183.8 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.827e-05/2.845e-05, allocations: 4 kB / 225.1 MB, free: 2.746 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2509, allocations: 38.77 MB / 263.8 MB, free: 9.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1274/0.3784, allocations: 72.6 MB / 336.4 MB, free: 1.18 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.3787, allocations: 67.95 kB / 336.5 MB, free: 1.113 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3381/0.7168, allocations: 37.48 MB / 374 MB, free: 90.37 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.7169, allocations: 3.688 kB / 374 MB, free: 90.37 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.277e-05/0.7169, allocations: 15.09 kB / 374 MB, free: 90.37 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.001468/0.7184, allocations: 1.007 MB / 375 MB, free: 89.75 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.7185, allocations: 10.94 kB / 375 MB, free: 89.75 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002111/0.7187, allocations: 56.66 kB / 375.1 MB, free: 89.71 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002155/0.7189, allocations: 88.72 kB / 375.1 MB, free: 89.67 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008964/0.7199, allocations: 421 kB / 375.6 MB, free: 89.4 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.594e-05/0.72, allocations: 16.72 kB / 375.6 MB, free: 89.4 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001098/0.7201, allocations: 26.38 kB / 375.6 MB, free: 89.4 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001111/0.7212, allocations: 0.4972 MB / 376.1 MB, free: 89.37 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.143e-05/0.7213, allocations: 0 / 376.1 MB, free: 89.37 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-05/0.7214, allocations: 14.88 kB / 376.1 MB, free: 89.37 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.7214, allocations: 3.094 kB / 376.1 MB, free: 89.37 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007974/0.7222, allocations: 355.5 kB / 376.5 MB, free: 89.37 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001882/0.7241, allocations: 0.8637 MB / 377.3 MB, free: 89.04 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009792/0.7251, allocations: 0.4965 MB / 377.8 MB, free: 89.02 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009099/0.7261, allocations: 497.6 kB / 378.3 MB, free: 89.01 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.7261, allocations: 3.938 kB / 378.3 MB, free: 89.01 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001138/0.7273, allocations: 0.6445 MB / 379 MB, free: 88.83 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.817e-06/0.7273, allocations: 0 / 379 MB, free: 88.83 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.002329/0.7297, allocations: 1.157 MB / 380.1 MB, free: 88.54 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001714/0.7299, allocations: 283.5 kB / 380.4 MB, free: 88.25 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002191/0.7321, allocations: 1.019 MB / 381.4 MB, free: 87.79 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002159/0.7323, allocations: 45.59 kB / 381.5 MB, free: 87.76 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.7325, allocations: 195.8 kB / 381.6 MB, free: 87.57 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001693/0.7326, allocations: 79.41 kB / 381.7 MB, free: 87.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.238e-05/0.7327, allocations: 13.61 kB / 381.7 MB, free: 87.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.023e-05/0.7328, allocations: 326.4 kB / 382.1 MB, free: 87.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007242/0.7335, allocations: 343 kB / 382.4 MB, free: 87.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007236/0.7343, allocations: 348.7 kB / 382.7 MB, free: 86.98 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006886/0.735, allocations: 489.5 kB / 383.2 MB, free: 86.66 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.735, allocations: 3.938 kB / 383.2 MB, free: 86.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002056/0.7371, allocations: 1.082 MB / 384.3 MB, free: 86.16 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001956/0.7373, allocations: 249 kB / 384.5 MB, free: 85.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.7374, allocations: 7.281 kB / 384.5 MB, free: 85.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/0.7374, allocations: 0 / 384.5 MB, free: 85.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.258e-05/0.7375, allocations: 7.047 kB / 384.6 MB, free: 85.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.7375, allocations: 3.531 kB / 384.6 MB, free: 85.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006494/0.7381, allocations: 36.34 kB / 384.6 MB, free: 85.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000229/0.7384, allocations: 149 kB / 384.7 MB, free: 85.91 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.0004691/0.7389, allocations: 407.2 kB / 385.1 MB, free: 85.55 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002136/0.7391, allocations: 92.03 kB / 385.2 MB, free: 85.51 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000441/0.7395, allocations: 150.2 kB / 385.4 MB, free: 85.42 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.074e-06/0.7396, allocations: 3.234 kB / 385.4 MB, free: 85.42 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.7396, allocations: 0 / 385.4 MB, free: 85.42 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.7396, allocations: 0 / 385.4 MB, free: 85.42 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003632/0.7432, allocations: 1.938 MB / 387.3 MB, free: 83.94 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.7433, allocations: 3.938 kB / 387.3 MB, free: 83.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.572e-05/0.7433, allocations: 7.797 kB / 387.3 MB, free: 83.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.608e-06/0.7433, allocations: 4 kB / 387.3 MB, free: 83.93 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001149/0.7435, allocations: 39.78 kB / 387.4 MB, free: 83.89 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.089e-06/0.7435, allocations: 4 kB / 387.4 MB, free: 83.89 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.7435, allocations: 0 / 387.4 MB, free: 83.89 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002424/0.7459, allocations: 1.35 MB / 388.7 MB, free: 82.61 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001461/0.7474, allocations: 0.5588 MB / 389.3 MB, free: 82.12 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002879/0.7478, allocations: 67.06 kB / 389.3 MB, free: 82.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005646/0.7483, allocations: 35.98 kB / 389.4 MB, free: 82.04 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005984/0.749, allocations: 237 kB / 389.6 MB, free: 81.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002218/0.7492, allocations: 161 kB / 389.8 MB, free: 81.73 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001791/0.751, allocations: 0.8493 MB / 390.6 MB, free: 80.98 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.32e-07/0.751, allocations: 0 / 390.6 MB, free: 80.98 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008106/0.7519, allocations: 124 kB / 390.7 MB, free: 80.86 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.00293/0.7548, allocations: 1.991 MB / 392.7 MB, free: 78.95 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002268/0.7571, allocations: 1.499 MB / 394.2 MB, free: 77.46 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.7572, allocations: 8 kB / 394.2 MB, free: 77.46 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001407/0.7586, allocations: 1.107 MB / 395.3 MB, free: 76.31 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00196/0.7606, allocations: 286 kB / 395.6 MB, free: 76.05 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004732/0.7654, allocations: 1.938 MB / 397.6 MB, free: 74.07 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008464/0.7663, allocations: 1.031 MB / 398.6 MB, free: 73.01 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.7665, allocations: 83.41 kB / 398.7 MB, free: 72.93 MB / 314.7 MB Notification: Performance of SimCode: time 1.313e-06/0.7665, allocations: 0 / 398.7 MB, free: 72.93 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.02/3.786, allocations: 9.398 MB / 408.1 MB, free: 63.48 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