Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.874/1.874, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.274e-05/3.292e-05, allocations: 0 / 255.4 MB, free: 3.121 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09861/0.09868, allocations: 44.51 MB / 299.9 MB, free: 6.555 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4103/0.5091, allocations: 78.16 MB / 378.1 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/0.5094, allocations: 71.42 kB / 378.2 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09527/0.6047, allocations: 32.75 MB / 410.9 MB, free: 5.789 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.033e-06/0.6047, allocations: 0 / 410.9 MB, free: 5.789 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.524e-05/0.6048, allocations: 19.44 kB / 410.9 MB, free: 5.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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.002015/0.6068, allocations: 1.295 MB / 412.2 MB, free: 4.711 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.6069, allocations: 15.61 kB / 412.2 MB, free: 4.707 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002585/0.6071, allocations: 59.61 kB / 412.3 MB, free: 4.66 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002684/0.6074, allocations: 132.1 kB / 412.4 MB, free: 4.594 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.6085, allocations: 0.5137 MB / 412.9 MB, free: 4.246 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.857e-05/0.6086, allocations: 22.94 kB / 413 MB, free: 4.242 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/0.6088, allocations: 34.45 kB / 413 MB, free: 4.238 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.6101, allocations: 0.62 MB / 413.6 MB, free: 4.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/0.6102, allocations: 4 kB / 413.6 MB, free: 4.066 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.622e-05/0.6103, allocations: 22.97 kB / 413.6 MB, free: 4.059 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.6103, allocations: 3.781 kB / 413.6 MB, free: 4.059 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009652/0.6113, allocations: 457.1 kB / 414.1 MB, free: 4.004 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002457/0.6138, allocations: 1.084 MB / 415.2 MB, free: 3.422 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/0.6151, allocations: 0.687 MB / 415.9 MB, free: 3.34 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001163/0.6163, allocations: 0.6746 MB / 416.5 MB, free: 3.277 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.73e-05/0.6164, allocations: 0 / 416.5 MB, free: 3.277 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001364/0.6178, allocations: 0.7586 MB / 417.3 MB, free: 2.949 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.637e-06/0.6178, allocations: 7.938 kB / 417.3 MB, free: 2.941 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002824/0.6206, allocations: 1.412 MB / 418.7 MB, free: 2.445 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001892/0.6209, allocations: 325.7 kB / 419 MB, free: 2.117 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003761/0.6247, allocations: 1.598 MB / 420.6 MB, free: 1.473 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002659/0.625, allocations: 51.78 kB / 420.7 MB, free: 1.438 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002675/0.6252, allocations: 248.9 kB / 420.9 MB, free: 1.27 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002155/0.6255, allocations: 83.83 kB / 421 MB, free: 1.227 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.553e-05/0.6256, allocations: 14.8 kB / 421 MB, free: 1.223 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.493e-05/0.6257, allocations: 332.2 kB / 421.3 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009444/0.6266, allocations: 445.1 kB / 421.8 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009/0.6275, allocations: 454.3 kB / 422.2 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008031/0.6284, allocations: 0.5822 MB / 422.8 MB, free: 476 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.6284, allocations: 0 / 422.8 MB, free: 476 kB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002461/0.6309, allocations: 1.307 MB / 424.1 MB, free: 24 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000331/0.6312, allocations: 293.3 kB / 424.4 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.6313, allocations: 0 / 424.4 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.446e-05/0.6313, allocations: 0 / 424.4 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.276e-05/0.6314, allocations: 7.781 kB / 424.4 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.268e-06/0.6314, allocations: 4 kB / 424.4 MB, free: 15.74 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007086/0.6321, allocations: 42.75 kB / 424.5 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002398/0.6324, allocations: 159 kB / 424.6 MB, free: 15.71 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: 43 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.set,$PRE.dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.reset,$PRE.dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 8 * 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.0006343/0.633, allocations: 470.1 kB / 425.1 MB, free: 15.31 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003034/0.6333, allocations: 128.3 kB / 425.2 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008212/0.6342, allocations: 248.8 kB / 425.4 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.6342, allocations: 4 kB / 425.4 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.6342, allocations: 3.75 kB / 425.4 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.6342, allocations: 0 / 425.4 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005206/0.6394, allocations: 2.404 MB / 427.8 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.6395, allocations: 0 / 427.8 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.567e-05/0.6395, allocations: 3.75 kB / 427.9 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.624e-06/0.6395, allocations: 0 / 427.9 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001341/0.6397, allocations: 49 kB / 427.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.6397, allocations: 0 / 427.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.6397, allocations: 0 / 427.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003215/0.6429, allocations: 1.618 MB / 429.5 MB, free: 13.4 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002024/0.645, allocations: 0.6788 MB / 430.2 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003217/0.6454, allocations: 59.47 kB / 430.3 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006533/0.6461, allocations: 42.47 kB / 430.3 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009103/0.647, allocations: 361.4 kB / 430.7 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002594/0.6473, allocations: 151.7 kB / 430.8 MB, free: 12.92 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00359/0.6509, allocations: 1.318 MB / 432.1 MB, free: 12.41 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.91e-07/0.6509, allocations: 0 / 432.1 MB, free: 12.41 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009538/0.6519, allocations: 151.9 kB / 432.3 MB, free: 12.41 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.next_assign_val[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.set,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRL.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 8 * 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.00387/0.6558, allocations: 2.266 MB / 434.5 MB, free: 11.23 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003473/0.6593, allocations: 1.913 MB / 436.4 MB, free: 9.902 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.6593, allocations: 0 / 436.4 MB, free: 9.902 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002279/0.6616, allocations: 1.386 MB / 437.8 MB, free: 8.418 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00228/0.664, allocations: 310.4 kB / 438.1 MB, free: 8.117 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008103/0.6721, allocations: 2.813 MB / 440.9 MB, free: 5.25 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001645/0.6738, allocations: 1.217 MB / 442.2 MB, free: 4.012 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003245/0.6742, allocations: 151.4 kB / 442.3 MB, free: 3.863 MB / 330.7 MB Notification: Performance of SimCode: time 1.523e-06/0.6742, allocations: 0 / 442.3 MB, free: 3.863 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.738/3.412, allocations: 14.96 MB / 457.3 MB, free: 4.695 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat does not exist to compare? outputFormat=mat