Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRH,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.035/2.035, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.989e-05/3.997e-05, allocations: 14.02 kB / 292.2 MB, free: 8.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1083, allocations: 50.4 MB / 342.6 MB, free: 5.805 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4939/0.6023, allocations: 83.52 MB / 426.2 MB, free: 10.33 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002552/0.6026, allocations: 69.09 kB / 426.2 MB, free: 10.3 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1089/0.7115, allocations: 31.53 MB / 457.8 MB, free: 15.56 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.7115, allocations: 0 / 457.8 MB, free: 15.56 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.363e-05/0.7116, allocations: 16 kB / 457.8 MB, free: 15.54 MB / 378.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.001868/0.7135, allocations: 1.316 MB / 459.1 MB, free: 14.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.7135, allocations: 8.031 kB / 459.1 MB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001555/0.7137, allocations: 58.55 kB / 459.2 MB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002549/0.7139, allocations: 130.5 kB / 459.3 MB, free: 13.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001072/0.715, allocations: 0.5051 MB / 459.8 MB, free: 13.37 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.787e-05/0.7151, allocations: 35.86 kB / 459.8 MB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001329/0.7153, allocations: 28 kB / 459.9 MB, free: 13.31 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/0.7168, allocations: 0.6144 MB / 460.5 MB, free: 12.69 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.7168, allocations: 0 / 460.5 MB, free: 12.69 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001041/0.7169, allocations: 23.98 kB / 460.5 MB, free: 12.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.7169, allocations: 0 / 460.5 MB, free: 12.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.718, allocations: 463.7 kB / 460.9 MB, free: 12.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002542/0.7206, allocations: 1.084 MB / 462 MB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001364/0.722, allocations: 0.6898 MB / 462.7 MB, free: 10.37 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00131/0.7233, allocations: 0.6767 MB / 463.4 MB, free: 9.691 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.636e-05/0.7233, allocations: 3.984 kB / 463.4 MB, free: 9.688 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001481/0.7248, allocations: 0.7502 MB / 464.1 MB, free: 8.902 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 3.025e-06/0.7249, allocations: 0 / 464.1 MB, free: 8.902 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.00317/0.728, allocations: 1.423 MB / 465.6 MB, free: 7.422 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002608/0.7283, allocations: 325 kB / 465.9 MB, free: 7.043 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003717/0.7321, allocations: 1.594 MB / 467.5 MB, free: 5.434 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001943/0.7323, allocations: 49.69 kB / 467.5 MB, free: 5.379 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003523/0.7326, allocations: 230.5 kB / 467.8 MB, free: 5.148 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001935/0.7329, allocations: 95.06 kB / 467.8 MB, free: 5.055 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.76e-05/0.733, allocations: 12 kB / 467.9 MB, free: 5.043 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002322/0.7332, allocations: 378.7 kB / 468.2 MB, free: 4.664 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001068/0.7343, allocations: 452 kB / 468.7 MB, free: 4.219 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.7353, allocations: 459.8 kB / 469.1 MB, free: 3.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009685/0.7363, allocations: 0.5872 MB / 469.7 MB, free: 3.133 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.7363, allocations: 0 / 469.7 MB, free: 3.133 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002954/0.7393, allocations: 1.343 MB / 471 MB, free: 1.734 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002904/0.7396, allocations: 289.5 kB / 471.3 MB, free: 1.402 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.7396, allocations: 0 / 471.3 MB, free: 1.402 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.7397, allocations: 0 / 471.3 MB, free: 1.402 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.395e-05/0.7397, allocations: 11.94 kB / 471.3 MB, free: 1.391 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.7397, allocations: 3.984 kB / 471.3 MB, free: 1.387 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006644/0.7404, allocations: 43.97 kB / 471.4 MB, free: 1.344 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002766/0.7407, allocations: 151.9 kB / 471.5 MB, free: 1.195 MB / 378.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.0006385/0.7413, allocations: 470.4 kB / 472 MB, free: 0.6797 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002546/0.7416, allocations: 134.4 kB / 472.1 MB, free: 0.5469 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008148/0.7424, allocations: 251.7 kB / 472.4 MB, free: 304 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-06/0.7425, allocations: 4 kB / 472.4 MB, free: 300 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.7425, allocations: 4 kB / 472.4 MB, free: 296 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.7425, allocations: 0 / 472.4 MB, free: 296 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005042/0.7476, allocations: 2.388 MB / 474.8 MB, free: 13.79 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.7476, allocations: 0 / 474.8 MB, free: 13.79 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.49e-05/0.7476, allocations: 8 kB / 474.8 MB, free: 13.78 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.7476, allocations: 0 / 474.8 MB, free: 13.78 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001256/0.7478, allocations: 39.97 kB / 474.8 MB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.7478, allocations: 4 kB / 474.8 MB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.7478, allocations: 0 / 474.8 MB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003322/0.7511, allocations: 1.626 MB / 476.4 MB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001778/0.7529, allocations: 0.6862 MB / 477.1 MB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002951/0.7532, allocations: 59.97 kB / 477.2 MB, free: 11.28 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006239/0.7539, allocations: 39.91 kB / 477.2 MB, free: 11.24 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009361/0.7548, allocations: 359.6 kB / 477.6 MB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000269/0.7551, allocations: 159.9 kB / 477.7 MB, free: 10.73 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003068/0.7582, allocations: 1.315 MB / 479.1 MB, free: 9.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.7582, allocations: 0 / 479.1 MB, free: 9.41 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008374/0.7591, allocations: 152 kB / 479.2 MB, free: 9.262 MB / 394.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.0039/0.763, allocations: 2.265 MB / 481.5 MB, free: 6.918 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003285/0.7663, allocations: 1.909 MB / 483.4 MB, free: 4.91 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.7663, allocations: 0 / 483.4 MB, free: 4.91 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002051/0.7684, allocations: 1.39 MB / 484.8 MB, free: 3.422 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001946/0.7704, allocations: 316.6 kB / 485.1 MB, free: 3.117 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00687/0.7773, allocations: 2.696 MB / 487.8 MB, free: 380 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001564/0.7789, allocations: 1.217 MB / 489 MB, free: 15.13 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005284/0.7794, allocations: 198.9 kB / 489.2 MB, free: 14.94 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002653/0.7797, allocations: 151.4 kB / 489.3 MB, free: 14.79 MB / 410.7 MB Notification: Performance of SimCode: time 1.563e-06/0.7797, allocations: 0 / 489.3 MB, free: 14.79 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05964/0.8394, allocations: 22.05 MB / 0.4994 GB, free: 8.508 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002653/0.8397, allocations: 155.1 kB / 0.4995 GB, free: 8.277 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.963/3.803, allocations: 4 kB / 0.4995 GB, free: 8.273 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat does not exist to compare? outputFormat=mat