Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRL,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.627/1.627, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.117e-05/3.116e-05, allocations: 7.984 kB / 225.1 MB, free: 2.609 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2541, allocations: 38.76 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1283/0.3824, allocations: 72.86 MB / 336.7 MB, free: 0.793 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002484/0.3827, allocations: 71.95 kB / 336.8 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1062/0.4889, allocations: 31.83 MB / 368.6 MB, free: 0.875 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.489, allocations: 0 / 368.6 MB, free: 0.875 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.064e-05/0.489, allocations: 16 kB / 368.6 MB, free: 0.8594 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.2126/0.7017, allocations: 1.278 MB / 369.9 MB, free: 87.4 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.092e-05/0.7018, allocations: 9.5 kB / 369.9 MB, free: 87.4 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002597/0.702, allocations: 61.38 kB / 370 MB, free: 87.36 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003025/0.7023, allocations: 127.5 kB / 370.1 MB, free: 87.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001145/0.7035, allocations: 0.5071 MB / 370.6 MB, free: 87.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.775e-05/0.7036, allocations: 22.91 kB / 370.6 MB, free: 87.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.7038, allocations: 33 kB / 370.6 MB, free: 87.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001746/0.7055, allocations: 0.6163 MB / 371.3 MB, free: 86.98 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.7055, allocations: 0.6875 kB / 371.3 MB, free: 86.98 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001083/0.7057, allocations: 18.31 kB / 371.3 MB, free: 86.98 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.7057, allocations: 2.719 kB / 371.3 MB, free: 86.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.7067, allocations: 454.1 kB / 371.7 MB, free: 86.98 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002044/0.7088, allocations: 1.038 MB / 372.8 MB, free: 86.64 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/0.7099, allocations: 0.6821 MB / 373.4 MB, free: 86.62 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001034/0.7109, allocations: 0.6709 MB / 374.1 MB, free: 86.61 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.064e-05/0.711, allocations: 0 / 374.1 MB, free: 86.61 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/0.7121, allocations: 0.7548 MB / 374.9 MB, free: 86.43 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 2.345e-06/0.7122, allocations: 0 / 374.9 MB, free: 86.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002615/0.7148, allocations: 1.395 MB / 376.3 MB, free: 86.09 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001746/0.715, allocations: 321.8 kB / 376.6 MB, free: 85.77 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002486/0.7175, allocations: 1.449 MB / 378 MB, free: 85.46 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001201/0.7176, allocations: 45.53 kB / 378.1 MB, free: 85.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001617/0.7178, allocations: 239.7 kB / 378.3 MB, free: 85.27 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.718, allocations: 90.06 kB / 378.4 MB, free: 85.24 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.468e-05/0.7181, allocations: 12.48 kB / 378.4 MB, free: 85.24 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.964e-05/0.7181, allocations: 325.8 kB / 378.7 MB, free: 84.93 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008546/0.719, allocations: 443.3 kB / 379.2 MB, free: 84.9 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008442/0.7199, allocations: 447.2 kB / 379.6 MB, free: 84.76 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007626/0.7206, allocations: 0.577 MB / 380.2 MB, free: 84.39 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.7207, allocations: 1.719 kB / 380.2 MB, free: 84.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002319/0.723, allocations: 1.289 MB / 381.5 MB, free: 83.8 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001986/0.7232, allocations: 290.3 kB / 381.7 MB, free: 83.53 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.7232, allocations: 0 / 381.7 MB, free: 83.53 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.703e-05/0.7233, allocations: 0 / 381.7 MB, free: 83.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.724e-05/0.7233, allocations: 7.656 kB / 381.8 MB, free: 83.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.7233, allocations: 3.438 kB / 381.8 MB, free: 83.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000648/0.724, allocations: 42.59 kB / 381.8 MB, free: 83.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002175/0.7242, allocations: 155.5 kB / 382 MB, free: 83.52 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: 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.0004714/0.7247, allocations: 471 kB / 382.4 MB, free: 83.12 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001987/0.7249, allocations: 133.3 kB / 382.5 MB, free: 83.06 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004719/0.7254, allocations: 196.9 kB / 382.7 MB, free: 82.96 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.7254, allocations: 7.281 kB / 382.7 MB, free: 82.96 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.7254, allocations: 1.5 kB / 382.7 MB, free: 82.96 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.7254, allocations: 0 / 382.7 MB, free: 82.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003658/0.7291, allocations: 2.312 MB / 385.1 MB, free: 81.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.7291, allocations: 0.75 kB / 385.1 MB, free: 81.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.83e-05/0.7292, allocations: 3.875 kB / 385.1 MB, free: 81.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.7292, allocations: 0 / 385.1 MB, free: 81.8 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001239/0.7293, allocations: 39.36 kB / 385.1 MB, free: 81.8 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.7293, allocations: 0 / 385.1 MB, free: 81.8 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.7293, allocations: 7.062 kB / 385.1 MB, free: 81.8 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002792/0.7321, allocations: 1.601 MB / 386.7 MB, free: 80.62 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00155/0.7337, allocations: 0.6595 MB / 387.4 MB, free: 80.06 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002776/0.734, allocations: 61.56 kB / 387.4 MB, free: 80.01 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006103/0.7347, allocations: 43.11 kB / 387.5 MB, free: 79.98 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007717/0.7354, allocations: 361.1 kB / 387.8 MB, free: 79.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002135/0.7357, allocations: 157.8 kB / 388 MB, free: 79.58 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00223/0.7379, allocations: 1.197 MB / 389.2 MB, free: 78.52 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.7379, allocations: 3.562 kB / 389.2 MB, free: 78.52 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000839/0.7388, allocations: 152 kB / 389.3 MB, free: 78.38 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: 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.003149/0.7419, allocations: 2.247 MB / 391.6 MB, free: 76.23 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002539/0.7445, allocations: 1.889 MB / 393.5 MB, free: 74.37 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.7445, allocations: 0 / 393.5 MB, free: 74.37 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001521/0.7461, allocations: 1.385 MB / 394.8 MB, free: 72.96 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001777/0.7479, allocations: 297.3 kB / 395.1 MB, free: 72.75 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005117/0.753, allocations: 2.621 MB / 397.8 MB, free: 70.38 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001002/0.754, allocations: 1.166 MB / 398.9 MB, free: 69.32 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002129/0.7542, allocations: 153.6 kB / 399.1 MB, free: 69.19 MB / 314.7 MB Notification: Performance of SimCode: time 1.112e-06/0.7542, allocations: 0 / 399.1 MB, free: 69.19 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.67/3.425, allocations: 13.66 MB / 412.7 MB, free: 56.51 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat does not exist to compare? outputFormat=mat