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.001499/0.001498, allocations: 185.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.923/1.923, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001189/0.001189, allocations: 92.44 kB / 270.9 MB, free: 8.398 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003964/0.0003964, allocations: 8 kB / 327 MB, free: 236 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3283, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1357/0.464, allocations: 85.08 MB / 459.6 MB, free: 11.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002991/0.4643, allocations: 83.95 kB / 459.7 MB, free: 11.62 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1443/0.6086, allocations: 39.32 MB / 499 MB, free: 4.348 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.875e-06/0.6087, allocations: 0 / 499 MB, free: 4.348 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.646e-05/0.6087, allocations: 16 kB / 499 MB, free: 4.332 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.0025/0.6112, allocations: 1.544 MB / 0.4888 GB, free: 2.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/0.6113, allocations: 12.03 kB / 0.4888 GB, free: 2.668 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003193/0.6116, allocations: 126.5 kB / 0.489 GB, free: 2.543 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001087/0.6127, allocations: 472.7 kB / 0.4894 GB, free: 2.031 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.599e-05/0.6128, allocations: 19.98 kB / 0.4894 GB, free: 2.012 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.554e-05/0.6129, allocations: 20.34 kB / 0.4895 GB, free: 1.992 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.6143, allocations: 0.587 MB / 0.49 GB, free: 1.398 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.6143, allocations: 0 / 0.49 GB, free: 1.398 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.92e-05/0.6144, allocations: 12 kB / 0.49 GB, free: 1.387 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.6144, allocations: 4 kB / 0.49 GB, free: 1.383 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.6154, allocations: 467.8 kB / 0.4905 GB, free: 0.9258 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2613/0.8768, allocations: 0.913 MB / 0.4914 GB, free: 102.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001735/0.8786, allocations: 0.7344 MB / 0.4921 GB, free: 102.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.318e-05/0.8787, allocations: 4.781 kB / 0.4921 GB, free: 102.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001491/0.8802, allocations: 0.7343 MB / 0.4928 GB, free: 102.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 3.005e-06/0.8802, allocations: 3.844 kB / 0.4928 GB, free: 102.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.004061/0.8843, allocations: 2.306 MB / 0.4951 GB, free: 101.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001708/0.8845, allocations: 335.5 kB / 0.4954 GB, free: 101.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002937/0.8874, allocations: 1.313 MB / 0.4967 GB, free: 101.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002254/0.8877, allocations: 40.28 kB / 0.4967 GB, free: 101.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000241/0.888, allocations: 282.5 kB / 0.497 GB, free: 101.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001867/0.8882, allocations: 99 kB / 0.4971 GB, free: 101.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.054e-05/0.8883, allocations: 6.812 kB / 0.4971 GB, free: 101.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.33e-05/0.8883, allocations: 331 kB / 0.4974 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009569/0.8893, allocations: 463.8 kB / 0.4978 GB, free: 100.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009359/0.8903, allocations: 0.4906 MB / 0.4983 GB, free: 100.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009563/0.8912, allocations: 0.6487 MB / 0.499 GB, free: 100.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.8913, allocations: 0 / 0.499 GB, free: 100.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.002693/0.894, allocations: 1.494 MB / 0.5004 GB, free: 100.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000209/0.8942, allocations: 304.9 kB / 0.5007 GB, free: 99.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.8942, allocations: 0 / 0.5007 GB, free: 99.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.316e-05/0.8943, allocations: 1.875 kB / 0.5007 GB, free: 99.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.304e-05/0.8943, allocations: 7.281 kB / 0.5007 GB, free: 99.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.8943, allocations: 0 / 0.5007 GB, free: 99.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005995/0.8949, allocations: 34.88 kB / 0.5008 GB, free: 99.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001665/0.8951, allocations: 102.9 kB / 0.5008 GB, free: 99.88 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.001535/0.8967, allocations: 0.8616 MB / 0.5017 GB, free: 99.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002447/0.8969, allocations: 136.5 kB / 0.5018 GB, free: 99.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004398/0.8974, allocations: 179.2 kB / 0.502 GB, free: 99.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.8974, allocations: 2.531 kB / 0.502 GB, free: 99.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.8974, allocations: 0 / 0.502 GB, free: 99.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.8974, allocations: 3.281 kB / 0.502 GB, free: 99.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004001/0.9015, allocations: 2.45 MB / 0.5044 GB, free: 98.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.219e-06/0.9015, allocations: 0 / 0.5044 GB, free: 98.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.785e-05/0.9015, allocations: 0 / 0.5044 GB, free: 98.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.9015, allocations: 3.906 kB / 0.5044 GB, free: 98.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-05/0.9016, allocations: 39.56 kB / 0.5044 GB, free: 98.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.9017, allocations: 3.953 kB / 0.5044 GB, free: 98.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.9017, allocations: 3.984 kB / 0.5044 GB, free: 98.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002876/0.9046, allocations: 1.848 MB / 0.5062 GB, free: 98.15 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001173/0.9058, allocations: 0.4931 MB / 0.5067 GB, free: 97.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002791/0.9061, allocations: 67.58 kB / 0.5068 GB, free: 97.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000539/0.9066, allocations: 38.58 kB / 0.5068 GB, free: 97.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001939/0.9086, allocations: 0.6323 MB / 0.5074 GB, free: 97.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001994/0.9088, allocations: 114.8 kB / 0.5076 GB, free: 97.76 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002197/0.911, allocations: 1.076 MB / 0.5086 GB, free: 97.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.911, allocations: 3.531 kB / 0.5086 GB, free: 97.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009957/0.912, allocations: 189.1 kB / 0.5088 GB, free: 97.33 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.0008685/0.9129, allocations: 362.5 kB / 0.5091 GB, free: 97.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002705/0.9157, allocations: 2.1 MB / 0.5112 GB, free: 96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.9157, allocations: 0 / 0.5112 GB, free: 96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001708/0.9174, allocations: 1.602 MB / 0.5127 GB, free: 94.92 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004444/0.9219, allocations: 0.7297 MB / 0.5135 GB, free: 94.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00515/0.9271, allocations: 2.913 MB / 0.5163 GB, free: 93.47 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/0.9282, allocations: 1.148 MB / 0.5174 GB, free: 92.65 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.034e-05/0.9283, allocations: 19.44 kB / 0.5174 GB, free: 92.63 MB / 378.7 MB Notification: Performance of SimCode: time 9.12e-07/0.9283, allocations: 10.62 kB / 0.5175 GB, free: 92.62 MB / 378.7 MB Notification: Performance of Templates: time 0.0259/0.9542, allocations: 13.62 MB / 0.5308 GB, free: 80.73 MB / 378.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