Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRH,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.646/1.646, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.252e-05/3.257e-05, allocations: 4 kB / 225.1 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2529, allocations: 38.77 MB / 263.9 MB, free: 9.727 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1283/0.3813, allocations: 72.81 MB / 336.7 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000262/0.3816, allocations: 71.97 kB / 336.8 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1061/0.4878, allocations: 30.55 MB / 367.3 MB, free: 2.172 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4878, allocations: 0 / 367.3 MB, free: 2.172 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.145e-05/0.4879, allocations: 16 kB / 367.3 MB, free: 2.156 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.00172/0.4896, allocations: 1.28 MB / 368.6 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.4896, allocations: 8.031 kB / 368.6 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001484/0.4898, allocations: 66.47 kB / 368.7 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000252/0.4901, allocations: 126.5 kB / 368.8 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.4912, allocations: 0.5051 MB / 369.3 MB, free: 16 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.2128/0.704, allocations: 25.81 kB / 369.3 MB, free: 87.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000274/0.7043, allocations: 27.56 kB / 369.4 MB, free: 87.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00184/0.7062, allocations: 0.6107 MB / 370 MB, free: 87.78 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.7062, allocations: 5.047 kB / 370 MB, free: 87.78 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001138/0.7063, allocations: 19.8 kB / 370 MB, free: 87.78 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/0.7063, allocations: 2.875 kB / 370 MB, free: 87.78 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/0.7076, allocations: 450.4 kB / 370.4 MB, free: 87.78 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002235/0.7098, allocations: 1.05 MB / 371.5 MB, free: 87.48 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.711, allocations: 0.6786 MB / 372.2 MB, free: 87.46 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001046/0.7121, allocations: 0.6674 MB / 372.8 MB, free: 87.45 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.581e-05/0.7121, allocations: 0 / 372.8 MB, free: 87.45 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001223/0.7133, allocations: 0.7584 MB / 373.6 MB, free: 87.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 2.775e-06/0.7134, allocations: 0 / 373.6 MB, free: 87.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002648/0.716, allocations: 1.393 MB / 375 MB, free: 86.94 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001737/0.7162, allocations: 323.2 kB / 375.3 MB, free: 86.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00262/0.7189, allocations: 1.444 MB / 376.7 MB, free: 86.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001907/0.7191, allocations: 46.5 kB / 376.8 MB, free: 86.29 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002051/0.7193, allocations: 219 kB / 377 MB, free: 86.2 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.7195, allocations: 85.94 kB / 377.1 MB, free: 86.16 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.667e-05/0.7196, allocations: 15.75 kB / 377.1 MB, free: 86.16 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.7197, allocations: 370.8 kB / 377.5 MB, free: 85.85 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008872/0.7206, allocations: 439.2 kB / 377.9 MB, free: 85.85 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008597/0.7215, allocations: 445 kB / 378.3 MB, free: 85.76 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007842/0.7223, allocations: 0.5785 MB / 378.9 MB, free: 85.39 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.7223, allocations: 0 / 378.9 MB, free: 85.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002435/0.7248, allocations: 1.335 MB / 380.2 MB, free: 84.78 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002102/0.725, allocations: 287.5 kB / 380.5 MB, free: 84.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.725, allocations: 3.5 kB / 380.5 MB, free: 84.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.189e-05/0.7251, allocations: 3.469 kB / 380.5 MB, free: 84.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.714e-05/0.7251, allocations: 3.562 kB / 380.5 MB, free: 84.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.248e-06/0.7251, allocations: 3.406 kB / 380.5 MB, free: 84.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006279/0.7258, allocations: 44.48 kB / 380.6 MB, free: 84.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002239/0.726, allocations: 152.4 kB / 380.7 MB, free: 84.49 MB / 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.0004813/0.7265, allocations: 465.8 kB / 381.2 MB, free: 84.1 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002014/0.7267, allocations: 135.3 kB / 381.3 MB, free: 84.03 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005376/0.7273, allocations: 202.4 kB / 381.5 MB, free: 83.93 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.7273, allocations: 3 kB / 381.5 MB, free: 83.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.7273, allocations: 0 / 381.5 MB, free: 83.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.7273, allocations: 0 / 381.5 MB, free: 83.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003812/0.7311, allocations: 2.317 MB / 383.8 MB, free: 82.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.7312, allocations: 3.953 kB / 383.8 MB, free: 82.78 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.115e-05/0.7312, allocations: 2.078 kB / 383.8 MB, free: 82.78 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.214e-06/0.7312, allocations: 3.656 kB / 383.8 MB, free: 82.78 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001065/0.7313, allocations: 40.19 kB / 383.9 MB, free: 82.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.598e-06/0.7314, allocations: 3.094 kB / 383.9 MB, free: 82.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.7314, allocations: 0 / 383.9 MB, free: 82.77 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002735/0.7341, allocations: 1.6 MB / 385.5 MB, free: 82 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001476/0.7356, allocations: 0.6641 MB / 386.1 MB, free: 81.43 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002808/0.7359, allocations: 62.03 kB / 386.2 MB, free: 81.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006049/0.7365, allocations: 35.3 kB / 386.2 MB, free: 81.36 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007787/0.7373, allocations: 356.6 kB / 386.6 MB, free: 81.1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002154/0.7376, allocations: 162.3 kB / 386.7 MB, free: 80.95 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002232/0.7398, allocations: 1.192 MB / 387.9 MB, free: 79.89 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.7398, allocations: 0 / 387.9 MB, free: 79.89 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008061/0.7406, allocations: 151.3 kB / 388.1 MB, free: 79.75 MB / 314.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.003158/0.7438, allocations: 2.252 MB / 390.3 MB, free: 77.6 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002571/0.7464, allocations: 1.9 MB / 392.2 MB, free: 75.73 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.7465, allocations: 0 / 392.2 MB, free: 75.73 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001554/0.748, allocations: 1.384 MB / 393.6 MB, free: 74.33 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001819/0.7499, allocations: 299.5 kB / 393.9 MB, free: 74.12 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005213/0.7551, allocations: 2.517 MB / 396.4 MB, free: 71.83 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001015/0.7562, allocations: 1.173 MB / 397.6 MB, free: 70.78 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002704/0.7564, allocations: 76.09 kB / 397.7 MB, free: 70.72 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002068/0.7567, allocations: 153.8 kB / 397.8 MB, free: 70.59 MB / 314.7 MB Notification: Performance of SimCode: time 1.042e-06/0.7567, allocations: 2.078 kB / 397.8 MB, free: 70.59 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05096/0.8076, allocations: 20.14 MB / 418 MB, free: 51.35 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001856/0.8079, allocations: 147 kB / 418.1 MB, free: 51.12 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.61/3.418, allocations: 0 / 418.1 MB, free: 51.12 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat does not exist to compare? outputFormat=mat