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") [: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 loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003639/0.003639, allocations: 180.5 kB / 7.45 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.201/1.201, allocations: 170.6 MB / 178.4 MB, free: 15.37 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.001735/0.001735, allocations: 107.8 kB / 217.7 MB, free: 8.133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 9.247e-06/9.277e-06, allocations: 0 / 261.7 MB, free: 26.62 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.093/0.09303, allocations: 38.76 MB / 300.5 MB, free: 3.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2947/0.3877, allocations: 73.92 MB / 374.4 MB, free: 10.54 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000318/0.3881, allocations: 74.2 kB / 374.5 MB, free: 10.5 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.08666/0.4748, allocations: 39.78 MB / 414.3 MB, free: 9.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.68e-05/0.4749, allocations: 16 kB / 414.3 MB, free: 9.234 MB / 298.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.002625/0.4775, allocations: 1.372 MB / 415.7 MB, free: 7.762 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.4776, allocations: 8.031 kB / 415.7 MB, free: 7.754 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003893/0.478, allocations: 122.5 kB / 415.8 MB, free: 7.633 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001107/0.4791, allocations: 496.5 kB / 416.3 MB, free: 7.098 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.918e-05/0.4792, allocations: 8 kB / 416.3 MB, free: 7.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.17e-05/0.4793, allocations: 19.98 kB / 416.3 MB, free: 7.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006347/0.4799, allocations: 455.8 kB / 416.7 MB, free: 6.625 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000772/0.4807, allocations: 0.5599 MB / 417.3 MB, free: 6.059 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.4807, allocations: 3.938 kB / 417.3 MB, free: 6.055 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.977e-05/0.4808, allocations: 8 kB / 417.3 MB, free: 6.047 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.377e-06/0.4808, allocations: 4 kB / 417.3 MB, free: 6.043 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001976/0.4828, allocations: 0.887 MB / 418.2 MB, free: 5.121 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007804/0.4836, allocations: 0.725 MB / 418.9 MB, free: 4.387 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007176/0.4843, allocations: 0.7038 MB / 419.6 MB, free: 3.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.689e-05/0.4844, allocations: 4 kB / 419.6 MB, free: 3.676 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008029/0.4852, allocations: 0.6931 MB / 420.3 MB, free: 2.945 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 2.515e-06/0.4852, allocations: 0 / 420.3 MB, free: 2.945 MB / 298.7 MB Notification: Performance of matching and sorting (n=41): time 0.001629/0.4868, allocations: 1.027 MB / 421.4 MB, free: 1.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002265/0.4871, allocations: 342.7 kB / 421.7 MB, free: 1.508 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003084/0.4901, allocations: 1.255 MB / 423 MB, free: 252 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001306/0.4903, allocations: 41.69 kB / 423 MB, free: 204 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002098/0.4905, allocations: 161.9 kB / 423.1 MB, free: 40 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002781/0.4908, allocations: 87.44 kB / 423.2 MB, free: 15.95 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.442e-05/0.4909, allocations: 8 kB / 423.2 MB, free: 15.94 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001943/0.4911, allocations: 318 kB / 423.6 MB, free: 15.62 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008566/0.492, allocations: 460.2 kB / 424 MB, free: 15.17 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008523/0.4929, allocations: 472.5 kB / 424.5 MB, free: 14.71 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008247/0.4937, allocations: 365.4 kB / 424.8 MB, free: 14.36 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4937, allocations: 0 / 424.8 MB, free: 14.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.002277/0.496, allocations: 0.9933 MB / 425.8 MB, free: 13.36 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.194e-05/0.4961, allocations: 4 kB / 425.8 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.4961, allocations: 0 / 425.8 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.328e-05/0.4961, allocations: 4 kB / 425.8 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.925e-05/0.4962, allocations: 3.938 kB / 425.8 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.4962, allocations: 3.906 kB / 425.8 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008506/0.4971, allocations: 27.98 kB / 425.9 MB, free: 13.31 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002694/0.4974, allocations: 95.92 kB / 426 MB, free: 13.22 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.0008609/0.4982, allocations: 469.3 kB / 426.4 MB, free: 12.7 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004257/0.4987, allocations: 126.5 kB / 426.5 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0011/0.4998, allocations: 183.6 kB / 426.7 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.735e-05/0.4998, allocations: 8 kB / 426.7 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.767e-05/0.4999, allocations: 0 / 426.7 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.4999, allocations: 3.938 kB / 426.7 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005078/0.505, allocations: 1.743 MB / 428.5 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.505, allocations: 0 / 428.5 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.253e-05/0.505, allocations: 7.875 kB / 428.5 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.727e-06/0.5051, allocations: 0 / 428.5 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.87e-05/0.5052, allocations: 35.98 kB / 428.5 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.5052, allocations: 0 / 428.5 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.271e-05/0.5052, allocations: 4 kB / 428.5 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002574/0.5078, allocations: 1.206 MB / 429.7 MB, free: 9.312 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001758/0.5096, allocations: 0.5147 MB / 430.2 MB, free: 8.777 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005003/0.5101, allocations: 63.95 kB / 430.3 MB, free: 8.715 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000743/0.5109, allocations: 31.97 kB / 430.3 MB, free: 8.684 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001711/0.5126, allocations: 491.5 kB / 430.8 MB, free: 8.203 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000234/0.5128, allocations: 115.9 kB / 430.9 MB, free: 8.09 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.002858/0.5157, allocations: 1.035 MB / 432 MB, free: 7.051 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001197/0.5169, allocations: 179.9 kB / 432.1 MB, free: 6.875 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.0009762/0.5179, allocations: 331.2 kB / 432.5 MB, free: 6.543 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002179/0.5201, allocations: 1.475 MB / 433.9 MB, free: 5.012 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.5201, allocations: 4 kB / 433.9 MB, free: 5.008 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001468/0.5216, allocations: 1.347 MB / 435.3 MB, free: 3.605 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003894/0.5255, allocations: 0.6932 MB / 436 MB, free: 2.914 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00533/0.5309, allocations: 2.279 MB / 438.3 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001515/0.5324, allocations: 1.169 MB / 439.4 MB, free: 15.4 MB / 330.7 MB Notification: Performance of SimCode: time 2.455e-06/0.5324, allocations: 0 / 439.4 MB, free: 15.4 MB / 330.7 MB Notification: Performance of Templates: time 0.0437/0.5761, allocations: 19.36 MB / 458.8 MB, free: 11.78 MB / 346.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)