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.0009415/0.0009414, allocations: 171.5 kB / 7.638 MB, free: 1.418 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.283/1.283, allocations: 170.7 MB / 178.7 MB, free: 15.58 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.001477/0.001477, allocations: 107.5 kB / 218 MB, free: 8.34 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.005e-05/2.006e-05, allocations: 4 kB / 262.2 MB, free: 26.39 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1044, allocations: 38.78 MB / 301 MB, free: 3.609 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3054/0.4098, allocations: 73.94 MB / 374.9 MB, free: 10.36 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/0.4101, allocations: 70.53 kB / 375 MB, free: 10.32 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07635/0.4865, allocations: 38.89 MB / 413.9 MB, free: 9.875 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.4865, allocations: 0 / 413.9 MB, free: 9.875 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.042e-05/0.4866, allocations: 12 kB / 413.9 MB, free: 9.863 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.001674/0.4883, allocations: 1.355 MB / 415.2 MB, free: 8.406 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.4883, allocations: 11.97 kB / 415.3 MB, free: 8.395 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000207/0.4885, allocations: 126.5 kB / 415.4 MB, free: 8.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007451/0.4893, allocations: 468.7 kB / 415.8 MB, free: 7.762 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.23e-05/0.4893, allocations: 19.97 kB / 415.9 MB, free: 7.742 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.063e-05/0.4894, allocations: 16 kB / 415.9 MB, free: 7.727 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006597/0.4901, allocations: 448.1 kB / 416.3 MB, free: 7.289 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008245/0.4909, allocations: 0.5559 MB / 416.9 MB, free: 6.727 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.4909, allocations: 0 / 416.9 MB, free: 6.727 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.394e-05/0.491, allocations: 12 kB / 416.9 MB, free: 6.715 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.491, allocations: 0 / 416.9 MB, free: 6.715 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001553/0.4926, allocations: 0.8713 MB / 417.7 MB, free: 5.809 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008454/0.4934, allocations: 0.7094 MB / 418.5 MB, free: 5.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000789/0.4942, allocations: 0.6999 MB / 419.2 MB, free: 4.387 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.4943, allocations: 4 kB / 419.2 MB, free: 4.383 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009514/0.4952, allocations: 0.7359 MB / 419.9 MB, free: 3.609 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 1.813e-06/0.4952, allocations: 0 / 419.9 MB, free: 3.609 MB / 298.7 MB Notification: Performance of matching and sorting (n=41): time 0.00172/0.497, allocations: 1.257 MB / 421.2 MB, free: 2.344 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001991/0.4972, allocations: 326.7 kB / 421.5 MB, free: 1.957 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001758/0.4989, allocations: 1.243 MB / 422.7 MB, free: 0.707 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.171e-05/0.499, allocations: 41.69 kB / 422.8 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002416/0.4993, allocations: 282 kB / 423 MB, free: 392 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.4994, allocations: 86.91 kB / 423.1 MB, free: 304 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.721e-05/0.4994, allocations: 12 kB / 423.1 MB, free: 292 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.4996, allocations: 325.9 kB / 423.4 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005296/0.5001, allocations: 452.1 kB / 423.9 MB, free: 15.52 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005259/0.5007, allocations: 460.5 kB / 424.3 MB, free: 15.07 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005014/0.5012, allocations: 361.8 kB / 424.7 MB, free: 14.71 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.5012, allocations: 0 / 424.7 MB, free: 14.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001451/0.5027, allocations: 1.204 MB / 425.9 MB, free: 13.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002601/0.5029, allocations: 303.2 kB / 426.2 MB, free: 13.15 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.5029, allocations: 4 kB / 426.2 MB, free: 13.15 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.503, allocations: 4 kB / 426.2 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.837e-05/0.503, allocations: 3.938 kB / 426.2 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.503, allocations: 0 / 426.2 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003567/0.5034, allocations: 27.97 kB / 426.2 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001356/0.5035, allocations: 99.94 kB / 426.3 MB, free: 13.02 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.0004359/0.504, allocations: 478.9 kB / 426.8 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/0.5041, allocations: 130.5 kB / 426.9 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003121/0.5044, allocations: 184 kB / 427.1 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.5044, allocations: 0 / 427.1 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/0.5045, allocations: 0 / 427.1 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.5045, allocations: 7.922 kB / 427.1 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002502/0.507, allocations: 2.001 MB / 429.1 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.507, allocations: 0 / 429.1 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.231e-05/0.507, allocations: 4 kB / 429.1 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.507, allocations: 0 / 429.1 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.174e-05/0.5071, allocations: 31.98 kB / 429.1 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.5071, allocations: 0 / 429.1 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.5071, allocations: 0 / 429.1 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001738/0.5089, allocations: 1.45 MB / 430.6 MB, free: 8.617 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000759/0.5096, allocations: 0.503 MB / 431.1 MB, free: 8.094 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001828/0.5098, allocations: 67.89 kB / 431.2 MB, free: 8.027 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003177/0.5102, allocations: 23.98 kB / 431.2 MB, free: 8.004 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001131/0.5113, allocations: 0.6241 MB / 431.8 MB, free: 7.379 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001389/0.5114, allocations: 116 kB / 431.9 MB, free: 7.266 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001424/0.5129, allocations: 1.012 MB / 432.9 MB, free: 6.25 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5129, allocations: 0 / 432.9 MB, free: 6.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000722/0.5136, allocations: 184 kB / 433.1 MB, free: 6.07 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.0007402/0.5144, allocations: 353.7 kB / 433.5 MB, free: 5.719 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001987/0.5164, allocations: 2.045 MB / 435.5 MB, free: 3.562 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.5164, allocations: 3.938 kB / 435.5 MB, free: 3.559 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001197/0.5176, allocations: 1.565 MB / 437.1 MB, free: 1.883 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003045/0.5206, allocations: 0.7238 MB / 437.8 MB, free: 1.16 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003415/0.5241, allocations: 2.248 MB / 440.1 MB, free: 14.88 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008684/0.525, allocations: 1.147 MB / 441.2 MB, free: 13.69 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003685/0.5253, allocations: 71.19 kB / 441.3 MB, free: 13.62 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.737e-05/0.5254, allocations: 19.44 kB / 441.3 MB, free: 13.6 MB / 330.7 MB Notification: Performance of SimCode: time 2.745e-06/0.5254, allocations: 3.938 kB / 441.3 MB, free: 13.59 MB / 330.7 MB Notification: Performance of Templates: time 0.03237/0.5578, allocations: 19.81 MB / 461.1 MB, free: 9.523 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)