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.611/1.611, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.942e-05/2.94e-05, allocations: 4 kB / 225.1 MB, free: 2.246 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.248, allocations: 38.78 MB / 263.9 MB, free: 9.699 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.124/0.372, allocations: 72.84 MB / 336.7 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002518/0.3723, allocations: 67.95 kB / 336.8 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1062/0.4785, allocations: 31.82 MB / 368.6 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4786, allocations: 0 / 368.6 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.368e-05/0.4786, allocations: 16 kB / 368.6 MB, free: 0.8203 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.2127/0.6913, allocations: 1.277 MB / 369.9 MB, free: 87.24 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.378e-05/0.6914, allocations: 9.062 kB / 369.9 MB, free: 87.24 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002479/0.6917, allocations: 60.48 kB / 370 MB, free: 87.2 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003204/0.692, allocations: 128.5 kB / 370.1 MB, free: 87.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00118/0.6932, allocations: 0.5093 MB / 370.6 MB, free: 86.86 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.023e-05/0.6933, allocations: 23.12 kB / 370.6 MB, free: 86.86 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.6934, allocations: 30.72 kB / 370.7 MB, free: 86.86 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001695/0.6951, allocations: 0.6131 MB / 371.3 MB, free: 86.82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.6952, allocations: 3.594 kB / 371.3 MB, free: 86.82 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.6953, allocations: 15.62 kB / 371.3 MB, free: 86.82 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.6953, allocations: 3.531 kB / 371.3 MB, free: 86.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009767/0.6963, allocations: 455 kB / 371.7 MB, free: 86.82 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002126/0.6984, allocations: 1.041 MB / 372.8 MB, free: 86.48 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.6996, allocations: 0.681 MB / 373.5 MB, free: 86.46 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001031/0.7006, allocations: 0.6752 MB / 374.1 MB, free: 86.45 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.121e-05/0.7006, allocations: 0 / 374.1 MB, free: 86.45 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001183/0.7018, allocations: 0.7547 MB / 374.9 MB, free: 86.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 2.635e-06/0.7019, allocations: 3.5 kB / 374.9 MB, free: 86.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.00264/0.7045, allocations: 1.389 MB / 376.3 MB, free: 85.93 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001767/0.7047, allocations: 327.9 kB / 376.6 MB, free: 85.61 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002658/0.7074, allocations: 1.447 MB / 378.1 MB, free: 85.3 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001809/0.7076, allocations: 45.06 kB / 378.1 MB, free: 85.27 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002016/0.7078, allocations: 215.7 kB / 378.3 MB, free: 85.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000167/0.708, allocations: 88.33 kB / 378.4 MB, free: 85.14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.461e-05/0.7081, allocations: 19.53 kB / 378.4 MB, free: 85.14 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.7082, allocations: 369.8 kB / 378.8 MB, free: 84.83 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000879/0.7091, allocations: 439.8 kB / 379.2 MB, free: 84.77 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008506/0.71, allocations: 442.4 kB / 379.6 MB, free: 84.64 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007913/0.7108, allocations: 0.5771 MB / 380.2 MB, free: 84.27 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.7108, allocations: 0 / 380.2 MB, free: 84.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002419/0.7132, allocations: 1.33 MB / 381.5 MB, free: 83.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002083/0.7135, allocations: 287.5 kB / 381.8 MB, free: 83.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.956e-06/0.7135, allocations: 3.719 kB / 381.8 MB, free: 83.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.139e-05/0.7135, allocations: 3.781 kB / 381.8 MB, free: 83.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.706e-05/0.7136, allocations: 0 / 381.8 MB, free: 83.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.7136, allocations: 0 / 381.8 MB, free: 83.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006985/0.7143, allocations: 52.62 kB / 381.9 MB, free: 83.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002265/0.7145, allocations: 158 kB / 382 MB, free: 83.37 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.00048/0.715, allocations: 462.9 kB / 382.5 MB, free: 82.98 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000227/0.7153, allocations: 134.2 kB / 382.6 MB, free: 82.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005364/0.7158, allocations: 198.2 kB / 382.8 MB, free: 82.81 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.7158, allocations: 3.531 kB / 382.8 MB, free: 82.81 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.7159, allocations: 0 / 382.8 MB, free: 82.81 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.7159, allocations: 3.75 kB / 382.8 MB, free: 82.81 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003833/0.7197, allocations: 2.312 MB / 385.1 MB, free: 81.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.7198, allocations: 0 / 385.1 MB, free: 81.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.258e-05/0.7198, allocations: 3.141 kB / 385.1 MB, free: 81.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.735e-06/0.7198, allocations: 3.562 kB / 385.1 MB, free: 81.66 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/0.7199, allocations: 43.22 kB / 385.2 MB, free: 81.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.172e-06/0.7199, allocations: 7.281 kB / 385.2 MB, free: 81.65 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.72, allocations: 1.969 kB / 385.2 MB, free: 81.65 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002762/0.7227, allocations: 1.596 MB / 386.8 MB, free: 80.48 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001508/0.7243, allocations: 0.6647 MB / 387.5 MB, free: 79.92 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002762/0.7246, allocations: 57.14 kB / 387.5 MB, free: 79.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000612/0.7252, allocations: 41.94 kB / 387.6 MB, free: 79.84 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007823/0.726, allocations: 347.9 kB / 387.9 MB, free: 79.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002125/0.7262, allocations: 162.3 kB / 388 MB, free: 79.44 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002209/0.7284, allocations: 1.2 MB / 389.2 MB, free: 78.38 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.92e-07/0.7285, allocations: 0 / 389.2 MB, free: 78.38 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000857/0.7293, allocations: 152 kB / 389.4 MB, free: 78.23 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.003153/0.7325, allocations: 2.246 MB / 391.6 MB, free: 76.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002556/0.7351, allocations: 1.898 MB / 393.5 MB, free: 74.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.7351, allocations: 0 / 393.5 MB, free: 74.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001534/0.7367, allocations: 1.389 MB / 394.9 MB, free: 72.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0019/0.7386, allocations: 295.4 kB / 395.2 MB, free: 72.61 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005288/0.7439, allocations: 2.519 MB / 397.7 MB, free: 70.32 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001004/0.7449, allocations: 1.174 MB / 398.9 MB, free: 69.26 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002789/0.7452, allocations: 72.91 kB / 399 MB, free: 69.21 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002069/0.7455, allocations: 154 kB / 399.1 MB, free: 69.08 MB / 314.7 MB Notification: Performance of SimCode: time 1.462e-06/0.7455, allocations: 0 / 399.1 MB, free: 69.08 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04798/0.7935, allocations: 20.14 MB / 419.3 MB, free: 49.79 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002678/0.7938, allocations: 159.5 kB / 419.4 MB, free: 49.55 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.652/3.446, allocations: 0 / 419.4 MB, free: 49.55 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