Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRL,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.685/1.685, allocations: 171.2 MB / 183.3 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.935e-05/2.946e-05, allocations: 0 / 225.1 MB, free: 2.215 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2566, allocations: 38.78 MB / 263.9 MB, free: 9.789 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1264/0.383, allocations: 72.85 MB / 336.7 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002486/0.3833, allocations: 67.95 kB / 336.8 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1052/0.4885, allocations: 31.81 MB / 368.6 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.4885, allocations: 0 / 368.6 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.213e-05/0.4886, allocations: 20 kB / 368.6 MB, free: 0.9102 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.2155/0.7041, allocations: 1.273 MB / 369.9 MB, free: 87.49 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.072e-05/0.7042, allocations: 10.62 kB / 369.9 MB, free: 87.49 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002727/0.7045, allocations: 59.2 kB / 369.9 MB, free: 87.45 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000305/0.7048, allocations: 127.9 kB / 370.1 MB, free: 87.39 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001171/0.706, allocations: 0.5082 MB / 370.6 MB, free: 87.11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.387e-05/0.7061, allocations: 23.22 kB / 370.6 MB, free: 87.11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.7062, allocations: 29.12 kB / 370.6 MB, free: 87.11 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001755/0.708, allocations: 0.6163 MB / 371.2 MB, free: 87.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.708, allocations: 0.5625 kB / 371.2 MB, free: 87.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001064/0.7081, allocations: 19.03 kB / 371.3 MB, free: 87.07 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.7081, allocations: 3.484 kB / 371.3 MB, free: 87.07 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.7092, allocations: 455.5 kB / 371.7 MB, free: 87.07 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002093/0.7113, allocations: 1.044 MB / 372.8 MB, free: 86.73 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.7124, allocations: 0.6889 MB / 373.4 MB, free: 86.71 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001039/0.7134, allocations: 0.6637 MB / 374.1 MB, free: 86.7 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.776e-05/0.7135, allocations: 7.719 kB / 374.1 MB, free: 86.7 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001185/0.7147, allocations: 0.7488 MB / 374.9 MB, free: 86.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 2.846e-06/0.7147, allocations: 0 / 374.9 MB, free: 86.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002632/0.7173, allocations: 1.397 MB / 376.3 MB, free: 86.18 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001679/0.7175, allocations: 325.4 kB / 376.6 MB, free: 85.86 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002527/0.7201, allocations: 1.448 MB / 378 MB, free: 85.55 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001189/0.7202, allocations: 50.56 kB / 378.1 MB, free: 85.52 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001956/0.7204, allocations: 213.5 kB / 378.3 MB, free: 85.43 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001481/0.7206, allocations: 87.42 kB / 378.4 MB, free: 85.39 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.133e-05/0.7206, allocations: 11 kB / 378.4 MB, free: 85.39 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.7208, allocations: 372.8 kB / 378.7 MB, free: 85.08 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008734/0.7217, allocations: 441.8 kB / 379.2 MB, free: 84.99 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008568/0.7225, allocations: 441.9 kB / 379.6 MB, free: 84.86 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007809/0.7233, allocations: 0.5817 MB / 380.2 MB, free: 84.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.7233, allocations: 0 / 380.2 MB, free: 84.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.003303/0.7267, allocations: 1.322 MB / 381.5 MB, free: 83.88 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002745/0.727, allocations: 289.5 kB / 381.8 MB, free: 83.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.727, allocations: 0 / 381.8 MB, free: 83.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/0.727, allocations: 2.844 kB / 381.8 MB, free: 83.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.722e-05/0.7271, allocations: 7.594 kB / 381.8 MB, free: 83.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.7271, allocations: 3.469 kB / 381.8 MB, free: 83.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008572/0.728, allocations: 44.66 kB / 381.9 MB, free: 83.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002996/0.7283, allocations: 160.9 kB / 382 MB, free: 83.59 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.0006237/0.7289, allocations: 467.7 kB / 382.5 MB, free: 83.19 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000302/0.7292, allocations: 133.9 kB / 382.6 MB, free: 83.12 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006566/0.7299, allocations: 196.8 kB / 382.8 MB, free: 83.03 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.7299, allocations: 3.469 kB / 382.8 MB, free: 83.03 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.73, allocations: 3.562 kB / 382.8 MB, free: 83.03 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.73, allocations: 0 / 382.8 MB, free: 83.03 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00526/0.7352, allocations: 2.317 MB / 385.1 MB, free: 81.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.7353, allocations: 0 / 385.1 MB, free: 81.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.24e-05/0.7353, allocations: 4 kB / 385.1 MB, free: 81.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.215e-06/0.7353, allocations: 3.938 kB / 385.1 MB, free: 81.88 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001493/0.7355, allocations: 36.8 kB / 385.2 MB, free: 81.87 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.7355, allocations: 3.625 kB / 385.2 MB, free: 81.87 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.7355, allocations: 0 / 385.2 MB, free: 81.87 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00389/0.7394, allocations: 1.606 MB / 386.8 MB, free: 80.7 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002108/0.7416, allocations: 0.6579 MB / 387.4 MB, free: 80.13 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004255/0.742, allocations: 59.83 kB / 387.5 MB, free: 80.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009244/0.743, allocations: 38.66 kB / 387.5 MB, free: 80.05 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001203/0.7442, allocations: 359.1 kB / 387.9 MB, free: 79.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003221/0.7445, allocations: 155.6 kB / 388 MB, free: 79.65 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003208/0.7477, allocations: 1.196 MB / 389.2 MB, free: 78.6 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.7478, allocations: 0 / 389.2 MB, free: 78.6 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001103/0.7489, allocations: 156 kB / 389.4 MB, free: 78.45 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.004338/0.7532, allocations: 2.247 MB / 391.6 MB, free: 76.3 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003702/0.757, allocations: 1.893 MB / 393.5 MB, free: 74.44 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.757, allocations: 0 / 393.5 MB, free: 74.44 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002274/0.7593, allocations: 1.389 MB / 394.9 MB, free: 73.03 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002543/0.7618, allocations: 309.2 kB / 395.2 MB, free: 72.81 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009627/0.7715, allocations: 2.52 MB / 397.7 MB, free: 70.52 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00155/0.7731, allocations: 1.167 MB / 398.9 MB, free: 69.47 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003776/0.7735, allocations: 84.69 kB / 399 MB, free: 69.41 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000312/0.7738, allocations: 149.2 kB / 399.1 MB, free: 69.29 MB / 314.7 MB Notification: Performance of SimCode: time 1.042e-06/0.7738, allocations: 0 / 399.1 MB, free: 69.29 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05768/0.8315, allocations: 20.14 MB / 419.3 MB, free: 50.01 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002809/0.8319, allocations: 156.3 kB / 419.4 MB, free: 49.78 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.793/3.625, allocations: 3.938 kB / 419.4 MB, free: 49.78 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat does not exist to compare? outputFormat=mat