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.001164/0.001164, allocations: 197.3 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 225.4 MB / 240.1 MB, free: 15.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009107/0.0009108, allocations: 90.69 kB / 292.1 MB, free: 5.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.633e-05/2.638e-05, allocations: 4 kB / 350.5 MB, free: 2.559 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09083/0.09088, allocations: 51.49 MB / 402 MB, free: 15.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2858/0.3767, allocations: 86.82 MB / 488.8 MB, free: 2.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002347/0.377, allocations: 74.52 kB / 488.9 MB, free: 2.621 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0793/0.4563, allocations: 39.9 MB / 0.5164 GB, free: 12.71 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4564, allocations: 0 / 0.5164 GB, free: 12.71 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.407e-05/0.4564, allocations: 16 kB / 0.5164 GB, free: 12.69 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.001633/0.4581, allocations: 1.353 MB / 0.5178 GB, free: 11.24 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.4581, allocations: 8.031 kB / 0.5178 GB, free: 11.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002595/0.4584, allocations: 122.5 kB / 0.5179 GB, free: 11.11 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007196/0.4591, allocations: 460.7 kB / 0.5183 GB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.879e-05/0.4592, allocations: 20 kB / 0.5183 GB, free: 10.59 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.195e-05/0.4592, allocations: 20.34 kB / 0.5184 GB, free: 10.57 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007636/0.46, allocations: 0.5677 MB / 0.5189 GB, free: 10 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.437e-06/0.46, allocations: 3.938 kB / 0.5189 GB, free: 9.996 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.589e-05/0.4601, allocations: 12 kB / 0.5189 GB, free: 9.984 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.4601, allocations: 8 kB / 0.5189 GB, free: 9.977 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000529/0.4606, allocations: 468.3 kB / 0.5194 GB, free: 9.523 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.4621, allocations: 0.9084 MB / 0.5203 GB, free: 8.57 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007227/0.4628, allocations: 0.7211 MB / 0.521 GB, free: 7.84 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006515/0.4635, allocations: 0.7077 MB / 0.5217 GB, free: 7.129 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.726e-06/0.4635, allocations: 4 kB / 0.5217 GB, free: 7.125 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007533/0.4642, allocations: 0.7323 MB / 0.5224 GB, free: 6.355 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 1.803e-06/0.4642, allocations: 0 / 0.5224 GB, free: 6.355 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.001714/0.466, allocations: 1.57 MB / 0.5239 GB, free: 4.727 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001738/0.4662, allocations: 330.7 kB / 0.5242 GB, free: 4.336 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001939/0.4681, allocations: 1.307 MB / 0.5255 GB, free: 3.02 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.437e-05/0.4682, allocations: 45.69 kB / 0.5256 GB, free: 2.969 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002337/0.4684, allocations: 278 kB / 0.5258 GB, free: 2.691 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/0.4685, allocations: 94.89 kB / 0.5259 GB, free: 2.598 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.715e-05/0.4686, allocations: 12 kB / 0.5259 GB, free: 2.586 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.4687, allocations: 319.2 kB / 0.5262 GB, free: 2.27 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000521/0.4692, allocations: 464.2 kB / 0.5267 GB, free: 1.812 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005272/0.4698, allocations: 466.1 kB / 0.5271 GB, free: 1.359 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006641/0.4705, allocations: 0.6494 MB / 0.5278 GB, free: 0.6562 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.4705, allocations: 0 / 0.5278 GB, free: 0.6562 MB / 394.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001738/0.4722, allocations: 1.524 MB / 0.5292 GB, free: 15.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002098/0.4724, allocations: 307.2 kB / 0.5295 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.4725, allocations: 0 / 0.5295 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.4725, allocations: 4 kB / 0.5295 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.548e-05/0.4725, allocations: 3.953 kB / 0.5295 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.4725, allocations: 3.938 kB / 0.5295 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003402/0.4729, allocations: 31.89 kB / 0.5296 GB, free: 14.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/0.473, allocations: 102.9 kB / 0.5297 GB, free: 14.57 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.0003729/0.4734, allocations: 486.8 kB / 0.5301 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001545/0.4736, allocations: 126.5 kB / 0.5303 GB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003495/0.4739, allocations: 183.6 kB / 0.5304 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.4739, allocations: 4 kB / 0.5304 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.4739, allocations: 3.953 kB / 0.5304 GB, free: 13.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.4739, allocations: 0 / 0.5304 GB, free: 13.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002905/0.4768, allocations: 2.412 MB / 0.5328 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.4769, allocations: 4 kB / 0.5328 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.13e-05/0.4769, allocations: 0 / 0.5328 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.4769, allocations: 0 / 0.5328 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.203e-05/0.477, allocations: 35.97 kB / 0.5328 GB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.477, allocations: 3.953 kB / 0.5328 GB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.477, allocations: 0 / 0.5328 GB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/0.4789, allocations: 1.834 MB / 0.5346 GB, free: 9.254 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008026/0.4797, allocations: 0.4952 MB / 0.5351 GB, free: 8.738 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001813/0.4799, allocations: 63.97 kB / 0.5352 GB, free: 8.676 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003113/0.4802, allocations: 35.89 kB / 0.5352 GB, free: 8.641 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001086/0.4813, allocations: 0.6358 MB / 0.5358 GB, free: 8.004 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001191/0.4815, allocations: 102 kB / 0.5359 GB, free: 7.906 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001423/0.4829, allocations: 1.068 MB / 0.537 GB, free: 6.832 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4829, allocations: 0 / 0.537 GB, free: 6.832 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005779/0.4835, allocations: 195.9 kB / 0.5372 GB, free: 6.641 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.000648/0.4841, allocations: 373 kB / 0.5375 GB, free: 6.328 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001845/0.486, allocations: 2.07 MB / 0.5395 GB, free: 4.148 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.486, allocations: 0 / 0.5395 GB, free: 4.148 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001257/0.4873, allocations: 1.584 MB / 0.5411 GB, free: 2.453 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002616/0.4899, allocations: 0.7172 MB / 0.5418 GB, free: 1.754 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003054/0.493, allocations: 2.277 MB / 0.544 GB, free: 15.45 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008471/0.4938, allocations: 1.147 MB / 0.5451 GB, free: 14.27 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002764/0.4941, allocations: 70.88 kB / 0.5452 GB, free: 14.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.105e-05/0.4941, allocations: 31.42 kB / 0.5452 GB, free: 14.17 MB / 426.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4942, allocations: 0 / 0.5452 GB, free: 14.17 MB / 426.7 MB Notification: Performance of Templates: time 0.03158/0.5257, allocations: 20.94 MB / 0.5657 GB, free: 9.098 MB / 442.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