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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001499/0.001499, allocations: 199.2 kB / 8.538 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.202/1.202, allocations: 225.5 MB / 234.4 MB, free: 3.336 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001145/0.001145, allocations: 93.41 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.594e-06/7.624e-06, allocations: 0 / 343.1 MB, free: 8.734 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1149, allocations: 51.49 MB / 394.6 MB, free: 5.195 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2867/0.4017, allocations: 86.13 MB / 480.8 MB, free: 7.016 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001858/0.402, allocations: 67.78 kB / 480.8 MB, free: 6.984 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.07907/0.481, allocations: 40.44 MB / 0.509 GB, free: 4.457 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.853e-05/0.4811, allocations: 16 kB / 0.5091 GB, free: 4.441 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.002126/0.4833, allocations: 1.375 MB / 0.5104 GB, free: 2.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.4833, allocations: 8.031 kB / 0.5104 GB, free: 2.973 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002967/0.4836, allocations: 122.5 kB / 0.5105 GB, free: 2.852 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008869/0.4845, allocations: 480.6 kB / 0.511 GB, free: 2.332 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.537e-05/0.4846, allocations: 16 kB / 0.511 GB, free: 2.316 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.371e-05/0.4846, allocations: 16 kB / 0.511 GB, free: 2.301 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005499/0.4852, allocations: 459.8 kB / 0.5115 GB, free: 1.852 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007054/0.4859, allocations: 0.5566 MB / 0.512 GB, free: 1.289 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.486, allocations: 2.531 kB / 0.512 GB, free: 1.289 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.201e-05/0.486, allocations: 15.89 kB / 0.512 GB, free: 1.273 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.405e-06/0.486, allocations: 4 kB / 0.512 GB, free: 1.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001691/0.4877, allocations: 0.9014 MB / 0.5129 GB, free: 344 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007097/0.4884, allocations: 0.7172 MB / 0.5136 GB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006273/0.4891, allocations: 0.7038 MB / 0.5143 GB, free: 14.9 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.4891, allocations: 4 kB / 0.5143 GB, free: 14.89 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006804/0.4898, allocations: 0.701 MB / 0.515 GB, free: 14.16 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 1.894e-06/0.4898, allocations: 0 / 0.515 GB, free: 14.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.001351/0.4912, allocations: 1.014 MB / 0.516 GB, free: 13.14 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001723/0.4913, allocations: 338.6 kB / 0.5163 GB, free: 12.74 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001608/0.493, allocations: 1.255 MB / 0.5175 GB, free: 11.48 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.796e-05/0.493, allocations: 41.7 kB / 0.5176 GB, free: 11.43 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.184e-05/0.4931, allocations: 158 kB / 0.5177 GB, free: 11.27 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.4932, allocations: 94.86 kB / 0.5178 GB, free: 11.18 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.694e-05/0.4933, allocations: 7.984 kB / 0.5178 GB, free: 11.17 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.594e-05/0.4934, allocations: 322 kB / 0.5181 GB, free: 10.85 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004726/0.4939, allocations: 460.2 kB / 0.5185 GB, free: 10.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004642/0.4943, allocations: 456.6 kB / 0.519 GB, free: 9.953 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000453/0.4948, allocations: 373.7 kB / 0.5193 GB, free: 9.59 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4948, allocations: 0 / 0.5193 GB, free: 9.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.00115/0.496, allocations: 0.9912 MB / 0.5203 GB, free: 8.594 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.496, allocations: 8 kB / 0.5203 GB, free: 8.586 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.496, allocations: 7.922 kB / 0.5203 GB, free: 8.578 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.496, allocations: 3.984 kB / 0.5203 GB, free: 8.574 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.433e-05/0.4961, allocations: 3.984 kB / 0.5203 GB, free: 8.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.4961, allocations: 4 kB / 0.5203 GB, free: 8.566 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003543/0.4964, allocations: 29.02 kB / 0.5204 GB, free: 8.539 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/0.4966, allocations: 95.86 kB / 0.5205 GB, free: 8.445 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.0004106/0.497, allocations: 461.3 kB / 0.5209 GB, free: 7.938 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000152/0.4971, allocations: 130.5 kB / 0.521 GB, free: 7.809 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003131/0.4975, allocations: 183.6 kB / 0.5212 GB, free: 7.625 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.4975, allocations: 0 / 0.5212 GB, free: 7.625 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.4975, allocations: 3.906 kB / 0.5212 GB, free: 7.621 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.4975, allocations: 0 / 0.5212 GB, free: 7.621 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002116/0.4996, allocations: 1.751 MB / 0.5229 GB, free: 5.828 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.4996, allocations: 0 / 0.5229 GB, free: 5.828 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.198e-05/0.4997, allocations: 4 kB / 0.5229 GB, free: 5.824 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.914e-06/0.4997, allocations: 4 kB / 0.5229 GB, free: 5.82 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.139e-05/0.4997, allocations: 40.94 kB / 0.523 GB, free: 5.781 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.4997, allocations: 0 / 0.523 GB, free: 5.781 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4998, allocations: 0 / 0.523 GB, free: 5.781 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001382/0.5011, allocations: 1.202 MB / 0.5241 GB, free: 4.562 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008799/0.502, allocations: 0.5147 MB / 0.5246 GB, free: 4.027 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002372/0.5023, allocations: 67.86 kB / 0.5247 GB, free: 3.961 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003698/0.5027, allocations: 27.98 kB / 0.5247 GB, free: 3.934 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009976/0.5037, allocations: 499.4 kB / 0.5252 GB, free: 3.445 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001313/0.5038, allocations: 106.4 kB / 0.5253 GB, free: 3.344 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001406/0.5052, allocations: 1.032 MB / 0.5263 GB, free: 2.309 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006704/0.5059, allocations: 171.9 kB / 0.5265 GB, free: 2.141 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.0007501/0.5067, allocations: 357.8 kB / 0.5268 GB, free: 1.828 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001478/0.5081, allocations: 1.479 MB / 0.5283 GB, free: 300 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.5082, allocations: 0 / 0.5283 GB, free: 300 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001155/0.5093, allocations: 1.351 MB / 0.5296 GB, free: 14.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002642/0.512, allocations: 0.6894 MB / 0.5302 GB, free: 14.22 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003347/0.5153, allocations: 2.275 MB / 0.5325 GB, free: 11.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008643/0.5162, allocations: 1.173 MB / 0.5336 GB, free: 10.7 MB / 410.7 MB Notification: Performance of SimCode: time 5.61e-07/0.5162, allocations: 0 / 0.5336 GB, free: 10.7 MB / 410.7 MB Notification: Performance of Templates: time 0.027/0.5432, allocations: 19.36 MB / 0.5525 GB, free: 7.199 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