Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRH,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.368/2.368, allocations: 195 MB / 202.9 MB, free: 13.76 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.689e-05/2.701e-05, allocations: 4 kB / 249.8 MB, free: 14.78 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3482/0.3483, allocations: 44.5 MB / 294.3 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2081/0.5564, allocations: 77.46 MB / 371.7 MB, free: 4.348 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003914/0.5569, allocations: 75.89 kB / 371.8 MB, free: 4.273 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1276/0.6845, allocations: 31 MB / 402.8 MB, free: 5.285 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.6846, allocations: 0 / 402.8 MB, free: 5.285 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.706e-05/0.6846, allocations: 12 kB / 402.8 MB, free: 5.273 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.002768/0.6874, allocations: 1.307 MB / 404.1 MB, free: 3.867 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.434e-05/0.6875, allocations: 15.97 kB / 404.2 MB, free: 3.852 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004558/0.688, allocations: 126.5 kB / 404.3 MB, free: 3.727 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001657/0.6896, allocations: 0.5129 MB / 404.8 MB, free: 3.164 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.207e-05/0.6898, allocations: 20 kB / 404.8 MB, free: 3.145 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001989/0.69, allocations: 27.94 kB / 404.8 MB, free: 3.117 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001597/0.6916, allocations: 440.4 kB / 405.3 MB, free: 2.688 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00214/0.6937, allocations: 0.5992 MB / 405.9 MB, free: 2.082 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.6938, allocations: 0 / 405.9 MB, free: 2.082 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001477/0.694, allocations: 8 kB / 405.9 MB, free: 2.074 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.694, allocations: 4 kB / 405.9 MB, free: 2.07 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00382/0.6978, allocations: 1.047 MB / 406.9 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001963/0.6998, allocations: 0.6702 MB / 407.6 MB, free: 308 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001997/0.7018, allocations: 0.6647 MB / 408.3 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.345e-05/0.7019, allocations: 4 kB / 408.3 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00225/0.7042, allocations: 0.7438 MB / 409 MB, free: 14.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=36): time 4.528e-06/0.7042, allocations: 0 / 409 MB, free: 14.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.004374/0.7086, allocations: 1.113 MB / 410.1 MB, free: 13.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003837/0.709, allocations: 325 kB / 410.4 MB, free: 13.35 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00571/0.7147, allocations: 1.538 MB / 412 MB, free: 11.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002769/0.715, allocations: 41.69 kB / 412 MB, free: 11.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005617/0.7156, allocations: 230.5 kB / 412.2 MB, free: 11.52 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002999/0.7159, allocations: 83.06 kB / 412.3 MB, free: 11.44 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.7161, allocations: 8 kB / 412.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003736/0.7165, allocations: 386.7 kB / 412.7 MB, free: 11.04 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001617/0.7181, allocations: 435.9 kB / 413.1 MB, free: 10.61 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001559/0.7197, allocations: 435.9 kB / 413.6 MB, free: 10.19 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.7208, allocations: 299.9 kB / 413.9 MB, free: 9.895 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.471e-06/0.7208, allocations: 0 / 413.9 MB, free: 9.895 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.004231/0.7251, allocations: 1.029 MB / 414.9 MB, free: 8.859 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005157/0.7256, allocations: 285.5 kB / 415.2 MB, free: 8.531 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.7256, allocations: 4 kB / 415.2 MB, free: 8.527 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.195e-05/0.7257, allocations: 0 / 415.2 MB, free: 8.527 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.301e-05/0.7257, allocations: 4 kB / 415.2 MB, free: 8.523 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.647e-05/0.7258, allocations: 7.953 kB / 415.2 MB, free: 8.516 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.7268, allocations: 47.91 kB / 415.2 MB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004501/0.7273, allocations: 155.9 kB / 415.4 MB, free: 8.316 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.0009486/0.7283, allocations: 470.4 kB / 415.8 MB, free: 7.801 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004615/0.7329, allocations: 1.171 MB / 417 MB, free: 6.621 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004013/0.7333, allocations: 130.5 kB / 417.1 MB, free: 6.492 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001282/0.7346, allocations: 248 kB / 417.4 MB, free: 6.242 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/0.7347, allocations: 3.953 kB / 417.4 MB, free: 6.238 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.094e-06/0.7347, allocations: 0 / 417.4 MB, free: 6.238 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.7347, allocations: 11.92 kB / 417.4 MB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007326/0.742, allocations: 1.997 MB / 419.4 MB, free: 4.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.623e-06/0.7421, allocations: 0 / 419.4 MB, free: 4.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.373e-05/0.7422, allocations: 3.984 kB / 419.4 MB, free: 4.176 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.107e-06/0.7422, allocations: 4 kB / 419.4 MB, free: 4.172 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002107/0.7424, allocations: 39.94 kB / 419.4 MB, free: 4.133 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.413e-06/0.7424, allocations: 4 kB / 419.4 MB, free: 4.129 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.89e-06/0.7425, allocations: 4 kB / 419.4 MB, free: 4.125 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00488/0.7473, allocations: 1.269 MB / 420.7 MB, free: 2.836 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003192/0.7506, allocations: 0.6746 MB / 421.4 MB, free: 2.141 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00056/0.7512, allocations: 59.97 kB / 421.4 MB, free: 2.082 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001054/0.7523, allocations: 47.81 kB / 421.5 MB, free: 2.035 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001533/0.7539, allocations: 351.7 kB / 421.8 MB, free: 1.691 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004575/0.7543, allocations: 159.9 kB / 422 MB, free: 1.535 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00494/0.7593, allocations: 1.259 MB / 423.3 MB, free: 280 kB / 362.7 MB Notification: Performance of sort global known variables: time 1.012e-06/0.7593, allocations: 0 / 423.3 MB, free: 280 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.001475/0.7608, allocations: 140 kB / 423.4 MB, free: 140 kB / 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.297/1.058, allocations: 1.914 MB / 425.3 MB, free: 106 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003293/1.061, allocations: 1.872 MB / 427.2 MB, free: 105.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.91e-06/1.061, allocations: 0 / 427.2 MB, free: 105.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001959/1.063, allocations: 1.373 MB / 428.5 MB, free: 105 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002315/1.066, allocations: 296.5 kB / 428.8 MB, free: 105 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00761/1.073, allocations: 2.678 MB / 431.5 MB, free: 104.3 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00155/1.075, allocations: 1.221 MB / 432.7 MB, free: 103.5 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006111/1.075, allocations: 195.7 kB / 432.9 MB, free: 103.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002609/1.076, allocations: 148.7 kB / 433.1 MB, free: 103.4 MB / 362.7 MB Notification: Performance of SimCode: time 1.152e-06/1.076, allocations: 0 / 433.1 MB, free: 103.4 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08903/1.165, allocations: 20.86 MB / 453.9 MB, free: 93.15 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003485/1.165, allocations: 133.4 kB / 454.1 MB, free: 92.96 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.377/4.542, allocations: 0 / 454.1 MB, free: 92.96 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat does not exist to compare? outputFormat=mat