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.001018/0.001018, allocations: 178.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.307/1.307, allocations: 194.5 MB / 211.6 MB, free: 3.047 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.001595/0.001595, allocations: 106.7 kB / 256.9 MB, free: 4.359 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004161/0.0004162, allocations: 8 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08477/0.08521, allocations: 44.5 MB / 355.1 MB, free: 2.336 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.256/0.3412, allocations: 80.13 MB / 435.2 MB, free: 9.398 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003558/0.3417, allocations: 80.02 kB / 435.3 MB, free: 9.355 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07361/0.4154, allocations: 39.2 MB / 474.5 MB, free: 4.957 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4154, allocations: 0 / 474.5 MB, free: 4.957 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.289e-05/0.4155, allocations: 20 kB / 474.5 MB, free: 4.938 MB / 346.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.002295/0.4178, allocations: 1.548 MB / 476 MB, free: 3.281 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.4178, allocations: 12.03 kB / 476 MB, free: 3.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002612/0.4181, allocations: 120.2 kB / 476.2 MB, free: 3.152 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008748/0.419, allocations: 481 kB / 476.6 MB, free: 2.633 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.811e-05/0.419, allocations: 19.95 kB / 476.7 MB, free: 2.613 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.982e-05/0.4191, allocations: 16 kB / 476.7 MB, free: 2.598 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008693/0.42, allocations: 0.5755 MB / 477.2 MB, free: 2.016 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.42, allocations: 4 kB / 477.2 MB, free: 2.012 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.595e-05/0.4201, allocations: 15.98 kB / 477.3 MB, free: 1.996 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.4201, allocations: 4 kB / 477.3 MB, free: 1.992 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005833/0.4207, allocations: 475.3 kB / 477.7 MB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00177/0.4224, allocations: 0.9078 MB / 478.6 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008578/0.4233, allocations: 0.7289 MB / 479.4 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.481e-05/0.4233, allocations: 3.953 kB / 479.4 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008784/0.4242, allocations: 0.7514 MB / 480.1 MB, free: 15.05 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 1.933e-06/0.4242, allocations: 0 / 480.1 MB, free: 15.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.002621/0.4269, allocations: 2.302 MB / 482.4 MB, free: 12.63 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002284/0.4271, allocations: 330.7 kB / 482.7 MB, free: 12.24 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001943/0.4291, allocations: 1.313 MB / 484.1 MB, free: 10.92 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.81e-05/0.4291, allocations: 37.7 kB / 484.1 MB, free: 10.88 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002433/0.4294, allocations: 290.7 kB / 484.4 MB, free: 10.59 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.4295, allocations: 90.97 kB / 484.5 MB, free: 10.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.182e-05/0.4295, allocations: 4 kB / 484.5 MB, free: 10.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.4297, allocations: 330 kB / 484.8 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005518/0.4302, allocations: 460.1 kB / 485.2 MB, free: 9.715 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005536/0.4308, allocations: 0.4922 MB / 485.7 MB, free: 9.215 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006291/0.4314, allocations: 0.6553 MB / 486.4 MB, free: 8.504 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.4314, allocations: 0 / 486.4 MB, free: 8.504 MB / 362.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.00173/0.4332, allocations: 1.544 MB / 487.9 MB, free: 6.898 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000224/0.4334, allocations: 307.2 kB / 488.2 MB, free: 6.543 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.4334, allocations: 4 kB / 488.2 MB, free: 6.539 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.4335, allocations: 0 / 488.2 MB, free: 6.539 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.705e-05/0.4335, allocations: 4 kB / 488.2 MB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.4335, allocations: 0 / 488.2 MB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003386/0.4339, allocations: 39.94 kB / 488.3 MB, free: 6.496 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001266/0.434, allocations: 99.94 kB / 488.4 MB, free: 6.398 MB / 362.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.001037/0.435, allocations: 0.864 MB / 489.2 MB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.4352, allocations: 134.5 kB / 489.4 MB, free: 5.336 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003134/0.4355, allocations: 187.8 kB / 489.6 MB, free: 5.148 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.115e-06/0.4355, allocations: 0 / 489.6 MB, free: 5.148 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4355, allocations: 0 / 489.6 MB, free: 5.148 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.4356, allocations: 4 kB / 489.6 MB, free: 5.145 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002899/0.4385, allocations: 2.435 MB / 492 MB, free: 2.602 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.4385, allocations: 4 kB / 492 MB, free: 2.598 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.309e-05/0.4385, allocations: 3.953 kB / 492 MB, free: 2.594 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.4385, allocations: 0 / 492 MB, free: 2.594 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.359e-05/0.4386, allocations: 35.98 kB / 492 MB, free: 2.559 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.4386, allocations: 4.547 kB / 492 MB, free: 2.555 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4386, allocations: 4 kB / 492.1 MB, free: 2.551 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002054/0.4406, allocations: 1.846 MB / 493.9 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008623/0.4415, allocations: 0.4952 MB / 494.4 MB, free: 120 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001954/0.4417, allocations: 63.91 kB / 494.5 MB, free: 56 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003271/0.4421, allocations: 39.81 kB / 494.5 MB, free: 16 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001147/0.4432, allocations: 0.6366 MB / 495.1 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/0.4434, allocations: 111.9 kB / 495.2 MB, free: 15.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001575/0.445, allocations: 1.086 MB / 496.3 MB, free: 14.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.445, allocations: 0 / 496.3 MB, free: 14.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006677/0.4456, allocations: 180 kB / 496.5 MB, free: 14 MB / 378.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.000747/0.4464, allocations: 371.4 kB / 496.9 MB, free: 13.65 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002035/0.4484, allocations: 2.1 MB / 499 MB, free: 11.44 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4485, allocations: 0 / 499 MB, free: 11.44 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001331/0.4498, allocations: 1.6 MB / 0.4888 GB, free: 9.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002527/0.4523, allocations: 0.717 MB / 0.4895 GB, free: 9.016 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004045/0.4564, allocations: 2.831 MB / 0.4923 GB, free: 6.148 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/0.4574, allocations: 1.154 MB / 0.4934 GB, free: 4.965 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003318/0.4578, allocations: 69.7 kB / 0.4935 GB, free: 4.902 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.557e-05/0.4578, allocations: 19.44 kB / 0.4935 GB, free: 4.887 MB / 378.7 MB Notification: Performance of SimCode: time 1.442e-06/0.4578, allocations: 0 / 0.4935 GB, free: 4.887 MB / 378.7 MB Notification: Performance of Templates: time 0.1776/0.6355, allocations: 20.94 MB / 0.514 GB, free: 119.4 MB / 394.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)