Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRH,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.844/1.844, allocations: 194.9 MB / 208 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.045e-05/3.052e-05, allocations: 4 kB / 255.5 MB, free: 2.617 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08918/0.08923, allocations: 44.5 MB / 300 MB, free: 6.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4336/0.5229, allocations: 78.13 MB / 378.1 MB, free: 12.28 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/0.5232, allocations: 68.03 kB / 378.2 MB, free: 12.28 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09264/0.6159, allocations: 31.21 MB / 409.4 MB, free: 6.207 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.6159, allocations: 0 / 409.4 MB, free: 6.207 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.393e-05/0.616, allocations: 11.69 kB / 409.4 MB, free: 6.207 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.002531/0.6186, allocations: 1.3 MB / 410.7 MB, free: 5.133 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.717e-05/0.6186, allocations: 7.75 kB / 410.7 MB, free: 5.133 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003135/0.619, allocations: 59.61 kB / 410.8 MB, free: 5.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004442/0.6194, allocations: 132.5 kB / 410.9 MB, free: 5.023 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001313/0.6208, allocations: 0.5128 MB / 411.4 MB, free: 4.676 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/0.6209, allocations: 22.98 kB / 411.4 MB, free: 4.672 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001903/0.6211, allocations: 26.78 kB / 411.4 MB, free: 4.672 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002086/0.6232, allocations: 0.627 MB / 412.1 MB, free: 4.504 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.6233, allocations: 0 / 412.1 MB, free: 4.504 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001364/0.6234, allocations: 10.72 kB / 412.1 MB, free: 4.504 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.6235, allocations: 3.844 kB / 412.1 MB, free: 4.504 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001398/0.6249, allocations: 463.2 kB / 412.5 MB, free: 4.445 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003389/0.6283, allocations: 1.097 MB / 413.6 MB, free: 3.844 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001771/0.6301, allocations: 0.6897 MB / 414.3 MB, free: 3.762 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001645/0.6318, allocations: 0.6775 MB / 415 MB, free: 3.695 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.6318, allocations: 0 / 415 MB, free: 3.695 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001845/0.6337, allocations: 0.7538 MB / 415.8 MB, free: 3.371 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 5.541e-06/0.6337, allocations: 0 / 415.8 MB, free: 3.371 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.004159/0.6379, allocations: 1.418 MB / 417.2 MB, free: 2.863 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000259/0.6382, allocations: 323.1 kB / 417.5 MB, free: 2.539 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005175/0.6434, allocations: 1.602 MB / 419.1 MB, free: 1.891 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002864/0.6437, allocations: 52.25 kB / 419.1 MB, free: 1.855 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004356/0.6442, allocations: 231.7 kB / 419.4 MB, free: 1.742 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002531/0.6444, allocations: 87.16 kB / 419.5 MB, free: 1.691 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001282/0.6446, allocations: 15.38 kB / 419.5 MB, free: 1.691 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002231/0.6448, allocations: 380.6 kB / 419.8 MB, free: 1.352 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001397/0.6463, allocations: 445.5 kB / 420.3 MB, free: 1.297 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001386/0.6477, allocations: 454 kB / 420.7 MB, free: 1.238 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/0.6489, allocations: 0.5789 MB / 421.3 MB, free: 0.918 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.6489, allocations: 4 kB / 421.3 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.003746/0.6527, allocations: 1.353 MB / 422.7 MB, free: 456 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003092/0.653, allocations: 282.4 kB / 422.9 MB, free: 180 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.6531, allocations: 0 / 422.9 MB, free: 180 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.633e-05/0.6531, allocations: 7.828 kB / 422.9 MB, free: 176 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.177e-05/0.6532, allocations: 11.67 kB / 423 MB, free: 168 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.6532, allocations: 3.875 kB / 423 MB, free: 168 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.6543, allocations: 38.34 kB / 423 MB, free: 160 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003336/0.6546, allocations: 154 kB / 423.1 MB, free: 148 kB / 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.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.0008384/0.6555, allocations: 467.9 kB / 423.6 MB, free: 15.74 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000361/0.6559, allocations: 136.5 kB / 423.7 MB, free: 15.67 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001171/0.6571, allocations: 251.4 kB / 424 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/0.6571, allocations: 7.172 kB / 424 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.6571, allocations: 3.938 kB / 424 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.6571, allocations: 0 / 424 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006956/0.6641, allocations: 2.392 MB / 426.4 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.6642, allocations: 0 / 426.4 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.512e-05/0.6642, allocations: 7.828 kB / 426.4 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.448e-06/0.6643, allocations: 0 / 426.4 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001706/0.6645, allocations: 44.03 kB / 426.4 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/0.6645, allocations: 0 / 426.4 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.6645, allocations: 0 / 426.4 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004757/0.6693, allocations: 1.615 MB / 428 MB, free: 13.83 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002167/0.6715, allocations: 0.6745 MB / 428.7 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002834/0.6718, allocations: 64.09 kB / 428.8 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006063/0.6724, allocations: 46.3 kB / 428.8 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008132/0.6732, allocations: 356.4 kB / 429.2 MB, free: 13.37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002242/0.6735, allocations: 162.3 kB / 429.3 MB, free: 13.35 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002885/0.6764, allocations: 1.322 MB / 430.7 MB, free: 12.84 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.02e-07/0.6764, allocations: 0 / 430.7 MB, free: 12.84 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007846/0.6772, allocations: 148 kB / 430.8 MB, free: 12.84 MB / 330.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.003518/0.6807, allocations: 2.259 MB / 433.1 MB, free: 11.66 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002968/0.6837, allocations: 1.91 MB / 435 MB, free: 10.65 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.6838, allocations: 0 / 435 MB, free: 10.65 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00194/0.6857, allocations: 1.395 MB / 436.4 MB, free: 9.465 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002011/0.6878, allocations: 306.3 kB / 436.7 MB, free: 9.168 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007409/0.6952, allocations: 2.711 MB / 439.4 MB, free: 6.406 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002041/0.6973, allocations: 1.213 MB / 440.6 MB, free: 5.172 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005364/0.6978, allocations: 187 kB / 440.8 MB, free: 4.988 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002611/0.6981, allocations: 155.4 kB / 440.9 MB, free: 4.836 MB / 330.7 MB Notification: Performance of SimCode: time 1.443e-06/0.6981, allocations: 0 / 440.9 MB, free: 4.836 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06038/0.7585, allocations: 22.04 MB / 463 MB, free: 14.44 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000332/0.7589, allocations: 151.5 kB / 463.1 MB, free: 14.21 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.064/3.823, allocations: 3.938 kB / 463.1 MB, free: 14.21 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat does not exist to compare? outputFormat=mat