Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRH,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.92/1.92, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.468e-05/2.471e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2921, allocations: 44.49 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1338/0.4259, allocations: 77.47 MB / 371.7 MB, free: 4.438 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/0.4262, allocations: 67.97 kB / 371.7 MB, free: 4.371 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1022/0.5284, allocations: 31 MB / 402.7 MB, free: 5.387 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.5285, allocations: 7.938 kB / 402.7 MB, free: 5.379 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.233e-05/0.5285, allocations: 16 kB / 402.7 MB, free: 5.363 MB / 346.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.001885/0.5304, allocations: 1.299 MB / 404 MB, free: 3.965 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.5305, allocations: 11.97 kB / 404.1 MB, free: 3.953 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002859/0.5308, allocations: 126.5 kB / 404.2 MB, free: 3.828 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.5318, allocations: 0.5168 MB / 404.7 MB, free: 3.262 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.99e-05/0.5319, allocations: 20 kB / 404.7 MB, free: 3.242 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.5321, allocations: 27.98 kB / 404.7 MB, free: 3.215 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001011/0.5331, allocations: 436.5 kB / 405.2 MB, free: 2.789 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00133/0.5344, allocations: 0.6031 MB / 405.8 MB, free: 2.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.5345, allocations: 0 / 405.8 MB, free: 2.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.943e-05/0.5346, allocations: 11.98 kB / 405.8 MB, free: 2.168 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.5346, allocations: 4 kB / 405.8 MB, free: 2.164 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002435/0.537, allocations: 1.047 MB / 406.8 MB, free: 1.074 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.5383, allocations: 0.6703 MB / 407.5 MB, free: 404 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001186/0.5395, allocations: 0.6608 MB / 408.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.5395, allocations: 4 kB / 408.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001389/0.5409, allocations: 0.7554 MB / 408.9 MB, free: 14.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=36): time 3.045e-06/0.541, allocations: 0 / 408.9 MB, free: 14.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.002716/0.5437, allocations: 1.101 MB / 410 MB, free: 13.82 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000252/0.544, allocations: 325 kB / 410.3 MB, free: 13.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00349/0.5475, allocations: 1.542 MB / 411.9 MB, free: 11.89 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000228/0.5477, allocations: 45.64 kB / 411.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002769/0.548, allocations: 245 kB / 412.2 MB, free: 11.6 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001972/0.5482, allocations: 83.08 kB / 412.3 MB, free: 11.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.571e-05/0.5483, allocations: 8 kB / 412.3 MB, free: 11.51 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.5485, allocations: 330.8 kB / 412.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009759/0.5495, allocations: 436 kB / 413 MB, free: 10.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000921/0.5504, allocations: 439.9 kB / 413.4 MB, free: 10.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006258/0.5511, allocations: 288 kB / 413.7 MB, free: 10.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.5511, allocations: 0 / 413.7 MB, free: 10.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002373/0.5535, allocations: 0.9984 MB / 414.7 MB, free: 9.031 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002873/0.5538, allocations: 285.5 kB / 415 MB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.5538, allocations: 0 / 415 MB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.122e-05/0.5538, allocations: 0 / 415 MB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.924e-05/0.5539, allocations: 11.94 kB / 415 MB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.5539, allocations: 7.953 kB / 415 MB, free: 8.684 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006606/0.5546, allocations: 43.88 kB / 415.1 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002745/0.5549, allocations: 155.9 kB / 415.2 MB, free: 8.488 MB / 362.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.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.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.0006006/0.5555, allocations: 466.3 kB / 415.7 MB, free: 7.977 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002786/0.5583, allocations: 1.171 MB / 416.8 MB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002468/0.5586, allocations: 138.5 kB / 417 MB, free: 6.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007901/0.5594, allocations: 248 kB / 417.2 MB, free: 6.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.5594, allocations: 3.953 kB / 417.2 MB, free: 6.406 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.5594, allocations: 3.984 kB / 417.2 MB, free: 6.402 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.5594, allocations: 3.938 kB / 417.2 MB, free: 6.398 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00433/0.5638, allocations: 1.997 MB / 419.2 MB, free: 4.352 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.5638, allocations: 4 kB / 419.2 MB, free: 4.348 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.524e-05/0.5638, allocations: 4 kB / 419.2 MB, free: 4.344 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.842e-06/0.5639, allocations: 0 / 419.2 MB, free: 4.344 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001192/0.564, allocations: 39.94 kB / 419.3 MB, free: 4.305 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.564, allocations: 3.938 kB / 419.3 MB, free: 4.301 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.666e-06/0.564, allocations: 0 / 419.3 MB, free: 4.301 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002789/0.5668, allocations: 1.269 MB / 420.5 MB, free: 3.012 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001803/0.5686, allocations: 0.6747 MB / 421.2 MB, free: 2.316 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003349/0.569, allocations: 59.95 kB / 421.3 MB, free: 2.258 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006388/0.5697, allocations: 43.92 kB / 421.3 MB, free: 2.215 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009183/0.5706, allocations: 347.7 kB / 421.7 MB, free: 1.875 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002662/0.5709, allocations: 159.9 kB / 421.8 MB, free: 1.719 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002874/0.5738, allocations: 1.259 MB / 423.1 MB, free: 468 kB / 362.7 MB Notification: Performance of sort global known variables: time 5.52e-07/0.5738, allocations: 0 / 423.1 MB, free: 468 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008596/0.5747, allocations: 140 kB / 423.2 MB, free: 328 kB / 362.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,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.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.2378/0.8125, allocations: 1.919 MB / 425.1 MB, free: 105.9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002828/0.8154, allocations: 1.869 MB / 427 MB, free: 105.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.8154, allocations: 3.844 kB / 427 MB, free: 105.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00168/0.8171, allocations: 1.372 MB / 428.4 MB, free: 104.8 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001951/0.8191, allocations: 295.4 kB / 428.7 MB, free: 104.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006756/0.8259, allocations: 2.783 MB / 431.4 MB, free: 104.1 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00131/0.8272, allocations: 1.221 MB / 432.7 MB, free: 103.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002347/0.8275, allocations: 145.8 kB / 432.8 MB, free: 103.3 MB / 362.7 MB Notification: Performance of SimCode: time 1.603e-06/0.8275, allocations: 0 / 432.8 MB, free: 103.3 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.962/3.789, allocations: 14.9 MB / 447.7 MB, free: 99.39 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat does not exist to compare? outputFormat=mat