Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.992/1.992, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.865e-05/3.869e-05, allocations: 10.02 kB / 292.7 MB, free: 8.277 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.126, allocations: 50.41 MB / 343.2 MB, free: 5.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4673/0.5934, allocations: 83.57 MB / 426.7 MB, free: 10.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/0.5937, allocations: 74.33 kB / 426.8 MB, free: 10.26 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1385/0.7322, allocations: 33.09 MB / 459.9 MB, free: 13.97 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.205e-06/0.7323, allocations: 0 / 459.9 MB, free: 13.97 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.723e-05/0.7323, allocations: 16 kB / 459.9 MB, free: 13.95 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.002512/0.7349, allocations: 1.303 MB / 461.2 MB, free: 12.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.023e-05/0.735, allocations: 12.03 kB / 461.2 MB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000197/0.7352, allocations: 58.55 kB / 461.3 MB, free: 12.47 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003693/0.7356, allocations: 142.3 kB / 461.4 MB, free: 12.33 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001425/0.737, allocations: 0.509 MB / 461.9 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.203e-05/0.7371, allocations: 23.98 kB / 461.9 MB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000181/0.7373, allocations: 28 kB / 462 MB, free: 11.72 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002085/0.7394, allocations: 0.6222 MB / 462.6 MB, free: 11.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.7394, allocations: 0 / 462.6 MB, free: 11.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001433/0.7396, allocations: 19.98 kB / 462.6 MB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.7396, allocations: 4 kB / 462.6 MB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001531/0.7412, allocations: 451.8 kB / 463.1 MB, free: 10.63 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003506/0.7447, allocations: 1.08 MB / 464.1 MB, free: 9.492 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001896/0.7466, allocations: 0.6859 MB / 464.8 MB, free: 8.797 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001815/0.7485, allocations: 0.6767 MB / 465.5 MB, free: 8.117 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.7485, allocations: 8 kB / 465.5 MB, free: 8.109 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002047/0.7506, allocations: 0.7554 MB / 466.3 MB, free: 7.316 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 3.827e-06/0.7506, allocations: 4 kB / 466.3 MB, free: 7.312 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.004386/0.755, allocations: 1.411 MB / 467.7 MB, free: 5.844 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003495/0.7554, allocations: 321 kB / 468 MB, free: 5.469 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005183/0.7606, allocations: 1.606 MB / 469.6 MB, free: 3.848 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001943/0.7608, allocations: 49.69 kB / 469.7 MB, free: 3.793 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005117/0.7613, allocations: 234.4 kB / 469.9 MB, free: 3.559 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002493/0.7616, allocations: 91.16 kB / 470 MB, free: 3.469 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.7617, allocations: 12 kB / 470 MB, free: 3.457 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003321/0.7621, allocations: 378.7 kB / 470.4 MB, free: 3.078 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001518/0.7636, allocations: 448 kB / 470.8 MB, free: 2.637 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001542/0.7652, allocations: 455.9 kB / 471.2 MB, free: 2.191 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001425/0.7666, allocations: 0.5795 MB / 471.8 MB, free: 1.562 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.7666, allocations: 7.938 kB / 471.8 MB, free: 1.555 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00412/0.7708, allocations: 1.347 MB / 473.2 MB, free: 156 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004332/0.7713, allocations: 289.5 kB / 473.5 MB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.7713, allocations: 0 / 473.5 MB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.501e-05/0.7713, allocations: 7.891 kB / 473.5 MB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.805e-05/0.7714, allocations: 4 kB / 473.5 MB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.7714, allocations: 0 / 473.5 MB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007122/0.7721, allocations: 43.88 kB / 473.5 MB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002905/0.7724, allocations: 155.9 kB / 473.7 MB, free: 15.61 MB / 394.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.0006569/0.7731, allocations: 470.4 kB / 474.1 MB, free: 15.1 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002675/0.7734, allocations: 130.5 kB / 474.2 MB, free: 14.97 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008375/0.7742, allocations: 247.7 kB / 474.5 MB, free: 14.73 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.7743, allocations: 4 kB / 474.5 MB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.899e-06/0.7743, allocations: 3.953 kB / 474.5 MB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.7743, allocations: 0 / 474.5 MB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005151/0.7795, allocations: 2.396 MB / 476.9 MB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.7795, allocations: 0 / 476.9 MB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.38e-05/0.7795, allocations: 3.984 kB / 476.9 MB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-06/0.7796, allocations: 0 / 476.9 MB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001324/0.7797, allocations: 47.92 kB / 476.9 MB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.783e-06/0.7797, allocations: 4 kB / 476.9 MB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.7797, allocations: 0 / 476.9 MB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003423/0.7832, allocations: 1.618 MB / 478.6 MB, free: 10.47 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001943/0.7851, allocations: 0.6863 MB / 479.2 MB, free: 9.762 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003076/0.7855, allocations: 59.97 kB / 479.3 MB, free: 9.703 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006535/0.7861, allocations: 47.83 kB / 479.4 MB, free: 9.656 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009314/0.7871, allocations: 351.6 kB / 479.7 MB, free: 9.312 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002868/0.7874, allocations: 163.9 kB / 479.9 MB, free: 9.152 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00333/0.7907, allocations: 1.327 MB / 481.2 MB, free: 7.82 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.7908, allocations: 0 / 481.2 MB, free: 7.82 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009297/0.7917, allocations: 144 kB / 481.3 MB, free: 7.68 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,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.005205/0.7969, allocations: 2.245 MB / 483.6 MB, free: 5.355 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003561/0.8005, allocations: 1.921 MB / 485.5 MB, free: 3.336 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.8006, allocations: 0 / 485.5 MB, free: 3.336 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002167/0.8028, allocations: 1.386 MB / 486.9 MB, free: 1.852 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002026/0.8048, allocations: 303.3 kB / 487.2 MB, free: 1.555 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007181/0.812, allocations: 2.708 MB / 489.9 MB, free: 14.79 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001589/0.8137, allocations: 1.217 MB / 491.1 MB, free: 13.55 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004989/0.8142, allocations: 163 kB / 491.3 MB, free: 13.39 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002679/0.8145, allocations: 151.3 kB / 491.4 MB, free: 13.24 MB / 410.7 MB Notification: Performance of SimCode: time 1.392e-06/0.8145, allocations: 4 kB / 491.4 MB, free: 13.24 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06233/0.8768, allocations: 22.04 MB / 0.5014 GB, free: 6.977 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004271/0.8773, allocations: 147.5 kB / 0.5016 GB, free: 6.75 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.849/3.726, allocations: 7.938 kB / 0.5016 GB, free: 6.742 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat does not exist to compare? outputFormat=mat