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.774/1.774, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.871e-05/2.89e-05, allocations: 0 / 225.1 MB, free: 2.254 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2522, allocations: 38.77 MB / 263.9 MB, free: 9.711 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1287/0.3809, allocations: 72.8 MB / 336.7 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/0.3813, allocations: 79.94 kB / 336.7 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1041/0.4854, allocations: 30.55 MB / 367.3 MB, free: 2.16 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4854, allocations: 0 / 367.3 MB, free: 2.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.194e-05/0.4855, allocations: 16 kB / 367.3 MB, free: 2.145 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.001776/0.4873, allocations: 1.272 MB / 368.6 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.4873, allocations: 12.03 kB / 368.6 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001536/0.4875, allocations: 54.55 kB / 368.6 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002602/0.4878, allocations: 134.5 kB / 368.8 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001107/0.4889, allocations: 0.509 MB / 369.3 MB, free: 8 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.214/0.7029, allocations: 23 kB / 369.3 MB, free: 87.66 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002559/0.7032, allocations: 28.19 kB / 369.3 MB, free: 87.66 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001854/0.7051, allocations: 0.6129 MB / 369.9 MB, free: 87.62 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.7051, allocations: 0.6562 kB / 369.9 MB, free: 87.62 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001109/0.7052, allocations: 20.75 kB / 370 MB, free: 87.62 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.7053, allocations: 2.562 kB / 370 MB, free: 87.62 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/0.7065, allocations: 451.4 kB / 370.4 MB, free: 87.62 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002296/0.7089, allocations: 1.04 MB / 371.4 MB, free: 87.33 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/0.71, allocations: 0.6864 MB / 372.1 MB, free: 87.31 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001036/0.7111, allocations: 0.677 MB / 372.8 MB, free: 87.3 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/0.7111, allocations: 0 / 372.8 MB, free: 87.3 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001249/0.7123, allocations: 0.7523 MB / 373.6 MB, free: 87.12 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 4.338e-06/0.7124, allocations: 3.609 kB / 373.6 MB, free: 87.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002643/0.715, allocations: 1.398 MB / 375 MB, free: 86.79 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001795/0.7153, allocations: 328.7 kB / 375.3 MB, free: 86.47 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002672/0.7179, allocations: 1.446 MB / 376.7 MB, free: 86.16 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001958/0.7182, allocations: 39.58 kB / 376.8 MB, free: 86.13 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001976/0.7184, allocations: 221.7 kB / 377 MB, free: 86.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/0.7186, allocations: 78.44 kB / 377.1 MB, free: 86.01 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.478e-05/0.7187, allocations: 16.38 kB / 377.1 MB, free: 86.01 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.7188, allocations: 375.5 kB / 377.4 MB, free: 85.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008812/0.7197, allocations: 442.4 kB / 377.9 MB, free: 85.69 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008974/0.7206, allocations: 439.2 kB / 378.3 MB, free: 85.6 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007906/0.7214, allocations: 0.5794 MB / 378.9 MB, free: 85.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.7214, allocations: 2.219 kB / 378.9 MB, free: 85.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002422/0.7238, allocations: 1.336 MB / 380.2 MB, free: 84.62 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002162/0.7241, allocations: 286.5 kB / 380.5 MB, free: 84.35 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.7241, allocations: 0 / 380.5 MB, free: 84.35 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.7242, allocations: 1.969 kB / 380.5 MB, free: 84.35 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.97e-05/0.7242, allocations: 10.06 kB / 380.5 MB, free: 84.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.7242, allocations: 0 / 380.5 MB, free: 84.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006428/0.7249, allocations: 43.19 kB / 380.6 MB, free: 84.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002223/0.7251, allocations: 154.9 kB / 380.7 MB, free: 84.33 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.0004895/0.7256, allocations: 465 kB / 381.2 MB, free: 83.94 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002242/0.7259, allocations: 134.9 kB / 381.3 MB, free: 83.87 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005356/0.7264, allocations: 206.3 kB / 381.5 MB, free: 83.77 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.7264, allocations: 3.938 kB / 381.5 MB, free: 83.77 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.7264, allocations: 0.875 kB / 381.5 MB, free: 83.77 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.7265, allocations: 1.078 kB / 381.5 MB, free: 83.77 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004231/0.7307, allocations: 2.309 MB / 383.8 MB, free: 82.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/0.7308, allocations: 7.484 kB / 383.8 MB, free: 82.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.889e-05/0.7308, allocations: 3.438 kB / 383.8 MB, free: 82.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/0.7308, allocations: 0 / 383.8 MB, free: 82.62 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001307/0.731, allocations: 40.83 kB / 383.9 MB, free: 82.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.731, allocations: 0 / 383.9 MB, free: 82.61 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.731, allocations: 3.094 kB / 383.9 MB, free: 82.61 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002859/0.7339, allocations: 1.604 MB / 385.5 MB, free: 81.82 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001577/0.7355, allocations: 0.657 MB / 386.1 MB, free: 81.26 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003015/0.7358, allocations: 66.78 kB / 386.2 MB, free: 81.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006368/0.7365, allocations: 33.8 kB / 386.2 MB, free: 81.18 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007918/0.7373, allocations: 353.6 kB / 386.6 MB, free: 80.92 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002155/0.7375, allocations: 162.3 kB / 386.7 MB, free: 80.77 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002396/0.7399, allocations: 1.198 MB / 387.9 MB, free: 79.72 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.012e-06/0.74, allocations: 0 / 387.9 MB, free: 79.72 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009383/0.7409, allocations: 148 kB / 388.1 MB, free: 79.57 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.003277/0.7442, allocations: 2.255 MB / 390.3 MB, free: 77.43 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002662/0.7469, allocations: 1.9 MB / 392.2 MB, free: 75.56 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.747, allocations: 0 / 392.2 MB, free: 75.56 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001581/0.7486, allocations: 1.375 MB / 393.6 MB, free: 74.15 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001882/0.7505, allocations: 298 kB / 393.9 MB, free: 73.94 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005491/0.756, allocations: 2.521 MB / 396.4 MB, free: 71.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00105/0.7571, allocations: 1.18 MB / 397.6 MB, free: 70.59 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002939/0.7575, allocations: 76.05 kB / 397.7 MB, free: 70.54 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002165/0.7577, allocations: 149.3 kB / 397.8 MB, free: 70.41 MB / 314.7 MB Notification: Performance of SimCode: time 1.413e-06/0.7577, allocations: 0 / 397.8 MB, free: 70.41 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05051/0.8082, allocations: 20.14 MB / 418 MB, free: 51.23 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002183/0.8085, allocations: 156.2 kB / 418.1 MB, free: 51 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.772/3.581, allocations: 0 / 418.1 MB, free: 51 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