Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.914/1.914, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.99e-05/2.999e-05, allocations: 4 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1107, allocations: 44.51 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4209/0.5316, allocations: 77.91 MB / 377.8 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/0.5319, allocations: 64.48 kB / 377.9 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1129/0.6448, allocations: 37.64 MB / 415.5 MB, free: 4.785 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.6449, allocations: 0 / 415.5 MB, free: 4.785 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.621e-05/0.6449, allocations: 7.594 kB / 415.6 MB, free: 4.785 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.001096/0.646, allocations: 1.018 MB / 416.6 MB, free: 3.902 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.6461, allocations: 7.688 kB / 416.6 MB, free: 3.902 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001073/0.6462, allocations: 53.73 kB / 416.6 MB, free: 3.859 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001647/0.6464, allocations: 93.67 kB / 416.7 MB, free: 3.812 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007296/0.6471, allocations: 415.6 kB / 417.1 MB, free: 3.527 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.508e-05/0.6472, allocations: 19.3 kB / 417.1 MB, free: 3.523 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.6473, allocations: 26 kB / 417.2 MB, free: 3.523 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001049/0.6484, allocations: 0.5021 MB / 417.7 MB, free: 3.379 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.6484, allocations: 4 kB / 417.7 MB, free: 3.375 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.074e-05/0.6485, allocations: 18.38 kB / 417.7 MB, free: 3.371 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.6485, allocations: 3.875 kB / 417.7 MB, free: 3.371 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007331/0.6493, allocations: 368.1 kB / 418.1 MB, free: 3.316 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001645/0.6509, allocations: 0.8559 MB / 418.9 MB, free: 2.836 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008319/0.6518, allocations: 0.4971 MB / 419.4 MB, free: 2.766 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008153/0.6526, allocations: 0.4974 MB / 419.9 MB, free: 2.703 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.057e-05/0.6526, allocations: 3.875 kB / 419.9 MB, free: 2.703 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001022/0.6537, allocations: 0.647 MB / 420.6 MB, free: 2.391 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 2.785e-06/0.6537, allocations: 0 / 420.6 MB, free: 2.391 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.002248/0.6559, allocations: 1.176 MB / 421.7 MB, free: 1.961 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001513/0.6561, allocations: 283.6 kB / 422 MB, free: 1.668 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001994/0.6581, allocations: 1.021 MB / 423 MB, free: 1.266 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001349/0.6583, allocations: 48.75 kB / 423.1 MB, free: 1.227 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.6584, allocations: 195.7 kB / 423.3 MB, free: 1.07 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.6585, allocations: 76.77 kB / 423.3 MB, free: 1.027 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.027e-05/0.6586, allocations: 10.81 kB / 423.4 MB, free: 1.027 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.656e-05/0.6587, allocations: 329.4 kB / 423.7 MB, free: 0.707 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007083/0.6594, allocations: 357.9 kB / 424 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006796/0.6601, allocations: 354.7 kB / 424.4 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006795/0.6608, allocations: 499.1 kB / 424.9 MB, free: 336 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.6608, allocations: 3.906 kB / 424.9 MB, free: 336 kB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002117/0.663, allocations: 1.106 MB / 426 MB, free: 15.93 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002472/0.6632, allocations: 241 kB / 426.2 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.6633, allocations: 3.984 kB / 426.2 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.721e-05/0.6633, allocations: 3.984 kB / 426.2 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.791e-05/0.6634, allocations: 7.219 kB / 426.2 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.6634, allocations: 0 / 426.2 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005666/0.664, allocations: 36.62 kB / 426.3 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002165/0.6642, allocations: 154.1 kB / 426.4 MB, free: 15.66 MB / 330.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.0005384/0.6647, allocations: 412.5 kB / 426.8 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001886/0.6649, allocations: 90.38 kB / 426.9 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004886/0.6654, allocations: 157.5 kB / 427.1 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.6655, allocations: 0 / 427.1 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.6655, allocations: 0 / 427.1 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.6655, allocations: 3.75 kB / 427.1 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003595/0.6691, allocations: 1.947 MB / 429 MB, free: 14.29 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.6691, allocations: 0 / 429 MB, free: 14.29 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.247e-05/0.6692, allocations: 0 / 429 MB, free: 14.29 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.171e-05/0.6692, allocations: 7.984 kB / 429 MB, free: 14.29 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001008/0.6693, allocations: 37.42 kB / 429 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.6693, allocations: 3.875 kB / 429.1 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.6693, allocations: 0 / 429.1 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002635/0.672, allocations: 1.379 MB / 430.4 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/0.6735, allocations: 0.5674 MB / 431 MB, free: 13.45 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002567/0.6737, allocations: 68.17 kB / 431.1 MB, free: 13.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005327/0.6743, allocations: 31.55 kB / 431.1 MB, free: 13.42 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006054/0.6749, allocations: 238.1 kB / 431.3 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002153/0.6751, allocations: 158.5 kB / 431.5 MB, free: 13.34 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001862/0.677, allocations: 0.857 MB / 432.3 MB, free: 13.02 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.677, allocations: 0 / 432.3 MB, free: 13.02 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007047/0.6778, allocations: 124.6 kB / 432.5 MB, free: 13.02 MB / 330.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.003289/0.6811, allocations: 2.005 MB / 434.5 MB, free: 11.7 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002538/0.6836, allocations: 1.517 MB / 436 MB, free: 10.66 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.6837, allocations: 0 / 436 MB, free: 10.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001679/0.6854, allocations: 1.109 MB / 437.1 MB, free: 9.691 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001976/0.6874, allocations: 275.8 kB / 437.4 MB, free: 9.426 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005244/0.6927, allocations: 1.96 MB / 439.3 MB, free: 7.418 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001152/0.6938, allocations: 1.031 MB / 440.4 MB, free: 6.355 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001558/0.694, allocations: 83.34 kB / 440.4 MB, free: 6.277 MB / 330.7 MB Notification: Performance of SimCode: time 1.242e-06/0.694, allocations: 0 / 440.4 MB, free: 6.277 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.636/3.33, allocations: 9.459 MB / 449.9 MB, free: 12.68 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat does not exist to compare? outputFormat=mat