Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.RAM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.RAM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.RAM") translateModel(Modelica.Electrical.Digital.Examples.RAM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.RAM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001492/0.001492, allocations: 184 kB / 8.354 MB, free: 0.7305 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.439/1.439, allocations: 194.3 MB / 203.1 MB, free: 13.03 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001635/0.001635, allocations: 116.3 kB / 248.1 MB, free: 36 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.828e-05/1.817e-05, allocations: 7.938 kB / 298.1 MB, free: 35.5 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.102, allocations: 44.51 MB / 342.6 MB, free: 6.984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4148/0.5168, allocations: 79.38 MB / 422 MB, free: 10.76 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002323/0.5171, allocations: 77.08 kB / 422 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07072/0.5878, allocations: 38.9 MB / 460.9 MB, free: 7.762 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5879, allocations: 0 / 460.9 MB, free: 7.762 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.005e-05/0.5879, allocations: 16 kB / 460.9 MB, free: 7.746 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.001511/0.5894, allocations: 1.351 MB / 462.3 MB, free: 6.297 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.5895, allocations: 12.03 kB / 462.3 MB, free: 6.285 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001661/0.5897, allocations: 122.5 kB / 462.4 MB, free: 6.164 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005942/0.5903, allocations: 460.7 kB / 462.9 MB, free: 5.691 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.069e-05/0.5903, allocations: 23.94 kB / 462.9 MB, free: 5.668 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.978e-05/0.5904, allocations: 16 kB / 462.9 MB, free: 5.652 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005238/0.5909, allocations: 439.8 kB / 463.3 MB, free: 5.223 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007014/0.5916, allocations: 0.5598 MB / 463.9 MB, free: 4.656 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.5916, allocations: 7.938 kB / 463.9 MB, free: 4.648 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.485e-05/0.5917, allocations: 8 kB / 463.9 MB, free: 4.641 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.5917, allocations: 4 kB / 463.9 MB, free: 4.637 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.5931, allocations: 0.8746 MB / 464.8 MB, free: 3.73 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007677/0.5939, allocations: 0.7088 MB / 465.5 MB, free: 3.016 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006195/0.5945, allocations: 0.7038 MB / 466.2 MB, free: 2.309 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.111e-05/0.5946, allocations: 0 / 466.2 MB, free: 2.309 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007311/0.5953, allocations: 0.7332 MB / 466.9 MB, free: 1.539 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 1.483e-06/0.5953, allocations: 0 / 466.9 MB, free: 1.539 MB / 314.7 MB Notification: Performance of matching and sorting (n=41): time 0.001564/0.5969, allocations: 1.249 MB / 468.2 MB, free: 288 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001815/0.5971, allocations: 330.7 kB / 468.5 MB, free: 15.89 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001532/0.5986, allocations: 1.239 MB / 469.8 MB, free: 14.64 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.72e-05/0.5987, allocations: 41.69 kB / 469.8 MB, free: 14.6 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000225/0.5989, allocations: 286 kB / 470.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.599, allocations: 86.91 kB / 470.2 MB, free: 14.23 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.824e-05/0.5991, allocations: 8 kB / 470.2 MB, free: 14.22 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.5992, allocations: 322 kB / 470.5 MB, free: 13.9 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005077/0.5997, allocations: 448.2 kB / 470.9 MB, free: 13.46 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005004/0.6002, allocations: 460.5 kB / 471.4 MB, free: 13.01 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004674/0.6007, allocations: 361.8 kB / 471.7 MB, free: 12.66 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.6007, allocations: 0 / 471.7 MB, free: 12.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.00153/0.6023, allocations: 1.211 MB / 472.9 MB, free: 11.45 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002061/0.6025, allocations: 307.2 kB / 473.2 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.6025, allocations: 0 / 473.2 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.6025, allocations: 0 / 473.2 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.968e-05/0.6026, allocations: 3.938 kB / 473.2 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.6026, allocations: 11.89 kB / 473.3 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003581/0.6029, allocations: 31.88 kB / 473.3 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000139/0.6031, allocations: 95.94 kB / 473.4 MB, free: 10.95 MB / 330.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.0004969/0.6036, allocations: 472.9 kB / 473.8 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.6037, allocations: 122.6 kB / 474 MB, free: 10.31 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003957/0.6042, allocations: 187.9 kB / 474.1 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.6042, allocations: 0 / 474.1 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.6042, allocations: 3.984 kB / 474.1 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.6042, allocations: 7.953 kB / 474.2 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002387/0.6066, allocations: 2 MB / 476.2 MB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.6066, allocations: 0 / 476.2 MB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.131e-05/0.6066, allocations: 0 / 476.2 MB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.6066, allocations: 0 / 476.2 MB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.107e-05/0.6067, allocations: 35.98 kB / 476.2 MB, free: 8.035 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.6067, allocations: 3.938 kB / 476.2 MB, free: 8.031 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.6067, allocations: 3.953 kB / 476.2 MB, free: 8.027 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001648/0.6084, allocations: 1.446 MB / 477.6 MB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007179/0.6091, allocations: 0.4952 MB / 478.1 MB, free: 6.051 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001955/0.6093, allocations: 63.95 kB / 478.2 MB, free: 5.988 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003081/0.6096, allocations: 23.98 kB / 478.2 MB, free: 5.965 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001153/0.6108, allocations: 0.6353 MB / 478.9 MB, free: 5.332 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001438/0.611, allocations: 119.9 kB / 479 MB, free: 5.215 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001347/0.6123, allocations: 1.008 MB / 480 MB, free: 4.203 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.6123, allocations: 0 / 480 MB, free: 4.203 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006555/0.613, allocations: 187.9 kB / 480.2 MB, free: 4.02 MB / 330.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.0006806/0.6137, allocations: 364 kB / 480.5 MB, free: 3.668 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001864/0.6155, allocations: 2.048 MB / 482.6 MB, free: 1.508 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.6156, allocations: 0 / 482.6 MB, free: 1.508 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001338/0.6169, allocations: 1.561 MB / 484.1 MB, free: 15.84 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002879/0.6198, allocations: 0.7155 MB / 484.8 MB, free: 15.12 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003233/0.623, allocations: 2.245 MB / 487.1 MB, free: 12.84 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009626/0.624, allocations: 1.143 MB / 488.2 MB, free: 11.66 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003206/0.6244, allocations: 75.06 kB / 488.3 MB, free: 11.58 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.246e-05/0.6244, allocations: 27.44 kB / 488.3 MB, free: 11.55 MB / 346.7 MB Notification: Performance of SimCode: time 1.262e-06/0.6244, allocations: 0 / 488.3 MB, free: 11.55 MB / 346.7 MB Notification: Performance of Templates: time 0.02862/0.653, allocations: 19.81 MB / 0.4962 GB, free: 7.492 MB / 362.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.RAM.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.RAM.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.RAM.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.RAM.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.RAM.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.RAM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.RAM.pipe 2>&1)