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.0009024/0.0009025, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 221.5 MB / 230.3 MB, free: 7.578 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.0009713/0.0009714, allocations: 104.9 kB / 281.2 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.209e-05/2.211e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1352, allocations: 50.43 MB / 387.5 MB, free: 7.582 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3069/0.4422, allocations: 85.35 MB / 472.8 MB, free: 9.523 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002218/0.4424, allocations: 69.75 kB / 472.9 MB, free: 9.457 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1032/0.5456, allocations: 39.48 MB / 0.5004 GB, free: 2.055 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.5457, allocations: 0 / 0.5004 GB, free: 2.055 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.646e-05/0.5457, allocations: 16 kB / 0.5004 GB, free: 2.039 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.001259/0.547, allocations: 1.336 MB / 0.5017 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.547, allocations: 15.97 kB / 0.5017 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000156/0.5472, allocations: 122.8 kB / 0.5018 GB, free: 476 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006131/0.5478, allocations: 472.7 kB / 0.5023 GB, free: 15.95 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.651e-05/0.5479, allocations: 11.98 kB / 0.5023 GB, free: 15.94 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.088e-05/0.5479, allocations: 16 kB / 0.5023 GB, free: 15.92 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005181/0.5484, allocations: 456.5 kB / 0.5027 GB, free: 15.48 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006651/0.5491, allocations: 0.5559 MB / 0.5033 GB, free: 14.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.5491, allocations: 3.953 kB / 0.5033 GB, free: 14.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.655e-05/0.5492, allocations: 11.91 kB / 0.5033 GB, free: 14.9 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.5492, allocations: 3.938 kB / 0.5033 GB, free: 14.9 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.5504, allocations: 0.8675 MB / 0.5041 GB, free: 14 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006501/0.5511, allocations: 0.7133 MB / 0.5048 GB, free: 13.27 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006252/0.5517, allocations: 0.7037 MB / 0.5055 GB, free: 12.57 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.319e-05/0.5518, allocations: 11.94 kB / 0.5055 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007321/0.5525, allocations: 0.7244 MB / 0.5062 GB, free: 11.79 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 2.053e-06/0.5525, allocations: 0 / 0.5062 GB, free: 11.79 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.001551/0.5541, allocations: 1.246 MB / 0.5074 GB, free: 10.54 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001607/0.5542, allocations: 330.7 kB / 0.5078 GB, free: 10.15 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001441/0.5557, allocations: 1.247 MB / 0.509 GB, free: 8.895 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.236e-05/0.5557, allocations: 33.7 kB / 0.509 GB, free: 8.855 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000212/0.556, allocations: 286 kB / 0.5093 GB, free: 8.574 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.5561, allocations: 90.95 kB / 0.5094 GB, free: 8.484 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.651e-05/0.5561, allocations: 8 kB / 0.5094 GB, free: 8.477 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.5562, allocations: 318 kB / 0.5097 GB, free: 8.16 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004707/0.5567, allocations: 452.2 kB / 0.5101 GB, free: 7.715 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004618/0.5572, allocations: 448.6 kB / 0.5105 GB, free: 7.277 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004285/0.5576, allocations: 369.7 kB / 0.5109 GB, free: 6.918 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.5576, allocations: 0 / 0.5109 GB, free: 6.918 MB / 394.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001394/0.559, allocations: 1.217 MB / 0.5121 GB, free: 5.695 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000192/0.5592, allocations: 307.2 kB / 0.5124 GB, free: 5.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.5592, allocations: 0 / 0.5124 GB, free: 5.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.5593, allocations: 0 / 0.5124 GB, free: 5.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.319e-05/0.5593, allocations: 4 kB / 0.5124 GB, free: 5.336 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.5593, allocations: 4 kB / 0.5124 GB, free: 5.332 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003118/0.5596, allocations: 35.81 kB / 0.5124 GB, free: 5.297 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001297/0.5598, allocations: 103.9 kB / 0.5125 GB, free: 5.195 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.000346/0.5601, allocations: 473.1 kB / 0.513 GB, free: 4.668 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.5603, allocations: 130.5 kB / 0.5131 GB, free: 4.539 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002499/0.5605, allocations: 184 kB / 0.5133 GB, free: 4.352 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.5605, allocations: 0 / 0.5133 GB, free: 4.352 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.5605, allocations: 0 / 0.5133 GB, free: 4.352 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.5605, allocations: 7.984 kB / 0.5133 GB, free: 4.344 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00225/0.5628, allocations: 1.993 MB / 0.5152 GB, free: 2.309 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.5628, allocations: 3.953 kB / 0.5152 GB, free: 2.305 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.907e-06/0.5628, allocations: 0 / 0.5152 GB, free: 2.305 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.5628, allocations: 0 / 0.5152 GB, free: 2.305 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.507e-05/0.5629, allocations: 31.98 kB / 0.5153 GB, free: 2.273 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.5629, allocations: 0 / 0.5153 GB, free: 2.273 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.5629, allocations: 4 kB / 0.5153 GB, free: 2.27 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00161/0.5645, allocations: 1.452 MB / 0.5167 GB, free: 0.8008 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006933/0.5653, allocations: 0.4952 MB / 0.5172 GB, free: 292 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000181/0.5654, allocations: 59.95 kB / 0.5172 GB, free: 232 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002989/0.5657, allocations: 27.98 kB / 0.5172 GB, free: 204 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001106/0.5669, allocations: 0.6397 MB / 0.5179 GB, free: 15.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/0.567, allocations: 111.9 kB / 0.518 GB, free: 15.45 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001186/0.5682, allocations: 1.008 MB / 0.519 GB, free: 14.44 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5682, allocations: 0 / 0.519 GB, free: 14.44 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005767/0.5688, allocations: 195.9 kB / 0.5191 GB, free: 14.25 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.0006598/0.5694, allocations: 344.3 kB / 0.5195 GB, free: 13.92 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001736/0.5712, allocations: 2.05 MB / 0.5215 GB, free: 11.76 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.5712, allocations: 0 / 0.5215 GB, free: 11.76 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.5724, allocations: 1.565 MB / 0.523 GB, free: 10.08 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002831/0.5753, allocations: 0.7301 MB / 0.5237 GB, free: 9.371 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002919/0.5782, allocations: 2.248 MB / 0.5259 GB, free: 7.086 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008154/0.579, allocations: 1.151 MB / 0.527 GB, free: 5.906 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000245/0.5793, allocations: 67.19 kB / 0.5271 GB, free: 5.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.775e-05/0.5793, allocations: 23.44 kB / 0.5271 GB, free: 5.816 MB / 410.7 MB Notification: Performance of SimCode: time 3.8e-07/0.5793, allocations: 0 / 0.5271 GB, free: 5.816 MB / 410.7 MB Notification: Performance of Templates: time 0.02662/0.6059, allocations: 19.8 MB / 0.5465 GB, free: 1.871 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