Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.RAM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.RAM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.RAM") translateModel(Modelica.Electrical.Digital.Examples.RAM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.RAM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01055/0.01055, allocations: 165.5 kB / 15.11 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.529/1.529, allocations: 170.8 MB / 186.6 MB, free: 1.141 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001648/0.001648, allocations: 111.3 kB / 226.2 MB, free: 10.12 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003339/0.0003339, allocations: 8 kB / 274.1 MB, free: 10.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.266/0.2664, allocations: 38.76 MB / 312.9 MB, free: 38.73 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1053/0.3718, allocations: 74.7 MB / 387.6 MB, free: 15.85 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000308/0.3722, allocations: 71.95 kB / 387.7 MB, free: 15.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2607/0.6329, allocations: 39.2 MB / 426.9 MB, free: 84.88 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.633, allocations: 0 / 426.9 MB, free: 84.88 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001006/0.6331, allocations: 14.19 kB / 426.9 MB, free: 84.88 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.004225/0.6373, allocations: 1.546 MB / 428.4 MB, free: 83.86 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.287e-05/0.6374, allocations: 9.531 kB / 428.4 MB, free: 83.86 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005482/0.6379, allocations: 122.1 kB / 428.5 MB, free: 83.8 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001269/0.6392, allocations: 479 kB / 429 MB, free: 83.49 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.917e-05/0.6393, allocations: 18.72 kB / 429 MB, free: 83.48 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.6394, allocations: 20.56 kB / 429 MB, free: 83.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001107/0.6405, allocations: 0.5877 MB / 429.6 MB, free: 83.45 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.6406, allocations: 0 / 429.6 MB, free: 83.45 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.503e-05/0.6406, allocations: 11.72 kB / 429.6 MB, free: 83.45 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.6406, allocations: 1.25 kB / 429.6 MB, free: 83.45 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007468/0.6414, allocations: 468 kB / 430.1 MB, free: 83.45 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002149/0.6435, allocations: 0.9209 MB / 431 MB, free: 83.11 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007524/0.6443, allocations: 0.7307 MB / 431.8 MB, free: 83.09 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.311e-05/0.6443, allocations: 7.906 kB / 431.8 MB, free: 83.09 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007198/0.6451, allocations: 0.7358 MB / 432.5 MB, free: 82.84 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 1.823e-06/0.6451, allocations: 0 / 432.5 MB, free: 82.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=41): time 0.002388/0.6475, allocations: 2.311 MB / 434.8 MB, free: 81.8 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/0.6476, allocations: 332.7 kB / 435.1 MB, free: 81.45 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001782/0.6494, allocations: 1.318 MB / 436.5 MB, free: 80.93 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.222e-05/0.6495, allocations: 36.86 kB / 436.5 MB, free: 80.89 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001905/0.6497, allocations: 287.9 kB / 436.8 MB, free: 80.66 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.372e-05/0.6498, allocations: 94.95 kB / 436.9 MB, free: 80.6 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.186e-05/0.6498, allocations: 8.062 kB / 436.9 MB, free: 80.6 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.585e-05/0.6499, allocations: 321 kB / 437.2 MB, free: 80.29 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004567/0.6503, allocations: 467.8 kB / 437.6 MB, free: 80.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004759/0.6508, allocations: 0.4901 MB / 438.1 MB, free: 80.04 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005006/0.6513, allocations: 0.6506 MB / 438.8 MB, free: 79.65 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.6514, allocations: 0 / 438.8 MB, free: 79.65 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.00143/0.6528, allocations: 1.542 MB / 440.3 MB, free: 79.02 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001447/0.6529, allocations: 302.2 kB / 440.6 MB, free: 78.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.653, allocations: 3.953 kB / 440.6 MB, free: 78.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.653, allocations: 4.062 kB / 440.6 MB, free: 78.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.609e-05/0.653, allocations: 5.438 kB / 440.6 MB, free: 78.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.313e-06/0.653, allocations: 3.234 kB / 440.6 MB, free: 78.72 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003605/0.6534, allocations: 27.27 kB / 440.7 MB, free: 78.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001151/0.6535, allocations: 106.8 kB / 440.8 MB, free: 78.71 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 45 ($PRE.dLATRAM.inertialDelaySensitive[2].y,$PRE.dLATRAM.inertialDelaySensitive[1].y,$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,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,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 () * Number of clocked 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.0007437/0.6543, allocations: 0.8621 MB / 441.6 MB, free: 78.17 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/0.6544, allocations: 131.2 kB / 441.8 MB, free: 78.1 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002141/0.6546, allocations: 184 kB / 441.9 MB, free: 78.02 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.6546, allocations: 3.953 kB / 441.9 MB, free: 78.01 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.6546, allocations: 0 / 441.9 MB, free: 78.01 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.6547, allocations: 2.859 kB / 441.9 MB, free: 78.01 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002311/0.657, allocations: 2.436 MB / 444.4 MB, free: 76.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-06/0.657, allocations: 4 kB / 444.4 MB, free: 76.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.968e-06/0.657, allocations: 3.938 kB / 444.4 MB, free: 76.89 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.657, allocations: 7.234 kB / 444.4 MB, free: 76.89 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.689e-05/0.6571, allocations: 32.23 kB / 444.4 MB, free: 76.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.6571, allocations: 0 / 444.4 MB, free: 76.88 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.6571, allocations: 3.938 kB / 444.4 MB, free: 76.88 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001542/0.6586, allocations: 1.856 MB / 446.3 MB, free: 75.17 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006735/0.6593, allocations: 0.4977 MB / 446.8 MB, free: 74.73 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001528/0.6595, allocations: 72.33 kB / 446.9 MB, free: 74.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002769/0.6598, allocations: 30.94 kB / 446.9 MB, free: 74.64 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000957/0.6607, allocations: 0.6268 MB / 447.5 MB, free: 74.22 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-05/0.6608, allocations: 111.8 kB / 447.6 MB, free: 74.11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001074/0.6619, allocations: 1.086 MB / 448.7 MB, free: 73.02 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6619, allocations: 0 / 448.7 MB, free: 73.02 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005796/0.6625, allocations: 191.9 kB / 448.9 MB, free: 72.84 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) * Number of clocked states: 0 () * 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.0006175/0.6631, allocations: 356 kB / 449.2 MB, free: 72.55 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001544/0.6647, allocations: 2.103 MB / 451.3 MB, free: 70.34 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.6647, allocations: 3.562 kB / 451.3 MB, free: 70.34 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009173/0.6656, allocations: 1.602 MB / 452.9 MB, free: 68.62 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002062/0.6677, allocations: 0.7151 MB / 453.7 MB, free: 67.91 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00276/0.6705, allocations: 2.825 MB / 456.5 MB, free: 65.05 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005856/0.6711, allocations: 1.146 MB / 457.6 MB, free: 63.88 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002338/0.6713, allocations: 75.05 kB / 457.7 MB, free: 63.82 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.887e-05/0.6714, allocations: 23.44 kB / 457.7 MB, free: 63.8 MB / 314.7 MB Notification: Performance of SimCode: time 2.31e-07/0.6714, allocations: 3.656 kB / 457.7 MB, free: 63.8 MB / 314.7 MB Notification: Performance of Templates: time 0.02672/0.6981, allocations: 20.96 MB / 478.7 MB, free: 42.68 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.RAM.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.RAM.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.RAM.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.RAM.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.RAM.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.RAM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.RAM.pipe 2>&1)