Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.RAM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATRAM.dataOut.1.|dLATRAM.dataOut.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM") translateModel(Modelica.Electrical.Digital.Examples.RAM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATRAM.dataOut.1.|dLATRAM.dataOut.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000993/0.0009929, allocations: 175 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 221.3 MB / 235.5 MB, free: 2.902 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008001/0.0008001, allocations: 95.84 kB / 286.5 MB, free: 164 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.179e-05/2.182e-05, allocations: 4 kB / 343.8 MB, free: 4.289 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08676/0.0868, allocations: 50.4 MB / 394.2 MB, free: 1.844 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3692/0.4561, allocations: 86.02 MB / 480.3 MB, free: 1.504 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.4564, allocations: 71.8 kB / 480.3 MB, free: 1.438 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1154/0.5718, allocations: 39.85 MB / 0.508 GB, free: 9.652 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.158e-06/0.5718, allocations: 4 kB / 0.508 GB, free: 9.648 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.418e-05/0.5719, allocations: 16 kB / 0.508 GB, free: 9.633 MB / 394.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.001753/0.5736, allocations: 1.336 MB / 0.5093 GB, free: 8.195 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.5737, allocations: 11.97 kB / 0.5093 GB, free: 8.184 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002106/0.5739, allocations: 130.7 kB / 0.5094 GB, free: 8.055 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008215/0.5747, allocations: 476.6 kB / 0.5099 GB, free: 7.539 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.437e-05/0.5748, allocations: 12 kB / 0.5099 GB, free: 7.527 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.48e-05/0.5749, allocations: 20 kB / 0.5099 GB, free: 7.508 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/0.576, allocations: 0.5716 MB / 0.5105 GB, free: 6.93 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.576, allocations: 7.984 kB / 0.5105 GB, free: 6.922 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.899e-05/0.5761, allocations: 11.95 kB / 0.5105 GB, free: 6.91 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.5761, allocations: 4 kB / 0.5105 GB, free: 6.906 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007687/0.5769, allocations: 463.7 kB / 0.511 GB, free: 6.453 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.5788, allocations: 0.9117 MB / 0.5118 GB, free: 5.496 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009968/0.5798, allocations: 0.7211 MB / 0.5126 GB, free: 4.766 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009444/0.5808, allocations: 0.7038 MB / 0.5132 GB, free: 4.059 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.5808, allocations: 4 kB / 0.5132 GB, free: 4.055 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001074/0.5819, allocations: 0.7321 MB / 0.514 GB, free: 3.285 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 2.405e-06/0.5819, allocations: 0 / 0.514 GB, free: 3.285 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.00254/0.5845, allocations: 1.565 MB / 0.5155 GB, free: 1.656 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001997/0.5847, allocations: 330.7 kB / 0.5158 GB, free: 1.266 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002371/0.5871, allocations: 1.303 MB / 0.5171 GB, free: 15.95 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.054e-05/0.5872, allocations: 45.69 kB / 0.5171 GB, free: 15.9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002899/0.5875, allocations: 282.1 kB / 0.5174 GB, free: 15.62 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.5876, allocations: 90.83 kB / 0.5175 GB, free: 15.53 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.77e-05/0.5877, allocations: 8 kB / 0.5175 GB, free: 15.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.5878, allocations: 330 kB / 0.5178 GB, free: 15.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007099/0.5885, allocations: 460.2 kB / 0.5182 GB, free: 14.74 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006998/0.5892, allocations: 468.5 kB / 0.5187 GB, free: 14.29 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007842/0.59, allocations: 0.6455 MB / 0.5193 GB, free: 13.59 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.5901, allocations: 0 / 0.5193 GB, free: 13.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.002298/0.5924, allocations: 1.531 MB / 0.5208 GB, free: 11.99 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000237/0.5926, allocations: 303.2 kB / 0.5211 GB, free: 11.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.5926, allocations: 4 kB / 0.5211 GB, free: 11.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.5927, allocations: 0 / 0.5211 GB, free: 11.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.712e-05/0.5927, allocations: 0 / 0.5211 GB, free: 11.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.5927, allocations: 0 / 0.5211 GB, free: 11.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005041/0.5932, allocations: 39.83 kB / 0.5211 GB, free: 11.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001788/0.5934, allocations: 95.98 kB / 0.5212 GB, free: 11.5 MB / 410.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.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,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],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.000468/0.5939, allocations: 489.3 kB / 0.5217 GB, free: 10.96 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002057/0.5941, allocations: 126.5 kB / 0.5218 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004972/0.5946, allocations: 191.6 kB / 0.522 GB, free: 10.65 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.5946, allocations: 4 kB / 0.522 GB, free: 10.65 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.5947, allocations: 0 / 0.522 GB, free: 10.65 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.5947, allocations: 0 / 0.522 GB, free: 10.65 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00376/0.5984, allocations: 2.412 MB / 0.5244 GB, free: 8.129 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.5985, allocations: 7.875 kB / 0.5244 GB, free: 8.121 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.586e-05/0.5985, allocations: 3.984 kB / 0.5244 GB, free: 8.117 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.81e-06/0.5985, allocations: 0 / 0.5244 GB, free: 8.117 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.335e-05/0.5986, allocations: 35.98 kB / 0.5244 GB, free: 8.082 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.5986, allocations: 0 / 0.5244 GB, free: 8.082 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.5986, allocations: 0 / 0.5244 GB, free: 8.082 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002747/0.6014, allocations: 1.838 MB / 0.5262 GB, free: 6.172 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001259/0.6027, allocations: 0.4952 MB / 0.5267 GB, free: 5.656 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002856/0.603, allocations: 67.95 kB / 0.5267 GB, free: 5.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005213/0.6035, allocations: 23.98 kB / 0.5268 GB, free: 5.566 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001828/0.6053, allocations: 0.6397 MB / 0.5274 GB, free: 4.926 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001861/0.6055, allocations: 107.9 kB / 0.5275 GB, free: 4.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002144/0.6077, allocations: 1.072 MB / 0.5285 GB, free: 3.742 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6077, allocations: 0 / 0.5285 GB, free: 3.742 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009545/0.6087, allocations: 195.9 kB / 0.5287 GB, free: 3.551 MB / 410.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.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,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],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.0009519/0.6097, allocations: 356.2 kB / 0.5291 GB, free: 3.219 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002643/0.6123, allocations: 2.076 MB / 0.5311 GB, free: 1.031 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.6123, allocations: 0 / 0.5311 GB, free: 1.031 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001735/0.6141, allocations: 1.6 MB / 0.5327 GB, free: 15.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003889/0.618, allocations: 0.7081 MB / 0.5334 GB, free: 14.63 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004397/0.6224, allocations: 2.273 MB / 0.5356 GB, free: 12.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001159/0.6236, allocations: 1.147 MB / 0.5367 GB, free: 11.15 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004073/0.624, allocations: 74.86 kB / 0.5368 GB, free: 11.08 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.851e-05/0.624, allocations: 23.44 kB / 0.5368 GB, free: 11.05 MB / 426.7 MB Notification: Performance of SimCode: time 5.61e-07/0.6241, allocations: 0 / 0.5368 GB, free: 11.05 MB / 426.7 MB Notification: Performance of Templates: time 0.2798/0.9039, allocations: 20.93 MB / 0.5572 GB, free: 123.9 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/RAM/RAM.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches