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.801/1.801, allocations: 171.2 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.411e-05/2.42e-05, allocations: 0 / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2584, allocations: 38.77 MB / 258.3 MB, free: 12.14 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1261/0.3845, allocations: 71.94 MB / 330.3 MB, free: 5.953 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002768/0.3848, allocations: 67.97 kB / 330.3 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1275/0.5124, allocations: 37.24 MB / 367.6 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.5124, allocations: 0 / 367.6 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.243e-05/0.5125, allocations: 8 kB / 367.6 MB, free: 0.6328 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.2142/0.7267, allocations: 1.008 MB / 368.6 MB, free: 91.81 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.652e-05/0.7267, allocations: 10.94 kB / 368.6 MB, free: 91.81 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004031/0.7271, allocations: 88.97 kB / 368.7 MB, free: 91.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001047/0.7282, allocations: 417.9 kB / 369.1 MB, free: 91.52 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.937e-05/0.7283, allocations: 16.77 kB / 369.1 MB, free: 91.52 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.7284, allocations: 21.28 kB / 369.1 MB, free: 91.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001011/0.7295, allocations: 339.2 kB / 369.4 MB, free: 91.52 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.7307, allocations: 492.6 kB / 369.9 MB, free: 91.49 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.7308, allocations: 0 / 369.9 MB, free: 91.49 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.054e-05/0.7309, allocations: 12.59 kB / 369.9 MB, free: 91.49 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.7309, allocations: 6.25 kB / 369.9 MB, free: 91.49 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001907/0.7328, allocations: 0.8138 MB / 370.8 MB, free: 91.2 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009084/0.7338, allocations: 499.1 kB / 371.3 MB, free: 91.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008376/0.7347, allocations: 473.5 kB / 371.7 MB, free: 91.17 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.7347, allocations: 4.953 kB / 371.7 MB, free: 91.17 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001141/0.7358, allocations: 0.6414 MB / 372.4 MB, free: 91 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.877e-06/0.7359, allocations: 7.719 kB / 372.4 MB, free: 91 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.002256/0.7381, allocations: 0.8909 MB / 373.3 MB, free: 90.92 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001625/0.7384, allocations: 278.4 kB / 373.5 MB, free: 90.64 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002038/0.7404, allocations: 0.9817 MB / 374.5 MB, free: 90.36 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001746/0.7406, allocations: 44.05 kB / 374.6 MB, free: 90.33 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.7407, allocations: 190.2 kB / 374.7 MB, free: 90.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001534/0.7409, allocations: 79.36 kB / 374.8 MB, free: 90.14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.195e-05/0.741, allocations: 10.88 kB / 374.8 MB, free: 90.14 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.834e-05/0.7411, allocations: 330.6 kB / 375.2 MB, free: 89.83 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006244/0.7417, allocations: 332.1 kB / 375.5 MB, free: 89.83 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000595/0.7423, allocations: 331.7 kB / 375.8 MB, free: 89.83 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004383/0.7428, allocations: 240.2 kB / 376 MB, free: 89.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.7428, allocations: 2.438 kB / 376 MB, free: 89.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001732/0.7445, allocations: 0.8289 MB / 376.9 MB, free: 89.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001864/0.7448, allocations: 243.7 kB / 377.1 MB, free: 89.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.7448, allocations: 0 / 377.1 MB, free: 89.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.7448, allocations: 3.438 kB / 377.1 MB, free: 89.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.737e-05/0.7449, allocations: 11.08 kB / 377.1 MB, free: 89.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.7449, allocations: 0 / 377.1 MB, free: 89.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006097/0.7455, allocations: 32.22 kB / 377.1 MB, free: 89.51 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002151/0.7457, allocations: 145.8 kB / 377.3 MB, free: 89.51 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.000444/0.7462, allocations: 410.6 kB / 377.7 MB, free: 89.16 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002072/0.7483, allocations: 0.9614 MB / 378.7 MB, free: 88.84 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001772/0.7485, allocations: 88.72 kB / 378.7 MB, free: 88.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004697/0.749, allocations: 153 kB / 378.9 MB, free: 88.71 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.749, allocations: 0 / 378.9 MB, free: 88.71 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.749, allocations: 3.562 kB / 378.9 MB, free: 88.71 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.749, allocations: 3.234 kB / 378.9 MB, free: 88.71 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002968/0.752, allocations: 1.598 MB / 380.5 MB, free: 88.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.7521, allocations: 0 / 380.5 MB, free: 88.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.242e-05/0.7521, allocations: 3.938 kB / 380.5 MB, free: 88.01 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.027e-06/0.7521, allocations: 3.953 kB / 380.5 MB, free: 88 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.323e-05/0.7522, allocations: 35.52 kB / 380.5 MB, free: 88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.7522, allocations: 0 / 380.5 MB, free: 88 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/0.7523, allocations: 0 / 380.5 MB, free: 88 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002114/0.7544, allocations: 1.064 MB / 381.6 MB, free: 87.58 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001432/0.7559, allocations: 0.5666 MB / 382.2 MB, free: 87.24 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000301/0.7562, allocations: 59.98 kB / 382.2 MB, free: 87.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000569/0.7568, allocations: 36.88 kB / 382.3 MB, free: 87.21 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005815/0.7574, allocations: 242.6 kB / 382.5 MB, free: 87.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002107/0.7576, allocations: 160.9 kB / 382.7 MB, free: 87.14 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001549/0.7592, allocations: 0.8087 MB / 383.5 MB, free: 86.78 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.7592, allocations: 0 / 383.5 MB, free: 86.78 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008269/0.76, allocations: 115.1 kB / 383.6 MB, free: 86.78 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.0025/0.7626, allocations: 1.698 MB / 385.3 MB, free: 85.82 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002115/0.7647, allocations: 1.463 MB / 386.7 MB, free: 84.9 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.7648, allocations: 0 / 386.7 MB, free: 84.9 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001314/0.7661, allocations: 1.097 MB / 387.8 MB, free: 84.04 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002027/0.7682, allocations: 287.7 kB / 388.1 MB, free: 83.84 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004608/0.7729, allocations: 1.922 MB / 390 MB, free: 82.08 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008176/0.7737, allocations: 1.027 MB / 391.1 MB, free: 81.12 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.7739, allocations: 78.28 kB / 391.1 MB, free: 81.05 MB / 314.7 MB Notification: Performance of SimCode: time 1.463e-06/0.7739, allocations: 0 / 391.1 MB, free: 81.05 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.708/3.482, allocations: 9.381 MB / 400.5 MB, free: 72.92 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