Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.721/1.721, allocations: 171.2 MB / 178.1 MB, free: 8.289 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2196/1.941, allocations: 41.1 MB / 219.2 MB, free: 11.19 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09241/2.033, allocations: 38.76 MB / 258 MB, free: 4.363 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2924/2.326, allocations: 72.15 MB / 330.2 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/2.326, allocations: 66.84 kB / 330.2 MB, free: 15.86 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.1021/2.428, allocations: 28.16 MB / 358.4 MB, free: 8.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/2.428, allocations: 12 kB / 358.4 MB, free: 8.809 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000268/2.428, allocations: 86.97 kB / 358.5 MB, free: 8.723 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/2.429, allocations: 428 kB / 358.9 MB, free: 8.293 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.505e-05/2.429, allocations: 22.67 kB / 358.9 MB, free: 8.273 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/2.43, allocations: 20.62 kB / 358.9 MB, free: 8.254 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009453/2.431, allocations: 352 kB / 359.3 MB, free: 8.012 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001268/2.432, allocations: 497.3 kB / 359.8 MB, free: 7.629 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/2.432, allocations: 0 / 359.8 MB, free: 7.629 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/2.432, allocations: 13.11 kB / 359.8 MB, free: 7.617 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/2.432, allocations: 4 kB / 359.8 MB, free: 7.613 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002239/2.434, allocations: 0.8388 MB / 360.6 MB, free: 6.805 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001044/2.435, allocations: 0.4945 MB / 361.1 MB, free: 6.301 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001059/2.436, allocations: 492.7 kB / 361.6 MB, free: 5.816 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/2.436, allocations: 0 / 361.6 MB, free: 5.816 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001253/2.438, allocations: 0.6081 MB / 362.2 MB, free: 5.168 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 3.727e-06/2.438, allocations: 4 kB / 362.2 MB, free: 5.164 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.001997/2.44, allocations: 0.761 MB / 363 MB, free: 4.398 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000252/2.44, allocations: 287.3 kB / 363.3 MB, free: 4.062 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002419/2.443, allocations: 0.984 MB / 364.2 MB, free: 3.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002096/2.443, allocations: 45.69 kB / 364.3 MB, free: 3.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.941e-05/2.443, allocations: 110 kB / 364.4 MB, free: 2.906 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001869/2.443, allocations: 83.03 kB / 364.5 MB, free: 2.824 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.173e-05/2.443, allocations: 8 kB / 364.5 MB, free: 2.816 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001658/2.443, allocations: 342.8 kB / 364.8 MB, free: 2.473 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008748/2.444, allocations: 352.1 kB / 365.2 MB, free: 2.129 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008121/2.445, allocations: 336.5 kB / 365.5 MB, free: 1.801 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005813/2.446, allocations: 245.4 kB / 365.7 MB, free: 1.562 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/2.446, allocations: 0 / 365.7 MB, free: 1.562 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001886/2.448, allocations: 0.7198 MB / 366.4 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/2.448, allocations: 4 kB / 366.4 MB, free: 0.832 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/2.448, allocations: 3.938 kB / 366.5 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/2.448, allocations: 0 / 366.5 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.24e-05/2.448, allocations: 4 kB / 366.5 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/2.448, allocations: 0 / 366.5 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006313/2.448, allocations: 43.81 kB / 366.5 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002635/2.449, allocations: 144.2 kB / 366.6 MB, free: 0.6406 MB / 298.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: 40 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,$PRE.dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 7 * 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.0005748/2.449, allocations: 402 kB / 367 MB, free: 204 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002147/2.45, allocations: 90.97 kB / 367.1 MB, free: 112 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005885/2.45, allocations: 151.8 kB / 367.3 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/2.45, allocations: 3.984 kB / 367.3 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/2.45, allocations: 0 / 367.3 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/2.45, allocations: 0 / 367.3 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003411/2.454, allocations: 1.467 MB / 368.7 MB, free: 14.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/2.454, allocations: 0 / 368.7 MB, free: 14.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.652e-05/2.454, allocations: 4 kB / 368.7 MB, free: 14.44 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.095e-06/2.454, allocations: 3.938 kB / 368.7 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000115/2.454, allocations: 39.97 kB / 368.8 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.348e-05/2.454, allocations: 11.84 kB / 368.8 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/2.454, allocations: 0 / 368.8 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003066/2.457, allocations: 0.916 MB / 369.7 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003786/2.461, allocations: 1.299 MB / 371 MB, free: 12.13 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002936/2.464, allocations: 0.5776 MB / 371.6 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004782/2.464, allocations: 59.97 kB / 371.6 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009637/2.465, allocations: 35.91 kB / 371.7 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001129/2.466, allocations: 239.8 kB / 371.9 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003881/2.467, allocations: 159.8 kB / 372.1 MB, free: 11.05 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.002929/2.47, allocations: 0.8265 MB / 372.9 MB, free: 10.22 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.004044/2.474, allocations: 116 kB / 373 MB, free: 10.11 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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 7 * 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.0005982/2.475, allocations: 176.5 kB / 373.2 MB, free: 9.922 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002458/2.477, allocations: 1.085 MB / 374.3 MB, free: 8.793 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/2.477, allocations: 4 kB / 374.3 MB, free: 8.789 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001689/2.479, allocations: 0.9099 MB / 375.2 MB, free: 7.836 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002514/2.481, allocations: 282.5 kB / 375.5 MB, free: 7.566 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005266/2.487, allocations: 1.706 MB / 377.2 MB, free: 5.828 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001326/2.488, allocations: 1.061 MB / 378.2 MB, free: 4.738 MB / 314.7 MB Notification: Performance of SimCode: time 1.242e-06/2.488, allocations: 0 / 378.2 MB, free: 4.738 MB / 314.7 MB