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_trunk_Modelica.Electrical.Digital.Examples.RAM") Notification: Performance of loadModel(Modelica): time 2.048/2.048, allocations: 225.8 MB / 239.4 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.079e-05/3.11e-05, allocations: 4 kB / 292.7 MB, free: 8.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09682/0.09688, allocations: 50.42 MB / 343.1 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4139/0.5108, allocations: 86.24 MB / 429.3 MB, free: 7.926 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004283/0.5113, allocations: 69.45 kB / 429.4 MB, free: 7.891 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1672/0.6786, allocations: 39.81 MB / 469.2 MB, free: 4.734 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.6786, allocations: 0 / 469.2 MB, free: 4.734 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.909e-05/0.6787, allocations: 12 kB / 469.2 MB, free: 4.723 MB / 378.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.001824/0.6805, allocations: 1.344 MB / 470.5 MB, free: 3.277 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.6806, allocations: 8.031 kB / 470.6 MB, free: 3.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002669/0.6809, allocations: 130.7 kB / 470.7 MB, free: 3.141 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008899/0.6818, allocations: 468.6 kB / 471.1 MB, free: 2.633 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.456e-05/0.6818, allocations: 16 kB / 471.2 MB, free: 2.617 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.578e-05/0.6819, allocations: 24 kB / 471.2 MB, free: 2.594 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.683, allocations: 0.5716 MB / 471.7 MB, free: 2.016 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.756e-06/0.6831, allocations: 4 kB / 471.8 MB, free: 2.012 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.215e-05/0.6831, allocations: 11.95 kB / 471.8 MB, free: 2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.743e-06/0.6832, allocations: 0 / 471.8 MB, free: 2 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007758/0.6839, allocations: 459.8 kB / 472.2 MB, free: 1.551 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002048/0.686, allocations: 0.9233 MB / 473.1 MB, free: 0.582 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.6871, allocations: 0.725 MB / 473.9 MB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001008/0.6882, allocations: 0.7077 MB / 474.6 MB, free: 15.13 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.6882, allocations: 4 kB / 474.6 MB, free: 15.13 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001167/0.6894, allocations: 0.7166 MB / 475.3 MB, free: 14.38 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 3.452e-06/0.6894, allocations: 0 / 475.3 MB, free: 14.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.002678/0.6921, allocations: 1.569 MB / 476.9 MB, free: 12.75 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002696/0.6924, allocations: 338.7 kB / 477.2 MB, free: 12.35 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0026/0.695, allocations: 1.299 MB / 478.5 MB, free: 11.04 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001303/0.6952, allocations: 41.69 kB / 478.5 MB, free: 10.99 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003342/0.6955, allocations: 282 kB / 478.8 MB, free: 10.71 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001683/0.6957, allocations: 90.91 kB / 478.9 MB, free: 10.62 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.218e-05/0.6958, allocations: 8 kB / 478.9 MB, free: 10.61 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.6959, allocations: 321.9 kB / 479.2 MB, free: 10.29 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007844/0.6967, allocations: 464.2 kB / 479.7 MB, free: 9.836 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007513/0.6975, allocations: 468.5 kB / 480.1 MB, free: 9.379 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009003/0.6984, allocations: 0.6494 MB / 480.8 MB, free: 8.676 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.786e-06/0.6984, allocations: 0 / 480.8 MB, free: 8.676 MB / 394.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.002493/0.701, allocations: 1.523 MB / 482.3 MB, free: 7.09 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002985/0.7013, allocations: 307.2 kB / 482.6 MB, free: 6.734 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.7013, allocations: 0 / 482.6 MB, free: 6.734 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.7013, allocations: 0 / 482.6 MB, free: 6.734 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.807e-05/0.7014, allocations: 4 kB / 482.6 MB, free: 6.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.7014, allocations: 3.938 kB / 482.6 MB, free: 6.727 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004756/0.7019, allocations: 31.89 kB / 482.6 MB, free: 6.695 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001888/0.7021, allocations: 107.9 kB / 482.7 MB, free: 6.59 MB / 394.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.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,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],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.000571/0.7027, allocations: 481.3 kB / 483.2 MB, free: 6.059 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002229/0.7029, allocations: 130.5 kB / 483.3 MB, free: 5.93 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005281/0.7034, allocations: 187.6 kB / 483.5 MB, free: 5.746 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.23e-06/0.7035, allocations: 0 / 483.5 MB, free: 5.746 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.836e-06/0.7035, allocations: 4 kB / 483.5 MB, free: 5.742 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.371e-06/0.7035, allocations: 3.938 kB / 483.5 MB, free: 5.738 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004018/0.7075, allocations: 2.42 MB / 486 MB, free: 3.211 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.607e-06/0.7076, allocations: 0 / 486 MB, free: 3.211 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.044e-05/0.7076, allocations: 3.984 kB / 486 MB, free: 3.207 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.514e-06/0.7076, allocations: 4 kB / 486 MB, free: 3.203 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.677e-05/0.7077, allocations: 27.98 kB / 486 MB, free: 3.176 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.809e-06/0.7077, allocations: 4 kB / 486 MB, free: 3.172 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.447e-06/0.7077, allocations: 4 kB / 486 MB, free: 3.168 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00301/0.7108, allocations: 1.834 MB / 487.8 MB, free: 1.262 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001168/0.712, allocations: 0.4952 MB / 488.3 MB, free: 0.7461 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002452/0.7122, allocations: 59.95 kB / 488.4 MB, free: 0.6875 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004555/0.7127, allocations: 27.98 kB / 488.4 MB, free: 0.6602 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001531/0.7142, allocations: 0.6281 MB / 489 MB, free: 32 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002094/0.7145, allocations: 112 kB / 489.1 MB, free: 15.92 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002176/0.7167, allocations: 1.076 MB / 490.2 MB, free: 14.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.98e-07/0.7167, allocations: 0 / 490.2 MB, free: 14.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009002/0.7176, allocations: 191.9 kB / 490.4 MB, free: 14.65 MB / 410.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.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,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],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.00101/0.7186, allocations: 377.7 kB / 490.8 MB, free: 14.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002819/0.7215, allocations: 2.072 MB / 492.9 MB, free: 12.13 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.017e-06/0.7215, allocations: 0 / 492.9 MB, free: 12.13 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00197/0.7235, allocations: 1.588 MB / 494.4 MB, free: 10.43 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003082/0.7266, allocations: 0.7277 MB / 495.2 MB, free: 9.727 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004636/0.7312, allocations: 2.271 MB / 497.4 MB, free: 7.422 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001297/0.7326, allocations: 1.151 MB / 498.6 MB, free: 6.242 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003849/0.733, allocations: 70.88 kB / 498.7 MB, free: 6.176 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.602e-05/0.733, allocations: 19.44 kB / 498.7 MB, free: 6.156 MB / 410.7 MB Notification: Performance of SimCode: time 1.692e-06/0.7331, allocations: 0 / 498.7 MB, free: 6.156 MB / 410.7 MB Notification: Performance of Templates: time 0.0445/0.7776, allocations: 20.94 MB / 0.5074 GB, free: 1.219 MB / 426.7 MB