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.001/0.001, allocations: 200.8 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008541/0.0008537, allocations: 99.27 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.91e-05/1.888e-05, allocations: 4 kB / 343.7 MB, free: 8.258 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08734/0.08737, allocations: 51.48 MB / 395.2 MB, free: 4.738 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3056/0.393, allocations: 86.16 MB / 481.3 MB, free: 7.008 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001511/0.3932, allocations: 75.2 kB / 481.4 MB, free: 6.969 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07738/0.4706, allocations: 39.55 MB / 0.5087 GB, free: 4.914 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4707, allocations: 0 / 0.5087 GB, free: 4.914 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.377e-05/0.4707, allocations: 16 kB / 0.5087 GB, free: 4.898 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.001796/0.4725, allocations: 1.339 MB / 0.5101 GB, free: 3.465 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.4726, allocations: 12.03 kB / 0.5101 GB, free: 3.453 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003425/0.4729, allocations: 118.5 kB / 0.5102 GB, free: 3.336 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000789/0.4737, allocations: 472.6 kB / 0.5106 GB, free: 2.824 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.416e-05/0.4738, allocations: 16.66 kB / 0.5106 GB, free: 2.809 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.093e-05/0.4739, allocations: 16 kB / 0.5107 GB, free: 2.793 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005368/0.4744, allocations: 444.1 kB / 0.5111 GB, free: 2.359 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006746/0.4751, allocations: 0.5626 MB / 0.5116 GB, free: 1.793 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.4751, allocations: 0 / 0.5116 GB, free: 1.793 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.746e-05/0.4752, allocations: 8 kB / 0.5116 GB, free: 1.785 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.4752, allocations: 0 / 0.5116 GB, free: 1.785 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001489/0.4767, allocations: 0.8764 MB / 0.5125 GB, free: 0.875 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006918/0.4774, allocations: 0.7132 MB / 0.5132 GB, free: 156 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006719/0.4781, allocations: 0.6999 MB / 0.5139 GB, free: 15.45 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.522e-05/0.4781, allocations: 0 / 0.5139 GB, free: 15.45 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008545/0.479, allocations: 0.7205 MB / 0.5146 GB, free: 14.69 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 1.804e-06/0.479, allocations: 0 / 0.5146 GB, free: 14.69 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.001849/0.4809, allocations: 1.26 MB / 0.5158 GB, free: 13.43 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002219/0.4811, allocations: 334.7 kB / 0.5161 GB, free: 13.03 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001855/0.483, allocations: 1.239 MB / 0.5173 GB, free: 11.79 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.25e-05/0.483, allocations: 41.69 kB / 0.5174 GB, free: 11.74 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002822/0.4833, allocations: 278.1 kB / 0.5176 GB, free: 11.46 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.4835, allocations: 86.91 kB / 0.5177 GB, free: 11.38 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.988e-05/0.4835, allocations: 8 kB / 0.5177 GB, free: 11.37 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.4837, allocations: 332.6 kB / 0.518 GB, free: 11.04 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005304/0.4842, allocations: 452.2 kB / 0.5185 GB, free: 10.6 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004932/0.4847, allocations: 460.5 kB / 0.5189 GB, free: 10.15 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000467/0.4852, allocations: 358.5 kB / 0.5193 GB, free: 9.801 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.4852, allocations: 0 / 0.5193 GB, free: 9.801 MB / 394.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001486/0.4867, allocations: 1.208 MB / 0.5204 GB, free: 8.586 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002174/0.4869, allocations: 303.2 kB / 0.5207 GB, free: 8.234 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.4869, allocations: 0 / 0.5207 GB, free: 8.234 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.487, allocations: 0 / 0.5207 GB, free: 8.234 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.637e-05/0.487, allocations: 0 / 0.5207 GB, free: 8.234 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.487, allocations: 15.92 kB / 0.5207 GB, free: 8.219 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003408/0.4874, allocations: 35.83 kB / 0.5208 GB, free: 8.184 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001493/0.4875, allocations: 102.9 kB / 0.5209 GB, free: 8.086 MB / 394.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.0003692/0.4879, allocations: 470.8 kB / 0.5213 GB, free: 7.566 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.4881, allocations: 126.5 kB / 0.5214 GB, free: 7.441 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002656/0.4883, allocations: 191.9 kB / 0.5216 GB, free: 7.246 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.4883, allocations: 0 / 0.5216 GB, free: 7.246 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.4883, allocations: 4 kB / 0.5216 GB, free: 7.242 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.4884, allocations: 0 / 0.5216 GB, free: 7.242 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002431/0.4908, allocations: 1.997 MB / 0.5236 GB, free: 5.203 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.4908, allocations: 0 / 0.5236 GB, free: 5.203 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.277e-06/0.4908, allocations: 0 / 0.5236 GB, free: 5.203 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.4908, allocations: 0 / 0.5236 GB, free: 5.203 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.098e-05/0.4909, allocations: 35.98 kB / 0.5236 GB, free: 5.168 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.4909, allocations: 0 / 0.5236 GB, free: 5.168 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.4909, allocations: 0 / 0.5236 GB, free: 5.168 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001585/0.4925, allocations: 1.452 MB / 0.525 GB, free: 3.699 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007108/0.4932, allocations: 0.4913 MB / 0.5255 GB, free: 3.188 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001903/0.4934, allocations: 63.95 kB / 0.5256 GB, free: 3.125 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003078/0.4937, allocations: 33.94 kB / 0.5256 GB, free: 3.094 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001078/0.4948, allocations: 0.628 MB / 0.5262 GB, free: 2.465 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001227/0.495, allocations: 107.9 kB / 0.5263 GB, free: 2.359 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001234/0.4962, allocations: 1.008 MB / 0.5273 GB, free: 1.348 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4962, allocations: 0 / 0.5273 GB, free: 1.348 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006405/0.4969, allocations: 191.9 kB / 0.5275 GB, free: 1.16 MB / 394.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.000702/0.4976, allocations: 368.2 kB / 0.5278 GB, free: 0.8438 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001736/0.4993, allocations: 2.041 MB / 0.5298 GB, free: 14.69 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4993, allocations: 0 / 0.5298 GB, free: 14.69 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001196/0.5005, allocations: 1.573 MB / 0.5314 GB, free: 13.01 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002736/0.5033, allocations: 0.7133 MB / 0.5321 GB, free: 12.32 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003016/0.5063, allocations: 2.252 MB / 0.5343 GB, free: 10.03 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008894/0.5072, allocations: 1.147 MB / 0.5354 GB, free: 8.852 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002845/0.5075, allocations: 74.36 kB / 0.5355 GB, free: 8.781 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.727e-05/0.5075, allocations: 23.44 kB / 0.5355 GB, free: 8.758 MB / 410.7 MB Notification: Performance of SimCode: time 3.31e-07/0.5076, allocations: 4 kB / 0.5355 GB, free: 8.754 MB / 410.7 MB Notification: Performance of Templates: time 0.02824/0.5358, allocations: 19.8 MB / 0.5548 GB, free: 4.824 MB / 426.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/jenkins/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