Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.Digital.Examples.RAM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009676/0.0009676, allocations: 195.3 kB / 18.06 MB, free: 3.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.239/1.239, allocations: 226.5 MB / 245.4 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007282/0.0007282, allocations: 95.11 kB / 297.4 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002457/0.0002458, allocations: 8 kB / 357.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2411, allocations: 51.29 MB / 408.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1277/0.3688, allocations: 86.84 MB / 495.5 MB, free: 4.781 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002632/0.3691, allocations: 73 kB / 495.6 MB, free: 4.711 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2336/0.6028, allocations: 39.85 MB / 0.5229 GB, free: 90.1 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.6028, allocations: 0 / 0.5229 GB, free: 90.1 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.627e-05/0.6029, allocations: 12 kB / 0.5229 GB, free: 90.09 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.002127/0.605, allocations: 1.539 MB / 0.5244 GB, free: 88.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.605, allocations: 11.97 kB / 0.5244 GB, free: 88.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002743/0.6053, allocations: 127.4 kB / 0.5245 GB, free: 88.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000812/0.6062, allocations: 0.5148 MB / 0.525 GB, free: 87.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.807e-05/0.6062, allocations: 18.06 kB / 0.525 GB, free: 87.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.672e-05/0.6063, allocations: 20.38 kB / 0.5251 GB, free: 87.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007754/0.6071, allocations: 0.572 MB / 0.5256 GB, free: 87.17 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.6071, allocations: 192 / 0.5256 GB, free: 87.17 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.762e-05/0.6072, allocations: 15.94 kB / 0.5256 GB, free: 87.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.6072, allocations: 3.984 kB / 0.5256 GB, free: 87.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005022/0.6077, allocations: 457.9 kB / 0.5261 GB, free: 86.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001641/0.6094, allocations: 0.9112 MB / 0.527 GB, free: 85.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006308/0.61, allocations: 0.7247 MB / 0.5277 GB, free: 85.02 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005654/0.6106, allocations: 0.7076 MB / 0.5284 GB, free: 84.31 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.514e-05/0.6106, allocations: 0 / 0.5284 GB, free: 84.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006657/0.6113, allocations: 0.7274 MB / 0.5291 GB, free: 83.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 2.645e-06/0.6113, allocations: 4 kB / 0.5291 GB, free: 83.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.002123/0.6134, allocations: 2.03 MB / 0.531 GB, free: 81.45 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.918e-05/0.6135, allocations: 338.6 kB / 0.5314 GB, free: 81.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001941/0.6155, allocations: 1.499 MB / 0.5328 GB, free: 79.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.948e-05/0.6156, allocations: 41.7 kB / 0.5329 GB, free: 79.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.6157, allocations: 282 kB / 0.5331 GB, free: 79.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.875e-05/0.6158, allocations: 86.47 kB / 0.5332 GB, free: 79.13 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.159e-05/0.6159, allocations: 15.98 kB / 0.5332 GB, free: 79.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.516e-05/0.616, allocations: 329.9 kB / 0.5336 GB, free: 78.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005038/0.6165, allocations: 456.1 kB / 0.534 GB, free: 78.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004644/0.6169, allocations: 483 kB / 0.5345 GB, free: 77.86 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009002/0.6179, allocations: 1.278 MB / 0.5357 GB, free: 76.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.6179, allocations: 4 kB / 0.5357 GB, free: 76.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001399/0.6193, allocations: 1.529 MB / 0.5372 GB, free: 74.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001516/0.6194, allocations: 303.2 kB / 0.5375 GB, free: 74.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.6195, allocations: 0 / 0.5375 GB, free: 74.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.349e-05/0.6195, allocations: 0 / 0.5375 GB, free: 74.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.432e-05/0.6195, allocations: 11.94 kB / 0.5375 GB, free: 74.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.6195, allocations: 0 / 0.5375 GB, free: 74.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003583/0.6199, allocations: 43.81 kB / 0.5375 GB, free: 74.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001196/0.62, allocations: 108 kB / 0.5376 GB, free: 74.36 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.0009682/0.621, allocations: 0.8676 MB / 0.5385 GB, free: 73.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/0.6212, allocations: 126.5 kB / 0.5386 GB, free: 73.31 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003438/0.6215, allocations: 187.8 kB / 0.5388 GB, free: 73.13 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.6215, allocations: 0 / 0.5388 GB, free: 73.13 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.6215, allocations: 0 / 0.5388 GB, free: 73.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.6215, allocations: 0 / 0.5388 GB, free: 73.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002507/0.624, allocations: 2.435 MB / 0.5412 GB, free: 70.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/0.6241, allocations: 0 / 0.5412 GB, free: 70.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.554e-05/0.6241, allocations: 7.938 kB / 0.5412 GB, free: 70.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.6241, allocations: 0 / 0.5412 GB, free: 70.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.606e-05/0.6242, allocations: 31.98 kB / 0.5412 GB, free: 70.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.6242, allocations: 3.984 kB / 0.5412 GB, free: 70.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.6242, allocations: 3.938 kB / 0.5412 GB, free: 70.54 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001738/0.6259, allocations: 1.841 MB / 0.543 GB, free: 68.63 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007593/0.6267, allocations: 0.4952 MB / 0.5435 GB, free: 68.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001983/0.6269, allocations: 67.95 kB / 0.5436 GB, free: 68.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003269/0.6272, allocations: 35.95 kB / 0.5436 GB, free: 68.02 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009698/0.6282, allocations: 0.635 MB / 0.5442 GB, free: 67.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/0.6283, allocations: 107.9 kB / 0.5443 GB, free: 67.28 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001482/0.6298, allocations: 1.078 MB / 0.5454 GB, free: 66.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.6298, allocations: 0 / 0.5454 GB, free: 66.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006972/0.6306, allocations: 195.9 kB / 0.5456 GB, free: 66 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.000748/0.6313, allocations: 375.1 kB / 0.5459 GB, free: 65.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001617/0.6329, allocations: 2.084 MB / 0.5479 GB, free: 63.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.633, allocations: 0 / 0.5479 GB, free: 63.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009746/0.6339, allocations: 1.588 MB / 0.5495 GB, free: 61.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002533/0.6365, allocations: 0.7202 MB / 0.5502 GB, free: 61.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003678/0.6402, allocations: 2.899 MB / 0.553 GB, free: 58.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008307/0.641, allocations: 1.135 MB / 0.5541 GB, free: 56.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.213e-05/0.6411, allocations: 23.38 kB / 0.5542 GB, free: 56.96 MB / 378.7 MB Notification: Performance of SimCode: time 9.21e-07/0.6411, allocations: 0 / 0.5542 GB, free: 56.96 MB / 378.7 MB Notification: Performance of Templates: time 0.01751/0.6586, allocations: 13.7 MB / 0.5675 GB, free: 43.18 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.RAM.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.RAM.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.RAM.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.RAM.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.RAM.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.RAM --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.RAM.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Digital.Examples.RAM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches