Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.RAM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_cpp_Modelica.Electrical.Digital.Examples.RAM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002228/0.002228, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.031/2.031, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001129/0.001128, allocations: 95.05 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.929e-05/1.929e-05, allocations: 4 kB / 314.8 MB, free: 9.156 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.3436, allocations: 47.56 MB / 362.3 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.14/0.4837, allocations: 84.33 MB / 446.7 MB, free: 1.969 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002909/0.4841, allocations: 69.38 kB / 446.7 MB, free: 1.902 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1467/0.6308, allocations: 39.02 MB / 485.8 MB, free: 11.01 MB / 379.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.6309, allocations: 0 / 485.8 MB, free: 11.01 MB / 379.1 MB Notification: Performance of Transformations before backend: time 4.513e-05/0.6309, allocations: 20 kB / 485.8 MB, free: 10.99 MB / 379.1 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.002122/0.6331, allocations: 1.347 MB / 487.1 MB, free: 9.543 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.6331, allocations: 8.031 kB / 487.1 MB, free: 9.535 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002929/0.6334, allocations: 122.5 kB / 487.2 MB, free: 9.414 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001045/0.6345, allocations: 468.6 kB / 487.7 MB, free: 8.906 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.284e-05/0.6346, allocations: 16 kB / 487.7 MB, free: 8.891 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.408e-05/0.6347, allocations: 16 kB / 487.7 MB, free: 8.875 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008782/0.6356, allocations: 451 kB / 488.2 MB, free: 8.438 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.6367, allocations: 0.5521 MB / 488.7 MB, free: 7.879 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.6367, allocations: 0 / 488.7 MB, free: 7.879 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.849e-05/0.6368, allocations: 8 kB / 488.7 MB, free: 7.871 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.6368, allocations: 4 kB / 488.7 MB, free: 7.867 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002485/0.6393, allocations: 0.8752 MB / 489.6 MB, free: 6.957 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001268/0.6407, allocations: 0.7055 MB / 490.3 MB, free: 6.242 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001178/0.6419, allocations: 0.7038 MB / 491 MB, free: 5.535 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.749e-05/0.6419, allocations: 0 / 491 MB, free: 5.535 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001267/0.6432, allocations: 0.7359 MB / 491.8 MB, free: 4.762 MB / 379.1 MB Notification: Performance of pre-optimization done (n=41): time 3.176e-06/0.6432, allocations: 0 / 491.8 MB, free: 4.762 MB / 379.1 MB Notification: Performance of matching and sorting (n=41): time 0.002662/0.6459, allocations: 1.253 MB / 493 MB, free: 3.504 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002449/0.6462, allocations: 334.7 kB / 493.3 MB, free: 3.109 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002736/0.6489, allocations: 1.247 MB / 494.6 MB, free: 1.855 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001458/0.6491, allocations: 37.69 kB / 494.6 MB, free: 1.812 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003006/0.6494, allocations: 288.6 kB / 494.9 MB, free: 1.531 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000176/0.6496, allocations: 86.92 kB / 495 MB, free: 1.445 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.494e-05/0.6497, allocations: 4 kB / 495 MB, free: 1.441 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.6499, allocations: 334.8 kB / 495.3 MB, free: 1.105 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008526/0.6507, allocations: 452.2 kB / 495.8 MB, free: 0.6602 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007939/0.6515, allocations: 456.3 kB / 496.2 MB, free: 220 kB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007704/0.6523, allocations: 357.6 kB / 496.6 MB, free: 15.87 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.6524, allocations: 4 kB / 496.6 MB, free: 15.86 MB / 395.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.002414/0.6548, allocations: 1.162 MB / 497.7 MB, free: 14.7 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003035/0.6551, allocations: 303.2 kB / 498 MB, free: 14.34 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.6552, allocations: 0 / 498 MB, free: 14.34 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.6552, allocations: 0 / 498 MB, free: 14.34 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.05e-05/0.6552, allocations: 7.938 kB / 498 MB, free: 14.34 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.6553, allocations: 4 kB / 498 MB, free: 14.33 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000644/0.6559, allocations: 27.89 kB / 498.1 MB, free: 14.3 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002212/0.6561, allocations: 103.9 kB / 498.2 MB, free: 14.2 MB / 395.1 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.0006078/0.6568, allocations: 473.4 kB / 498.6 MB, free: 13.68 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002934/0.6571, allocations: 126.5 kB / 498.7 MB, free: 13.55 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000594/0.6577, allocations: 184 kB / 498.9 MB, free: 13.36 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.6577, allocations: 0 / 498.9 MB, free: 13.36 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.6577, allocations: 0 / 498.9 MB, free: 13.36 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.6577, allocations: 6.625 kB / 498.9 MB, free: 13.36 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004427/0.6622, allocations: 2.001 MB / 0.4892 GB, free: 11.32 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.6622, allocations: 0 / 0.4892 GB, free: 11.32 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.172e-05/0.6623, allocations: 0 / 0.4892 GB, free: 11.32 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.546e-06/0.6623, allocations: 0 / 0.4892 GB, free: 11.32 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001299/0.6624, allocations: 43.97 kB / 0.4892 GB, free: 11.27 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.6625, allocations: 0 / 0.4892 GB, free: 11.27 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.6625, allocations: 0 / 0.4892 GB, free: 11.27 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00319/0.6657, allocations: 1.454 MB / 0.4907 GB, free: 9.805 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001645/0.6674, allocations: 0.4952 MB / 0.4911 GB, free: 9.289 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003662/0.6678, allocations: 59.95 kB / 0.4912 GB, free: 9.23 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006026/0.6684, allocations: 23.98 kB / 0.4912 GB, free: 9.207 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002165/0.6706, allocations: 0.6358 MB / 0.4918 GB, free: 8.57 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002399/0.6709, allocations: 99.98 kB / 0.4919 GB, free: 8.473 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002292/0.6732, allocations: 1.008 MB / 0.4929 GB, free: 7.461 MB / 395.1 MB Notification: Performance of sort global known variables: time 8.01e-07/0.6732, allocations: 0 / 0.4929 GB, free: 7.461 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001042/0.6742, allocations: 195.9 kB / 0.4931 GB, free: 7.27 MB / 395.1 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.00101/0.6753, allocations: 350.3 kB / 0.4934 GB, free: 6.945 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.00313/0.6784, allocations: 2.045 MB / 0.4954 GB, free: 4.789 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 9.388e-06/0.6785, allocations: 4 kB / 0.4954 GB, free: 4.785 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002213/0.6807, allocations: 1.561 MB / 0.497 GB, free: 3.113 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00498/0.6857, allocations: 0.7133 MB / 0.4977 GB, free: 2.406 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005727/0.6915, allocations: 2.34 MB / 0.4999 GB, free: 24 kB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2545/0.9461, allocations: 1.143 MB / 0.5011 GB, free: 116.7 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.349e-05/0.9462, allocations: 21.78 kB / 0.5011 GB, free: 116.7 MB / 395.1 MB Notification: Performance of SimCode: time 1.142e-06/0.9462, allocations: 2.844 kB / 0.5011 GB, free: 116.7 MB / 395.1 MB Notification: Performance of Templates: time 0.03307/0.9793, allocations: 13.56 MB / 0.5143 GB, free: 115.1 MB / 395.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.RAM.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.RAM.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.RAM.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.RAM.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.RAM.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.RAM --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.RAM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.RAM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/RAM/RAM.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.RAM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches