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.001936/0.001936, allocations: 170 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.364/1.364, allocations: 170.6 MB / 183.8 MB, free: 11.47 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.00206/0.00206, allocations: 110.7 kB / 223.2 MB, free: 4.105 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.042e-05/3.043e-05, allocations: 7.984 kB / 268.9 MB, free: 20.93 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0894/0.08945, allocations: 38.77 MB / 307.6 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3657/0.4552, allocations: 74.61 MB / 382.2 MB, free: 1.645 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002668/0.4555, allocations: 73.14 kB / 382.3 MB, free: 1.605 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1085/0.564, allocations: 39.26 MB / 421.6 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5641, allocations: 0 / 421.6 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.772e-05/0.5641, allocations: 12 kB / 421.6 MB, free: 492 kB / 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.001955/0.5661, allocations: 1.344 MB / 422.9 MB, free: 15.03 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.5662, allocations: 8.031 kB / 422.9 MB, free: 15.02 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000233/0.5664, allocations: 122.5 kB / 423.1 MB, free: 14.9 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009672/0.5674, allocations: 472.6 kB / 423.5 MB, free: 14.39 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.378e-05/0.5675, allocations: 16 kB / 423.5 MB, free: 14.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.799e-05/0.5676, allocations: 20 kB / 423.5 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001151/0.5687, allocations: 0.583 MB / 424.1 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.988e-06/0.5687, allocations: 0 / 424.1 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.746e-05/0.5688, allocations: 16 kB / 424.1 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.5688, allocations: 0 / 424.1 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008258/0.5697, allocations: 459.8 kB / 424.6 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002004/0.5717, allocations: 0.9155 MB / 425.5 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.5728, allocations: 0.7212 MB / 426.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001077/0.5739, allocations: 0.7121 MB / 426.9 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/0.5739, allocations: 0 / 426.9 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001175/0.5751, allocations: 0.7321 MB / 427.7 MB, free: 10.13 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 2.484e-06/0.5751, allocations: 3.938 kB / 427.7 MB, free: 10.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=41): time 0.002537/0.5777, allocations: 1.573 MB / 429.3 MB, free: 8.488 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002228/0.5779, allocations: 330.7 kB / 429.6 MB, free: 8.098 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002408/0.5803, allocations: 1.303 MB / 430.9 MB, free: 6.785 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.84e-05/0.5804, allocations: 45.69 kB / 430.9 MB, free: 6.734 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002921/0.5807, allocations: 286 kB / 431.2 MB, free: 6.449 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.5809, allocations: 82.97 kB / 431.3 MB, free: 6.367 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.195e-05/0.5809, allocations: 12 kB / 431.3 MB, free: 6.355 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.5811, allocations: 322 kB / 431.6 MB, free: 6.035 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008396/0.582, allocations: 460.2 kB / 432.1 MB, free: 5.582 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007862/0.5828, allocations: 472.5 kB / 432.5 MB, free: 5.121 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009395/0.5837, allocations: 0.6452 MB / 433.2 MB, free: 4.422 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.5837, allocations: 0 / 433.2 MB, free: 4.422 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.002626/0.5864, allocations: 1.524 MB / 434.7 MB, free: 2.836 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002475/0.5866, allocations: 307.2 kB / 435 MB, free: 2.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.5866, allocations: 0 / 435 MB, free: 2.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.5867, allocations: 3.953 kB / 435 MB, free: 2.477 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.952e-05/0.5867, allocations: 8 kB / 435 MB, free: 2.469 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.5867, allocations: 4 kB / 435 MB, free: 2.465 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005374/0.5873, allocations: 27.92 kB / 435 MB, free: 2.438 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002167/0.5875, allocations: 107.9 kB / 435.1 MB, free: 2.332 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.0005414/0.5881, allocations: 473.4 kB / 435.6 MB, free: 1.809 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002364/0.5883, allocations: 126.5 kB / 435.7 MB, free: 1.684 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005767/0.5889, allocations: 183.6 kB / 435.9 MB, free: 1.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.5889, allocations: 4 kB / 435.9 MB, free: 1.496 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.5889, allocations: 3.953 kB / 435.9 MB, free: 1.492 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.5889, allocations: 0 / 435.9 MB, free: 1.492 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004459/0.5934, allocations: 2.42 MB / 438.3 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.5934, allocations: 0 / 438.3 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.557e-05/0.5935, allocations: 0 / 438.3 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.376e-06/0.5935, allocations: 3.984 kB / 438.3 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.736e-05/0.5936, allocations: 39.94 kB / 438.4 MB, free: 14.92 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.5936, allocations: 0 / 438.4 MB, free: 14.92 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.5936, allocations: 4 kB / 438.4 MB, free: 14.92 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00294/0.5966, allocations: 1.83 MB / 440.2 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/0.5979, allocations: 0.4952 MB / 440.7 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002682/0.5981, allocations: 63.95 kB / 440.8 MB, free: 12.44 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005281/0.5987, allocations: 35.84 kB / 440.8 MB, free: 12.4 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001917/0.6006, allocations: 0.628 MB / 441.4 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002047/0.6008, allocations: 108 kB / 441.5 MB, free: 11.67 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002304/0.6032, allocations: 1.068 MB / 442.6 MB, free: 10.59 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.6032, allocations: 4 kB / 442.6 MB, free: 10.59 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009221/0.6041, allocations: 199.8 kB / 442.8 MB, free: 10.39 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.0008829/0.605, allocations: 350.3 kB / 443.1 MB, free: 10.05 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002973/0.608, allocations: 2.076 MB / 445.2 MB, free: 7.859 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.608, allocations: 3.938 kB / 445.2 MB, free: 7.855 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002097/0.6101, allocations: 1.577 MB / 446.8 MB, free: 6.168 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004668/0.6148, allocations: 0.7221 MB / 447.5 MB, free: 5.441 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005387/0.6202, allocations: 2.265 MB / 449.8 MB, free: 3.141 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001421/0.6217, allocations: 1.159 MB / 450.9 MB, free: 1.957 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004542/0.6221, allocations: 70.81 kB / 451 MB, free: 1.891 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.062e-05/0.6222, allocations: 23.44 kB / 451 MB, free: 1.867 MB / 330.7 MB Notification: Performance of SimCode: time 8.92e-07/0.6222, allocations: 0 / 451 MB, free: 1.867 MB / 330.7 MB Notification: Performance of Templates: time 0.2216/0.8438, allocations: 20.95 MB / 472 MB, free: 104.6 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)