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") [: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.2+maint.om/package.mo): time 0.0009977/0.0009977, allocations: 189.8 kB / 8.136 MB, free: 2.215 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.129/1.129, allocations: 194.2 MB / 202.8 MB, free: 8.906 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.001754/0.001754, allocations: 116 kB / 247.7 MB, free: 6.195 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 8.055e-06/8.095e-06, allocations: 4 kB / 297.6 MB, free: 8.02 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0781/0.07813, allocations: 44.48 MB / 342.1 MB, free: 11.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2022/0.2804, allocations: 79.36 MB / 421.4 MB, free: 15.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002057/0.2807, allocations: 64.78 kB / 421.5 MB, free: 15.74 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.07899/0.3597, allocations: 39.8 MB / 461.3 MB, free: 15.98 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.619e-05/0.3597, allocations: 12 kB / 461.3 MB, free: 15.97 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.001531/0.3613, allocations: 1.379 MB / 462.7 MB, free: 14.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.3613, allocations: 8.031 kB / 462.7 MB, free: 14.49 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001657/0.3615, allocations: 126.5 kB / 462.8 MB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007337/0.3622, allocations: 480.6 kB / 463.3 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.925e-05/0.3623, allocations: 12.66 kB / 463.3 MB, free: 13.83 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.542e-05/0.3624, allocations: 27.94 kB / 463.3 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005718/0.3629, allocations: 451.8 kB / 463.8 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007152/0.3637, allocations: 0.5595 MB / 464.3 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.3637, allocations: 4 kB / 464.3 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.025e-05/0.3637, allocations: 11.97 kB / 464.3 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.3638, allocations: 4 kB / 464.3 MB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001584/0.3654, allocations: 0.8961 MB / 465.2 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000694/0.3661, allocations: 0.721 MB / 466 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006883/0.3668, allocations: 0.7116 MB / 466.7 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.218e-05/0.3668, allocations: 0 / 466.7 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006927/0.3675, allocations: 0.7008 MB / 467.4 MB, free: 9.668 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 1.633e-06/0.3675, allocations: 0 / 467.4 MB, free: 9.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=41): time 0.001363/0.3689, allocations: 1.007 MB / 468.4 MB, free: 8.652 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002035/0.3691, allocations: 342.6 kB / 468.7 MB, free: 8.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001733/0.3708, allocations: 1.27 MB / 470 MB, free: 6.973 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.543e-05/0.3709, allocations: 37.7 kB / 470 MB, free: 6.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.567e-05/0.371, allocations: 154.1 kB / 470.2 MB, free: 6.777 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.3711, allocations: 82.98 kB / 470.2 MB, free: 6.695 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.041e-05/0.3712, allocations: 7.984 kB / 470.3 MB, free: 6.688 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.3713, allocations: 325.9 kB / 470.6 MB, free: 6.363 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004939/0.3718, allocations: 460.2 kB / 471 MB, free: 5.91 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004871/0.3723, allocations: 468.4 kB / 471.5 MB, free: 5.453 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004941/0.3728, allocations: 373.7 kB / 471.8 MB, free: 5.09 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3728, allocations: 4 kB / 471.8 MB, free: 5.086 MB / 346.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001326/0.3741, allocations: 0.9894 MB / 472.8 MB, free: 4.09 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.3742, allocations: 8 kB / 472.8 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3742, allocations: 0 / 472.8 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.3742, allocations: 3.984 kB / 472.8 MB, free: 4.078 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.591e-05/0.3742, allocations: 0 / 472.8 MB, free: 4.078 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.782e-06/0.3742, allocations: 4 kB / 472.9 MB, free: 4.074 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003647/0.3746, allocations: 31.83 kB / 472.9 MB, free: 4.043 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001278/0.3748, allocations: 97.67 kB / 473 MB, free: 3.949 MB / 346.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.0003734/0.3751, allocations: 449.5 kB / 473.4 MB, free: 3.445 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001482/0.3753, allocations: 126.5 kB / 473.5 MB, free: 3.32 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003751/0.3757, allocations: 183.6 kB / 473.7 MB, free: 3.137 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.3757, allocations: 4 kB / 473.7 MB, free: 3.133 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3757, allocations: 0 / 473.7 MB, free: 3.133 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3757, allocations: 4 kB / 473.7 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002148/0.3779, allocations: 1.755 MB / 475.5 MB, free: 1.332 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3779, allocations: 0 / 475.5 MB, free: 1.332 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.042e-05/0.3779, allocations: 0 / 475.5 MB, free: 1.332 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.3779, allocations: 7.906 kB / 475.5 MB, free: 1.324 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.892e-05/0.378, allocations: 39.95 kB / 475.5 MB, free: 1.285 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.378, allocations: 4 kB / 475.5 MB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.378, allocations: 4 kB / 475.5 MB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001429/0.3794, allocations: 1.194 MB / 476.7 MB, free: 68 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009086/0.3804, allocations: 0.5187 MB / 477.2 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002277/0.3806, allocations: 63.95 kB / 477.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003624/0.381, allocations: 35.83 kB / 477.3 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001075/0.3821, allocations: 0.4916 MB / 477.8 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001402/0.3822, allocations: 111.9 kB / 477.9 MB, free: 14.83 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.001542/0.3838, allocations: 1.031 MB / 479 MB, free: 13.79 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006536/0.3844, allocations: 164 kB / 479.1 MB, free: 13.63 MB / 362.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.0008045/0.3852, allocations: 346.7 kB / 479.5 MB, free: 13.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001661/0.3869, allocations: 1.475 MB / 481 MB, free: 11.76 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3869, allocations: 0 / 481 MB, free: 11.76 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001387/0.3883, allocations: 1.354 MB / 482.3 MB, free: 10.35 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002933/0.3913, allocations: 0.6883 MB / 483 MB, free: 9.668 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003793/0.3951, allocations: 2.275 MB / 485.3 MB, free: 7.355 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00106/0.3962, allocations: 1.165 MB / 486.4 MB, free: 6.156 MB / 362.7 MB Notification: Performance of SimCode: time 7.01e-07/0.3962, allocations: 4 kB / 486.4 MB, free: 6.152 MB / 362.7 MB Notification: Performance of Templates: time 0.0301/0.4263, allocations: 19.36 MB / 0.4939 GB, free: 2.539 MB / 378.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)