Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Digital.Examples.RAM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009843/0.0009843, allocations: 196.7 kB / 18.1 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 226.5 MB / 245.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008433/0.0008433, allocations: 91.88 kB / 297.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002157/0.0002158, allocations: 8 kB / 358.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2356, allocations: 51.3 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.101/0.3366, allocations: 86.84 MB / 496.2 MB, free: 4.648 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/0.3369, allocations: 71.97 kB / 496.3 MB, free: 4.578 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2879/0.6248, allocations: 39.85 MB / 0.5236 GB, free: 90.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.073e-06/0.6249, allocations: 0 / 0.5236 GB, free: 90.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.466e-05/0.6249, allocations: 16 kB / 0.5236 GB, free: 90 MB / 378.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.001872/0.6268, allocations: 1.536 MB / 0.5251 GB, free: 88.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.6269, allocations: 8.031 kB / 0.5251 GB, free: 88.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002203/0.6271, allocations: 123.4 kB / 0.5252 GB, free: 88.26 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006184/0.6277, allocations: 0.5194 MB / 0.5257 GB, free: 87.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.02e-05/0.6278, allocations: 16.38 kB / 0.5257 GB, free: 87.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.522e-05/0.6278, allocations: 24.38 kB / 0.5257 GB, free: 87.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006632/0.6285, allocations: 0.5681 MB / 0.5263 GB, free: 87.1 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.6285, allocations: 4.188 kB / 0.5263 GB, free: 87.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.172e-05/0.6286, allocations: 15.45 kB / 0.5263 GB, free: 87.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.768e-06/0.6286, allocations: 4 kB / 0.5263 GB, free: 87.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004525/0.6291, allocations: 455.8 kB / 0.5268 GB, free: 86.64 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001263/0.6303, allocations: 0.9124 MB / 0.5277 GB, free: 85.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00057/0.6309, allocations: 0.7247 MB / 0.5284 GB, free: 84.95 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005093/0.6314, allocations: 0.7037 MB / 0.529 GB, free: 84.24 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.32e-05/0.6315, allocations: 4 kB / 0.529 GB, free: 84.24 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006037/0.6321, allocations: 0.725 MB / 0.5298 GB, free: 83.48 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 2.264e-06/0.6321, allocations: 0 / 0.5298 GB, free: 83.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.001889/0.634, allocations: 2.045 MB / 0.5318 GB, free: 81.37 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.577e-05/0.6341, allocations: 330.7 kB / 0.5321 GB, free: 80.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001639/0.6357, allocations: 1.503 MB / 0.5335 GB, free: 79.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.7e-05/0.6358, allocations: 37.7 kB / 0.5336 GB, free: 79.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00017/0.636, allocations: 286 kB / 0.5338 GB, free: 79.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.286e-05/0.6361, allocations: 89.92 kB / 0.5339 GB, free: 79.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.939e-05/0.6361, allocations: 4 kB / 0.5339 GB, free: 79.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.027e-05/0.6362, allocations: 333.9 kB / 0.5343 GB, free: 78.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004197/0.6366, allocations: 452.1 kB / 0.5347 GB, free: 78.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004126/0.637, allocations: 491 kB / 0.5352 GB, free: 77.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009/0.6379, allocations: 1.278 MB / 0.5364 GB, free: 76.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.638, allocations: 3.938 kB / 0.5364 GB, free: 76.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.00141/0.6394, allocations: 1.533 MB / 0.5379 GB, free: 74.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002139/0.6396, allocations: 303.2 kB / 0.5382 GB, free: 74.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.6396, allocations: 4 kB / 0.5382 GB, free: 74.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.573e-05/0.6397, allocations: 0 / 0.5382 GB, free: 74.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.232e-05/0.6397, allocations: 3.938 kB / 0.5382 GB, free: 74.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.6397, allocations: 4 kB / 0.5382 GB, free: 74.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004/0.6401, allocations: 31.83 kB / 0.5382 GB, free: 74.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000149/0.6403, allocations: 108 kB / 0.5383 GB, free: 74.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 45 ($PRE.dLATRAM.inertialDelaySensitive[2].y,$PRE.dLATRAM.inertialDelaySensitive[1].y,$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,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,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 () * Number of clocked 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.0009726/0.6413, allocations: 0.8688 MB / 0.5392 GB, free: 73.37 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.6414, allocations: 126.5 kB / 0.5393 GB, free: 73.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000318/0.6417, allocations: 183.9 kB / 0.5395 GB, free: 73.06 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.6418, allocations: 4 kB / 0.5395 GB, free: 73.06 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.6418, allocations: 0 / 0.5395 GB, free: 73.06 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.6418, allocations: 3.984 kB / 0.5395 GB, free: 73.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002477/0.6443, allocations: 2.438 MB / 0.5419 GB, free: 70.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.6443, allocations: 0 / 0.5419 GB, free: 70.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.257e-06/0.6443, allocations: 0 / 0.5419 GB, free: 70.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.6443, allocations: 0 / 0.5419 GB, free: 70.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.425e-05/0.6444, allocations: 35.98 kB / 0.5419 GB, free: 70.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.6444, allocations: 0 / 0.5419 GB, free: 70.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.6444, allocations: 7.938 kB / 0.5419 GB, free: 70.47 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00158/0.646, allocations: 1.845 MB / 0.5437 GB, free: 68.56 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005989/0.6466, allocations: 0.4952 MB / 0.5442 GB, free: 68.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001715/0.6468, allocations: 59.95 kB / 0.5443 GB, free: 67.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002888/0.6471, allocations: 35.98 kB / 0.5443 GB, free: 67.95 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009998/0.6481, allocations: 0.6319 MB / 0.5449 GB, free: 67.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001141/0.6482, allocations: 111.9 kB / 0.545 GB, free: 67.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001195/0.6494, allocations: 1.082 MB / 0.5461 GB, free: 66.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6494, allocations: 0 / 0.5461 GB, free: 66.12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006435/0.65, allocations: 195.4 kB / 0.5463 GB, free: 65.93 MB / 378.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) * Number of clocked states: 0 () * 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.0006941/0.6508, allocations: 370.1 kB / 0.5466 GB, free: 65.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001552/0.6523, allocations: 2.076 MB / 0.5486 GB, free: 63.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.6523, allocations: 4.062 kB / 0.5486 GB, free: 63.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009329/0.6533, allocations: 1.592 MB / 0.5502 GB, free: 61.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002441/0.6557, allocations: 0.7274 MB / 0.5509 GB, free: 61.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003271/0.659, allocations: 2.823 MB / 0.5537 GB, free: 58.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007454/0.6598, allocations: 1.119 MB / 0.5548 GB, free: 57.01 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003068/0.6601, allocations: 74.81 kB / 0.5548 GB, free: 56.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.654e-05/0.6601, allocations: 23.44 kB / 0.5548 GB, free: 56.91 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.6601, allocations: 0 / 0.5548 GB, free: 56.91 MB / 378.7 MB Notification: Performance of Templates: time 0.02722/0.6874, allocations: 21.18 MB / 0.5755 GB, free: 35.62 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/RAM/RAM.csv","../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches