Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRH,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.955/1.955, allocations: 205.8 MB / 218.9 MB, free: 9.352 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.228e-05/4.247e-05, allocations: 4 kB / 269.5 MB, free: 6.305 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1133, allocations: 47.56 MB / 317 MB, free: 6.656 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4437/0.557, allocations: 82.37 MB / 399.4 MB, free: 5.652 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002719/0.5574, allocations: 65.16 kB / 399.5 MB, free: 5.621 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1076/0.665, allocations: 31.23 MB / 430.7 MB, free: 11.26 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.6651, allocations: 0 / 430.7 MB, free: 11.26 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.393e-05/0.6651, allocations: 20 kB / 430.7 MB, free: 11.24 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.002453/0.6676, allocations: 1.308 MB / 432 MB, free: 9.914 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.6677, allocations: 12.03 kB / 432 MB, free: 9.902 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002605/0.6679, allocations: 57.3 kB / 432.1 MB, free: 9.844 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003005/0.6683, allocations: 134.5 kB / 432.2 MB, free: 9.711 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001229/0.6695, allocations: 0.5034 MB / 432.7 MB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.023e-05/0.6696, allocations: 22.5 kB / 432.7 MB, free: 9.18 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.6698, allocations: 26.81 kB / 432.8 MB, free: 9.156 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/0.6713, allocations: 0.6258 MB / 433.4 MB, free: 8.676 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.6714, allocations: 0 / 433.4 MB, free: 8.676 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001029/0.6715, allocations: 19 kB / 433.4 MB, free: 8.664 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.6715, allocations: 0 / 433.4 MB, free: 8.664 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001107/0.6726, allocations: 465.4 kB / 433.9 MB, free: 8.34 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002772/0.6754, allocations: 1.089 MB / 434.9 MB, free: 7.422 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/0.677, allocations: 0.685 MB / 435.6 MB, free: 7.023 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001374/0.6784, allocations: 0.679 MB / 436.3 MB, free: 6.641 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.63e-05/0.6784, allocations: 4 kB / 436.3 MB, free: 6.637 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001582/0.68, allocations: 0.7522 MB / 437.1 MB, free: 5.996 MB / 346.7 MB Notification: Performance of pre-optimization done (n=36): time 6.693e-06/0.6801, allocations: 3.984 kB / 437.1 MB, free: 5.992 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.00339/0.6835, allocations: 1.414 MB / 438.5 MB, free: 4.801 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004143/0.6839, allocations: 334.1 kB / 438.8 MB, free: 4.434 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005434/0.6894, allocations: 1.596 MB / 440.4 MB, free: 3.098 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002537/0.6897, allocations: 41.2 kB / 440.4 MB, free: 3.055 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003487/0.6901, allocations: 245.3 kB / 440.7 MB, free: 2.902 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002065/0.6903, allocations: 82.19 kB / 440.8 MB, free: 2.832 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.777e-05/0.6904, allocations: 11.69 kB / 440.8 MB, free: 2.824 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002373/0.6906, allocations: 380.7 kB / 441.2 MB, free: 2.465 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/0.6917, allocations: 448.7 kB / 441.6 MB, free: 2.16 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009909/0.6927, allocations: 449.2 kB / 442 MB, free: 1.859 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.6937, allocations: 0.5923 MB / 442.6 MB, free: 1.336 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.6937, allocations: 0 / 442.6 MB, free: 1.336 MB / 346.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002893/0.6966, allocations: 1.343 MB / 444 MB, free: 132 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003313/0.697, allocations: 293.5 kB / 444.3 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.697, allocations: 3.984 kB / 444.3 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.365e-05/0.6971, allocations: 0 / 444.3 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.993e-05/0.6971, allocations: 4 kB / 444.3 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.6971, allocations: 0 / 444.3 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007341/0.6979, allocations: 59.84 kB / 444.3 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002822/0.6982, allocations: 159.9 kB / 444.5 MB, free: 15.57 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: 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.0006372/0.6988, allocations: 462.4 kB / 444.9 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002819/0.6991, allocations: 126.5 kB / 445 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007872/0.6999, allocations: 251.7 kB / 445.3 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.6999, allocations: 4 kB / 445.3 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.7, allocations: 0 / 445.3 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.7, allocations: 4 kB / 445.3 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005106/0.7051, allocations: 2.391 MB / 447.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.7051, allocations: 0 / 447.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.167e-05/0.7052, allocations: 4 kB / 447.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.005e-06/0.7052, allocations: 0 / 447.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001742/0.7054, allocations: 43.97 kB / 447.7 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.399e-06/0.7054, allocations: 0 / 447.7 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.7054, allocations: 4 kB / 447.7 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003895/0.7093, allocations: 1.626 MB / 449.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002293/0.7117, allocations: 0.6825 MB / 450.1 MB, free: 9.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004585/0.7122, allocations: 63.95 kB / 450.1 MB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009319/0.7131, allocations: 39.97 kB / 450.2 MB, free: 9.629 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001336/0.7145, allocations: 351.6 kB / 450.5 MB, free: 9.285 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003086/0.7148, allocations: 163.9 kB / 450.7 MB, free: 9.125 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004678/0.7195, allocations: 1.315 MB / 452 MB, free: 7.805 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.52e-07/0.7195, allocations: 0 / 452 MB, free: 7.805 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001329/0.7209, allocations: 148 kB / 452.1 MB, free: 7.66 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: 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.005495/0.7264, allocations: 2.269 MB / 454.4 MB, free: 5.312 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004624/0.7311, allocations: 1.917 MB / 456.3 MB, free: 3.297 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/0.7311, allocations: 7.938 kB / 456.3 MB, free: 3.289 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002906/0.7341, allocations: 1.386 MB / 457.7 MB, free: 1.805 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0029/0.737, allocations: 303.1 kB / 458 MB, free: 1.512 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007239/0.7443, allocations: 2.708 MB / 460.7 MB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001534/0.7459, allocations: 1.213 MB / 461.9 MB, free: 13.51 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005301/0.7464, allocations: 195 kB / 462.1 MB, free: 13.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002616/0.7467, allocations: 151.4 kB / 462.3 MB, free: 13.17 MB / 378.7 MB Notification: Performance of SimCode: time 1.182e-06/0.7467, allocations: 0 / 462.3 MB, free: 13.17 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07122/0.8179, allocations: 22.04 MB / 484.3 MB, free: 6.773 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003121/0.8183, allocations: 147.3 kB / 484.4 MB, free: 6.551 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.963/3.782, allocations: 0 / 484.4 MB, free: 6.551 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat does not exist to compare? outputFormat=mat