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.001534/0.001534, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.044/2.044, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001088/0.001088, allocations: 86.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.35e-05/3.359e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09426/0.09431, allocations: 47.57 MB / 369.1 MB, free: 2.203 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4497/0.5441, allocations: 84.98 MB / 454.1 MB, free: 8.156 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003352/0.5445, allocations: 74.08 kB / 454.1 MB, free: 8.117 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1574/0.7019, allocations: 39.39 MB / 493.5 MB, free: 2.805 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.083e-06/0.7019, allocations: 0 / 493.5 MB, free: 2.805 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.03e-05/0.702, allocations: 12 kB / 493.5 MB, free: 2.793 MB / 362.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.00246/0.7045, allocations: 1.344 MB / 494.9 MB, free: 1.348 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.159e-05/0.7046, allocations: 8.031 kB / 494.9 MB, free: 1.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003631/0.7049, allocations: 122.5 kB / 495 MB, free: 1.219 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001205/0.7062, allocations: 480.5 kB / 495.5 MB, free: 0.6992 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.592e-05/0.7063, allocations: 12 kB / 495.5 MB, free: 0.6875 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.1e-05/0.7064, allocations: 28.28 kB / 495.5 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.7077, allocations: 0.5794 MB / 496.1 MB, free: 76 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.7077, allocations: 0 / 496.1 MB, free: 76 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.114e-05/0.7078, allocations: 12 kB / 496.1 MB, free: 64 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.7078, allocations: 0 / 496.1 MB, free: 64 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.7089, allocations: 463.8 kB / 496.6 MB, free: 15.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002746/0.7116, allocations: 0.9117 MB / 497.5 MB, free: 14.65 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001416/0.7131, allocations: 0.7288 MB / 498.2 MB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001322/0.7145, allocations: 0.7038 MB / 498.9 MB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.7146, allocations: 0 / 498.9 MB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0015/0.7161, allocations: 0.736 MB / 499.6 MB, free: 12.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 4.328e-06/0.7162, allocations: 0 / 499.6 MB, free: 12.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.003275/0.7195, allocations: 1.573 MB / 0.4895 GB, free: 10.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002949/0.7198, allocations: 338.6 kB / 0.4898 GB, free: 10.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003549/0.7234, allocations: 1.303 MB / 0.4911 GB, free: 9.086 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001774/0.7236, allocations: 37.69 kB / 0.4911 GB, free: 9.043 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004056/0.724, allocations: 284.6 kB / 0.4914 GB, free: 8.762 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002493/0.7243, allocations: 86.91 kB / 0.4915 GB, free: 8.676 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.167e-05/0.7244, allocations: 12 kB / 0.4915 GB, free: 8.664 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.7245, allocations: 322.8 kB / 0.4918 GB, free: 8.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009456/0.7255, allocations: 472.2 kB / 0.4922 GB, free: 7.875 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009134/0.7264, allocations: 464.3 kB / 0.4927 GB, free: 7.422 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/0.7275, allocations: 0.6454 MB / 0.4933 GB, free: 6.719 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.7275, allocations: 0 / 0.4933 GB, free: 6.719 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.002839/0.7304, allocations: 1.473 MB / 0.4947 GB, free: 5.184 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003503/0.7308, allocations: 303.2 kB / 0.495 GB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.7308, allocations: 0 / 0.495 GB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.7309, allocations: 0 / 0.495 GB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.341e-05/0.7309, allocations: 11.89 kB / 0.495 GB, free: 4.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.7309, allocations: 8 kB / 0.495 GB, free: 4.812 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007002/0.7316, allocations: 31.88 kB / 0.4951 GB, free: 4.781 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002233/0.7319, allocations: 103.9 kB / 0.4952 GB, free: 4.68 MB / 378.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.0006441/0.7325, allocations: 470.3 kB / 0.4956 GB, free: 4.156 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002902/0.7328, allocations: 126.5 kB / 0.4957 GB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006048/0.7335, allocations: 187.6 kB / 0.4959 GB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.7335, allocations: 7.984 kB / 0.4959 GB, free: 3.84 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/0.7335, allocations: 7.953 kB / 0.4959 GB, free: 3.832 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.7335, allocations: 0 / 0.4959 GB, free: 3.832 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004961/0.7385, allocations: 2.416 MB / 0.4983 GB, free: 1.309 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.7386, allocations: 0 / 0.4983 GB, free: 1.309 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.009e-05/0.7386, allocations: 3.938 kB / 0.4983 GB, free: 1.305 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.7386, allocations: 4 kB / 0.4983 GB, free: 1.301 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/0.7387, allocations: 31.98 kB / 0.4983 GB, free: 1.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.292e-06/0.7387, allocations: 3.953 kB / 0.4983 GB, free: 1.266 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/0.7387, allocations: 0 / 0.4983 GB, free: 1.266 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003501/0.7423, allocations: 1.834 MB / 0.5001 GB, free: 15.36 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00152/0.7438, allocations: 0.4952 MB / 0.5006 GB, free: 14.84 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003605/0.7442, allocations: 59.95 kB / 0.5007 GB, free: 14.78 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006018/0.7448, allocations: 31.98 kB / 0.5007 GB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002244/0.7471, allocations: 0.6317 MB / 0.5013 GB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002563/0.7474, allocations: 111.9 kB / 0.5014 GB, free: 14.01 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002865/0.7503, allocations: 1.072 MB / 0.5025 GB, free: 12.93 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.91e-07/0.7504, allocations: 4 kB / 0.5025 GB, free: 12.93 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001074/0.7514, allocations: 191.9 kB / 0.5027 GB, free: 12.74 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.001174/0.7526, allocations: 347.7 kB / 0.503 GB, free: 12.4 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004076/0.7567, allocations: 2.084 MB / 0.505 GB, free: 10.21 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.7568, allocations: 4 kB / 0.505 GB, free: 10.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002281/0.7591, allocations: 1.58 MB / 0.5066 GB, free: 8.512 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005062/0.7642, allocations: 0.7319 MB / 0.5073 GB, free: 7.777 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005989/0.7703, allocations: 2.356 MB / 0.5096 GB, free: 5.379 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0016/0.7719, allocations: 1.147 MB / 0.5107 GB, free: 4.203 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.778e-05/0.7721, allocations: 23.44 kB / 0.5107 GB, free: 4.18 MB / 394.7 MB Notification: Performance of SimCode: time 1.203e-06/0.7721, allocations: 0 / 0.5107 GB, free: 4.18 MB / 394.7 MB Notification: Performance of Templates: time 0.03337/0.8055, allocations: 13.57 MB / 0.524 GB, free: 6.453 MB / 410.7 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