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.001048/0.001048, allocations: 182 kB / 13.64 MB, free: 1.676 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.416/1.416, allocations: 194.3 MB / 208.4 MB, free: 6.715 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.001667/0.001668, allocations: 116.8 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.979e-05/2.98e-05, allocations: 4 kB / 304.9 MB, free: 29.78 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.082/0.08204, allocations: 44.5 MB / 349.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3095/0.3916, allocations: 80.05 MB / 429.5 MB, free: 9.82 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000188/0.3918, allocations: 74.66 kB / 429.6 MB, free: 9.809 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07338/0.4652, allocations: 39.27 MB / 468.8 MB, free: 15.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.4653, allocations: 0 / 468.8 MB, free: 15.12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.853e-05/0.4653, allocations: 16 kB / 468.8 MB, free: 15.11 MB / 330.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.001986/0.4673, allocations: 1.349 MB / 470.2 MB, free: 13.72 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.698e-05/0.4674, allocations: 8.031 kB / 470.2 MB, free: 13.71 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002505/0.4677, allocations: 122.5 kB / 470.3 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009039/0.4686, allocations: 469.5 kB / 470.8 MB, free: 13.1 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.128e-05/0.4687, allocations: 23.44 kB / 470.8 MB, free: 13.08 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.315e-05/0.4687, allocations: 19.56 kB / 470.8 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001106/0.4699, allocations: 0.5666 MB / 471.4 MB, free: 12.61 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.4699, allocations: 0 / 471.4 MB, free: 12.61 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.439e-05/0.47, allocations: 15.3 kB / 471.4 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.47, allocations: 8 kB / 471.4 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008291/0.4708, allocations: 453.2 kB / 471.9 MB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001939/0.4728, allocations: 0.9206 MB / 472.8 MB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.4739, allocations: 0.7212 MB / 473.5 MB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00107/0.4749, allocations: 0.7193 MB / 474.2 MB, free: 9.887 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.55e-05/0.475, allocations: 4 kB / 474.2 MB, free: 9.883 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001177/0.4762, allocations: 0.7282 MB / 475 MB, free: 9.117 MB / 330.7 MB Notification: Performance of pre-optimization done (n=41): time 2.755e-06/0.4762, allocations: 0 / 475 MB, free: 9.117 MB / 330.7 MB Notification: Performance of matching and sorting (n=41): time 0.002669/0.4789, allocations: 1.557 MB / 476.5 MB, free: 7.496 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002462/0.4791, allocations: 334.7 kB / 476.8 MB, free: 7.102 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002696/0.4818, allocations: 1.299 MB / 478.1 MB, free: 5.793 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.885e-05/0.4819, allocations: 41.7 kB / 478.2 MB, free: 5.746 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003708/0.4823, allocations: 282 kB / 478.5 MB, free: 5.465 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001657/0.4825, allocations: 94.84 kB / 478.5 MB, free: 5.371 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.302e-05/0.4825, allocations: 12 kB / 478.6 MB, free: 5.359 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.4827, allocations: 318 kB / 478.9 MB, free: 5.043 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008367/0.4836, allocations: 472.2 kB / 479.3 MB, free: 4.578 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007867/0.4844, allocations: 460.3 kB / 479.8 MB, free: 4.129 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009005/0.4853, allocations: 0.6493 MB / 480.4 MB, free: 3.426 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.4853, allocations: 0 / 480.4 MB, free: 3.426 MB / 330.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.002502/0.4878, allocations: 1.528 MB / 482 MB, free: 1.836 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002694/0.4881, allocations: 303.2 kB / 482.3 MB, free: 1.484 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.4881, allocations: 0 / 482.3 MB, free: 1.484 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.247e-05/0.4882, allocations: 4 kB / 482.3 MB, free: 1.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.172e-05/0.4882, allocations: 0 / 482.3 MB, free: 1.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.268e-06/0.4882, allocations: 7.938 kB / 482.3 MB, free: 1.473 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005271/0.4888, allocations: 35.88 kB / 482.3 MB, free: 1.438 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001987/0.489, allocations: 99.92 kB / 482.4 MB, free: 1.34 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.0005198/0.4895, allocations: 469.4 kB / 482.9 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002143/0.4897, allocations: 130.5 kB / 483 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004001/0.4901, allocations: 187.7 kB / 483.2 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.4902, allocations: 7.984 kB / 483.2 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.4902, allocations: 0 / 483.2 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.4902, allocations: 4 kB / 483.2 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003358/0.4936, allocations: 2.416 MB / 485.6 MB, free: 13.97 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.4936, allocations: 7.891 kB / 485.6 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.124e-05/0.4936, allocations: 4 kB / 485.6 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.4936, allocations: 4 kB / 485.6 MB, free: 13.95 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.583e-05/0.4937, allocations: 31.98 kB / 485.6 MB, free: 13.92 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.4937, allocations: 0 / 485.6 MB, free: 13.92 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4937, allocations: 0 / 485.6 MB, free: 13.92 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002343/0.4961, allocations: 1.83 MB / 487.5 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009255/0.497, allocations: 0.5068 MB / 488 MB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002046/0.4972, allocations: 63.95 kB / 488 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003636/0.4976, allocations: 31.98 kB / 488.1 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001348/0.499, allocations: 0.6319 MB / 488.7 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001525/0.4991, allocations: 111.9 kB / 488.8 MB, free: 10.66 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001642/0.5008, allocations: 1.068 MB / 489.9 MB, free: 9.582 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.5008, allocations: 4 kB / 489.9 MB, free: 9.578 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007295/0.5015, allocations: 196 kB / 490.1 MB, free: 9.387 MB / 346.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.0007821/0.5023, allocations: 352 kB / 490.4 MB, free: 9.039 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002075/0.5044, allocations: 2.072 MB / 492.5 MB, free: 6.855 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5044, allocations: 4 kB / 492.5 MB, free: 6.852 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001599/0.506, allocations: 1.584 MB / 494.1 MB, free: 5.156 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003104/0.5092, allocations: 0.7241 MB / 494.8 MB, free: 4.43 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003751/0.5129, allocations: 2.261 MB / 497.1 MB, free: 2.133 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009732/0.5139, allocations: 1.151 MB / 498.2 MB, free: 0.957 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004897/0.5144, allocations: 74.86 kB / 498.3 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.656e-05/0.5145, allocations: 19.44 kB / 498.3 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of SimCode: time 1.433e-06/0.5145, allocations: 4 kB / 498.3 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of Templates: time 0.02805/0.5425, allocations: 20.95 MB / 0.5071 GB, free: 11.66 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)