Running command: translateModel(Modelica.Electrical.Digital.Examples.RAM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATRAM.dataOut.1.|dLATRAM.dataOut.2.",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.RAM") Notification: Performance of loadModel(Modelica): time 1.697/1.697, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.089e-05/3.093e-05, allocations: 7.984 kB / 225 MB, free: 2.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.207, allocations: 38.76 MB / 263.8 MB, free: 9.832 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1113/0.3183, allocations: 74.61 MB / 338.4 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/0.3186, allocations: 67.97 kB / 338.5 MB, free: 15.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3069/0.6255, allocations: 39.23 MB / 377.7 MB, free: 88.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.077e-06/0.6255, allocations: 0 / 377.7 MB, free: 88.23 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.156e-05/0.6256, allocations: 14.25 kB / 377.7 MB, free: 88.23 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.001282/0.6269, allocations: 1.338 MB / 379 MB, free: 87.36 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.6269, allocations: 9.156 kB / 379 MB, free: 87.36 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001807/0.6271, allocations: 121.9 kB / 379.2 MB, free: 87.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006584/0.6278, allocations: 472.6 kB / 379.6 MB, free: 86.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.665e-05/0.6279, allocations: 18.28 kB / 379.6 MB, free: 86.98 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.246e-05/0.628, allocations: 17.44 kB / 379.7 MB, free: 86.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008701/0.6288, allocations: 0.5822 MB / 380.2 MB, free: 86.94 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.6289, allocations: 0 / 380.2 MB, free: 86.94 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.983e-05/0.6289, allocations: 14.78 kB / 380.3 MB, free: 86.94 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.013e-06/0.629, allocations: 0 / 380.3 MB, free: 86.94 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006334/0.6296, allocations: 457 kB / 380.7 MB, free: 86.94 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001676/0.6313, allocations: 0.9157 MB / 381.6 MB, free: 86.62 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008515/0.6322, allocations: 0.7227 MB / 382.3 MB, free: 86.5 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007477/0.6329, allocations: 0.712 MB / 383.1 MB, free: 86.19 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.354e-05/0.633, allocations: 7.938 kB / 383.1 MB, free: 86.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009028/0.6339, allocations: 0.7269 MB / 383.8 MB, free: 85.89 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 3.387e-06/0.6339, allocations: 0 / 383.8 MB, free: 85.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=41): time 0.002115/0.636, allocations: 1.564 MB / 385.4 MB, free: 85.26 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.6362, allocations: 340.7 kB / 385.7 MB, free: 84.9 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002064/0.6383, allocations: 1.305 MB / 387 MB, free: 83.76 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.621e-05/0.6384, allocations: 37.7 kB / 387 MB, free: 83.72 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002236/0.6386, allocations: 287.1 kB / 387.3 MB, free: 83.46 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000124/0.6388, allocations: 85.48 kB / 387.4 MB, free: 83.38 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.87e-05/0.6388, allocations: 15.94 kB / 387.4 MB, free: 83.37 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.242e-05/0.6389, allocations: 320.5 kB / 387.7 MB, free: 83.05 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006044/0.6395, allocations: 466.8 kB / 388.2 MB, free: 82.64 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005731/0.6401, allocations: 458.2 kB / 388.6 MB, free: 82.25 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000616/0.6407, allocations: 0.6578 MB / 389.3 MB, free: 81.59 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.562e-06/0.6408, allocations: 0 / 389.3 MB, free: 81.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001876/0.6426, allocations: 1.525 MB / 390.8 MB, free: 80.14 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001612/0.6428, allocations: 300 kB / 391.1 MB, free: 79.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.161e-06/0.6428, allocations: 0 / 391.1 MB, free: 79.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.6429, allocations: 7.828 kB / 391.1 MB, free: 79.81 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.672e-05/0.6429, allocations: 4 kB / 391.1 MB, free: 79.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.086e-06/0.6429, allocations: 0 / 391.1 MB, free: 79.81 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004585/0.6434, allocations: 41.97 kB / 391.1 MB, free: 79.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001479/0.6436, allocations: 103.1 kB / 391.3 MB, free: 79.68 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: 45 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,dLATRAM.dataIn[1],dLATRAM.dataIn[2],dLATRAM.mem[1,1],dLATRAM.mem[1,2],dLATRAM.mem[2,1],dLATRAM.mem[2,2],dLATRAM.mem[3,1],dLATRAM.mem[3,2],dLATRAM.mem[4,1],dLATRAM.mem[4,2],dLATRAM.nextstate[1],dLATRAM.nextstate[2],dLATRAM.mem_word[1],dLATRAM.mem_word[2],dLATRAM.int_addr,dLATRAM.yy[1],dLATRAM.yy[2],$PRE.dLATRAM.inertialDelaySensitive[1].x,dLATRAM.inertialDelaySensitive[1].x,$PRE.dLATRAM.inertialDelaySensitive[1].y,dLATRAM.inertialDelaySensitive[1].y,dLATRAM.inertialDelaySensitive[1].delayTime,dLATRAM.inertialDelaySensitive[1].y_auxiliary,dLATRAM.inertialDelaySensitive[1].y_old,dLATRAM.inertialDelaySensitive[1].lh,dLATRAM.inertialDelaySensitive[1].t_next,$PRE.dLATRAM.inertialDelaySensitive[2].x,dLATRAM.inertialDelaySensitive[2].x,$PRE.dLATRAM.inertialDelaySensitive[2].y,dLATRAM.inertialDelaySensitive[2].y,dLATRAM.inertialDelaySensitive[2].delayTime,dLATRAM.inertialDelaySensitive[2].y_auxiliary,dLATRAM.inertialDelaySensitive[2].y_old,dLATRAM.inertialDelaySensitive[2].lh,dLATRAM.inertialDelaySensitive[2].t_next,addr_1.y,data_1.y,data_0.y,WE.y,addr_0.y,RE.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 9 * 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.0003675/0.6439, allocations: 467.6 kB / 391.7 MB, free: 79.19 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001769/0.6441, allocations: 130.3 kB / 391.8 MB, free: 79.07 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004828/0.6446, allocations: 185.8 kB / 392 MB, free: 78.9 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.463e-06/0.6447, allocations: 3.953 kB / 392 MB, free: 78.89 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.402e-06/0.6447, allocations: 3.938 kB / 392 MB, free: 78.89 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.6447, allocations: 0 / 392 MB, free: 78.89 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003047/0.6477, allocations: 2.415 MB / 394.4 MB, free: 76.69 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.734e-06/0.6478, allocations: 0 / 394.4 MB, free: 76.69 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.66e-05/0.6478, allocations: 0.9375 kB / 394.4 MB, free: 76.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.127e-06/0.6478, allocations: 4 kB / 394.4 MB, free: 76.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.621e-05/0.6479, allocations: 31.23 kB / 394.5 MB, free: 76.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.925e-06/0.648, allocations: 7.625 kB / 394.5 MB, free: 76.65 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.809e-06/0.648, allocations: 6.328 kB / 394.5 MB, free: 76.65 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002193/0.6502, allocations: 1.825 MB / 396.3 MB, free: 74.92 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009379/0.6511, allocations: 0.4969 MB / 396.8 MB, free: 74.48 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003999/0.6516, allocations: 64.84 kB / 396.9 MB, free: 74.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008536/0.6524, allocations: 34.19 kB / 396.9 MB, free: 74.4 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002597/0.6551, allocations: 0.6305 MB / 397.5 MB, free: 74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002995/0.6554, allocations: 106.5 kB / 397.6 MB, free: 73.9 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003106/0.6585, allocations: 1.07 MB / 398.7 MB, free: 72.87 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.239e-06/0.6586, allocations: 0 / 398.7 MB, free: 72.87 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001585/0.6602, allocations: 192.4 kB / 398.9 MB, free: 72.68 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: 41 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,dLATRAM.dataIn[1],dLATRAM.dataIn[2],dLATRAM.mem[1,1],dLATRAM.mem[1,2],dLATRAM.mem[2,1],dLATRAM.mem[2,2],dLATRAM.mem[3,1],dLATRAM.mem[3,2],dLATRAM.mem[4,1],dLATRAM.mem[4,2],dLATRAM.nextstate[1],dLATRAM.nextstate[2],dLATRAM.mem_word[1],dLATRAM.mem_word[2],dLATRAM.int_addr,dLATRAM.yy[1],dLATRAM.yy[2],dLATRAM.inertialDelaySensitive[1].x,dLATRAM.inertialDelaySensitive[1].y,dLATRAM.inertialDelaySensitive[1].delayTime,dLATRAM.inertialDelaySensitive[1].y_auxiliary,dLATRAM.inertialDelaySensitive[1].y_old,dLATRAM.inertialDelaySensitive[1].lh,dLATRAM.inertialDelaySensitive[1].t_next,dLATRAM.inertialDelaySensitive[2].x,dLATRAM.inertialDelaySensitive[2].y,dLATRAM.inertialDelaySensitive[2].delayTime,dLATRAM.inertialDelaySensitive[2].y_auxiliary,dLATRAM.inertialDelaySensitive[2].y_old,dLATRAM.inertialDelaySensitive[2].lh,dLATRAM.inertialDelaySensitive[2].t_next,addr_1.y,data_1.y,data_0.y,WE.y,addr_0.y,RE.y) * Number of discrete states: 39 (addr_1.y,data_1.y,data_0.y,WE.y,addr_0.y,RE.y,dLATRAM.yy[2],dLATRAM.yy[1],dLATRAM.nextstate[2],dLATRAM.nextstate[1],dLATRAM.mem_word[2],dLATRAM.mem_word[1],dLATRAM.int_addr,dLATRAM.mem[4,2],dLATRAM.mem[4,1],dLATRAM.mem[3,2],dLATRAM.mem[3,1],dLATRAM.mem[2,2],dLATRAM.mem[2,1],dLATRAM.mem[1,2],dLATRAM.mem[1,1],dLATRAM.inertialDelaySensitive[1].y,dLATRAM.inertialDelaySensitive[1].y_auxiliary,dLATRAM.inertialDelaySensitive[1].t_next,dLATRAM.inertialDelaySensitive[1].delayTime,dLATRAM.inertialDelaySensitive[1].lh,dLATRAM.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATRAM.inertialDelaySensitive[1].x,dLATRAM.inertialDelaySensitive[2].y,dLATRAM.inertialDelaySensitive[2].y_auxiliary,dLATRAM.inertialDelaySensitive[2].t_next,dLATRAM.inertialDelaySensitive[2].delayTime,dLATRAM.inertialDelaySensitive[2].lh,dLATRAM.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATRAM.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 9 * 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.001231/0.6615, allocations: 374.5 kB / 399.3 MB, free: 72.38 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003505/0.665, allocations: 2.072 MB / 401.3 MB, free: 70.19 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.497e-06/0.6651, allocations: 7.844 kB / 401.3 MB, free: 70.19 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002413/0.6675, allocations: 1.58 MB / 402.9 MB, free: 68.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005491/0.673, allocations: 0.7131 MB / 403.6 MB, free: 67.8 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006673/0.6798, allocations: 2.269 MB / 405.9 MB, free: 65.5 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001538/0.6813, allocations: 1.151 MB / 407.1 MB, free: 64.32 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005677/0.6819, allocations: 73.08 kB / 407.1 MB, free: 64.26 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.161e-05/0.682, allocations: 19.44 kB / 407.1 MB, free: 64.24 MB / 314.7 MB Notification: Performance of SimCode: time 2.202e-06/0.6821, allocations: 0 / 407.1 MB, free: 64.24 MB / 314.7 MB Notification: Performance of Templates: time 0.03723/0.7193, allocations: 20.95 MB / 428.1 MB, free: 43.12 MB / 314.7 MB