Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.924/1.924, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.552e-05/2.551e-05, allocations: 8 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/0.2943, allocations: 44.49 MB / 294.2 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1349/0.4292, allocations: 77.21 MB / 371.4 MB, free: 4.758 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.4295, allocations: 63.97 kB / 371.5 MB, free: 4.695 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09407/0.5236, allocations: 27.73 MB / 399.2 MB, free: 8.988 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.5236, allocations: 0 / 399.2 MB, free: 8.988 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.221e-05/0.5237, allocations: 20 kB / 399.2 MB, free: 8.969 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001402/0.5251, allocations: 1.012 MB / 400.2 MB, free: 7.867 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/0.5251, allocations: 12.03 kB / 400.2 MB, free: 7.855 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002461/0.5254, allocations: 90.92 kB / 400.3 MB, free: 7.766 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008612/0.5263, allocations: 411.7 kB / 400.7 MB, free: 7.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.882e-05/0.5264, allocations: 16 kB / 400.8 MB, free: 7.305 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.5265, allocations: 20 kB / 400.8 MB, free: 7.285 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008147/0.5273, allocations: 352.1 kB / 401.1 MB, free: 6.938 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.5284, allocations: 494.2 kB / 401.6 MB, free: 6.449 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.5284, allocations: 4 kB / 401.6 MB, free: 6.445 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.981e-05/0.5285, allocations: 11.98 kB / 401.6 MB, free: 6.434 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/0.5285, allocations: 3.953 kB / 401.6 MB, free: 6.43 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001972/0.5305, allocations: 0.8287 MB / 402.4 MB, free: 5.562 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009874/0.5316, allocations: 0.4944 MB / 402.9 MB, free: 5.059 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009228/0.5325, allocations: 484.7 kB / 403.4 MB, free: 4.582 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.152e-05/0.5325, allocations: 4 kB / 403.4 MB, free: 4.578 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00123/0.5338, allocations: 0.647 MB / 404.1 MB, free: 3.891 MB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 2.946e-06/0.5338, allocations: 4 kB / 404.1 MB, free: 3.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.002323/0.5361, allocations: 0.9055 MB / 405 MB, free: 2.977 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002108/0.5364, allocations: 275.4 kB / 405.2 MB, free: 2.652 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002229/0.5386, allocations: 0.9917 MB / 406.2 MB, free: 1.652 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000193/0.5388, allocations: 41.7 kB / 406.3 MB, free: 1.605 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.539, allocations: 200.5 kB / 406.5 MB, free: 1.406 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001764/0.5392, allocations: 75.11 kB / 406.5 MB, free: 1.332 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.477e-05/0.5393, allocations: 4 kB / 406.6 MB, free: 1.328 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.5394, allocations: 330.8 kB / 406.9 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007494/0.5402, allocations: 336.2 kB / 407.2 MB, free: 0.668 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000741/0.541, allocations: 340.5 kB / 407.5 MB, free: 344 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005401/0.5415, allocations: 241.1 kB / 407.8 MB, free: 104 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.5415, allocations: 0 / 407.8 MB, free: 104 kB / 346.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002045/0.5436, allocations: 0.8451 MB / 408.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002409/0.5439, allocations: 239.9 kB / 408.8 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.5439, allocations: 4 kB / 408.9 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.5439, allocations: 3.938 kB / 408.9 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.653e-05/0.544, allocations: 4 kB / 408.9 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.544, allocations: 11.92 kB / 408.9 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005601/0.5445, allocations: 35.88 kB / 408.9 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002588/0.5448, allocations: 152.2 kB / 409.1 MB, free: 14.77 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: 40 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,$PRE.dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.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.0005322/0.5454, allocations: 409.7 kB / 409.5 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002349/0.5477, allocations: 0.9689 MB / 410.4 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001973/0.548, allocations: 90.97 kB / 410.5 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004899/0.5485, allocations: 156.1 kB / 410.7 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.5485, allocations: 3.984 kB / 410.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.5485, allocations: 4 kB / 410.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.5485, allocations: 0 / 410.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003473/0.552, allocations: 1.623 MB / 412.3 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.552, allocations: 0 / 412.3 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.627e-05/0.5521, allocations: 4 kB / 412.3 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.5521, allocations: 4 kB / 412.3 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/0.5522, allocations: 39.97 kB / 412.3 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.5522, allocations: 3.938 kB / 412.3 MB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.5522, allocations: 0 / 412.3 MB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002404/0.5547, allocations: 1.072 MB / 413.4 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001422/0.5561, allocations: 0.562 MB / 414 MB, free: 9.699 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002938/0.5564, allocations: 59.97 kB / 414 MB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005332/0.557, allocations: 31.97 kB / 414.1 MB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000664/0.5576, allocations: 243.7 kB / 414.3 MB, free: 9.371 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002652/0.5579, allocations: 159.8 kB / 414.5 MB, free: 9.215 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001763/0.5597, allocations: 0.8188 MB / 415.3 MB, free: 8.398 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.32e-07/0.5597, allocations: 0 / 415.3 MB, free: 8.398 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008048/0.5605, allocations: 116 kB / 415.4 MB, free: 8.285 MB / 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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.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.002981/0.5635, allocations: 1.717 MB / 417.1 MB, free: 6.539 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002472/0.566, allocations: 1.484 MB / 418.6 MB, free: 4.969 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.5661, allocations: 0 / 418.6 MB, free: 4.969 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001552/0.5676, allocations: 1.093 MB / 419.7 MB, free: 3.789 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001945/0.5696, allocations: 279.7 kB / 420 MB, free: 3.516 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005103/0.5747, allocations: 1.938 MB / 421.9 MB, free: 1.527 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001098/0.5759, allocations: 1.035 MB / 422.9 MB, free: 476 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001544/0.5761, allocations: 79.41 kB / 423 MB, free: 396 kB / 362.7 MB Notification: Performance of SimCode: time 1.082e-06/0.5761, allocations: 0 / 423 MB, free: 396 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.85/3.426, allocations: 9.43 MB / 432.4 MB, free: 105.6 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat