Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001257/0.001257, allocations: 181.4 kB / 17.01 MB, free: 5.125 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.879/1.879, allocations: 205.4 MB / 223.1 MB, free: 9.031 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.0009109/0.000911, allocations: 88.19 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002695/0.0002694, allocations: 8 kB / 328.2 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3637/0.3639, allocations: 47.57 MB / 375.8 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1316/0.4956, allocations: 85.08 MB / 460.9 MB, free: 11.59 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003336/0.496, allocations: 75.95 kB / 461 MB, free: 11.51 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08777/0.5838, allocations: 39.33 MB / 0.4886 GB, free: 4.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.657e-06/0.5839, allocations: 0 / 0.4886 GB, free: 4.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.49e-05/0.5839, allocations: 12 kB / 0.4886 GB, free: 4.219 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.002364/0.5863, allocations: 1.544 MB / 0.4901 GB, free: 2.566 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.216e-05/0.5864, allocations: 12.02 kB / 0.4901 GB, free: 2.555 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000205/0.5866, allocations: 122.5 kB / 0.4902 GB, free: 2.434 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009511/0.5876, allocations: 476.7 kB / 0.4907 GB, free: 1.918 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.739e-05/0.5876, allocations: 20 kB / 0.4907 GB, free: 1.898 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.657e-05/0.5877, allocations: 16.34 kB / 0.4907 GB, free: 1.883 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000963/0.5887, allocations: 0.5909 MB / 0.4913 GB, free: 1.285 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.5887, allocations: 0 / 0.4913 GB, free: 1.285 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.948e-05/0.5887, allocations: 12 kB / 0.4913 GB, free: 1.273 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.5887, allocations: 4 kB / 0.4913 GB, free: 1.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006507/0.5894, allocations: 463.8 kB / 0.4917 GB, free: 0.8164 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3006/0.89, allocations: 0.9151 MB / 0.4926 GB, free: 102.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001884/0.892, allocations: 0.7345 MB / 0.4933 GB, free: 102.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.42e-05/0.8921, allocations: 5.406 kB / 0.4933 GB, free: 102.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001489/0.8936, allocations: 0.7331 MB / 0.4941 GB, free: 102.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 4.649e-06/0.8936, allocations: 1.078 kB / 0.4941 GB, free: 102.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.003988/0.8976, allocations: 2.307 MB / 0.4963 GB, free: 101.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000219/0.8978, allocations: 332 kB / 0.4966 GB, free: 101.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002709/0.9005, allocations: 1.317 MB / 0.4979 GB, free: 101.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.43e-05/0.9006, allocations: 38.08 kB / 0.498 GB, free: 101.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003425/0.901, allocations: 283.9 kB / 0.4982 GB, free: 101.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/0.9012, allocations: 91.22 kB / 0.4983 GB, free: 101.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.476e-05/0.9012, allocations: 13.89 kB / 0.4983 GB, free: 101.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.9014, allocations: 321.4 kB / 0.4986 GB, free: 100.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009451/0.9023, allocations: 460.8 kB / 0.4991 GB, free: 100.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009707/0.9033, allocations: 0.4921 MB / 0.4996 GB, free: 100.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001271/0.9046, allocations: 0.6536 MB / 0.5002 GB, free: 100.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.9046, allocations: 0 / 0.5002 GB, free: 100.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.002672/0.9073, allocations: 1.537 MB / 0.5017 GB, free: 100.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002514/0.9076, allocations: 307.1 kB / 0.502 GB, free: 99.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.9076, allocations: 0 / 0.502 GB, free: 99.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.429e-05/0.9076, allocations: 7.562 kB / 0.502 GB, free: 99.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.692e-05/0.9077, allocations: 3.844 kB / 0.502 GB, free: 99.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.548e-05/0.9077, allocations: 7.156 kB / 0.502 GB, free: 99.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004769/0.9082, allocations: 26.28 kB / 0.502 GB, free: 99.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001729/0.9084, allocations: 107.5 kB / 0.5021 GB, free: 99.9 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.001308/0.9097, allocations: 0.8622 MB / 0.503 GB, free: 99.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001652/0.9098, allocations: 134.6 kB / 0.5031 GB, free: 99.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000326/0.9102, allocations: 184.5 kB / 0.5033 GB, free: 99.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.329e-06/0.9102, allocations: 3.969 kB / 0.5033 GB, free: 99.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/0.9102, allocations: 0 / 0.5033 GB, free: 99.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.9102, allocations: 0 / 0.5033 GB, free: 99.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002769/0.913, allocations: 2.453 MB / 0.5057 GB, free: 98.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.913, allocations: 3.188 kB / 0.5057 GB, free: 98.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.255e-05/0.913, allocations: 3.844 kB / 0.5057 GB, free: 98.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.913, allocations: 2.344 kB / 0.5057 GB, free: 98.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.982e-05/0.9131, allocations: 34.89 kB / 0.5057 GB, free: 98.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.215e-06/0.9131, allocations: 3.938 kB / 0.5057 GB, free: 98.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.9131, allocations: 0 / 0.5057 GB, free: 98.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002194/0.9153, allocations: 1.851 MB / 0.5075 GB, free: 98.17 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009302/0.9163, allocations: 0.5015 MB / 0.508 GB, free: 97.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001817/0.9165, allocations: 64.45 kB / 0.5081 GB, free: 97.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002898/0.9168, allocations: 32.72 kB / 0.5081 GB, free: 97.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001218/0.918, allocations: 0.6279 MB / 0.5087 GB, free: 97.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001964/0.9182, allocations: 115 kB / 0.5088 GB, free: 97.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001628/0.9198, allocations: 1.081 MB / 0.5099 GB, free: 97.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.9199, allocations: 0 / 0.5099 GB, free: 97.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009049/0.9208, allocations: 197.5 kB / 0.5101 GB, free: 97.3 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.0009511/0.9217, allocations: 354.1 kB / 0.5104 GB, free: 97.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002242/0.924, allocations: 2.106 MB / 0.5125 GB, free: 95.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.924, allocations: 0 / 0.5125 GB, free: 95.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001281/0.9253, allocations: 1.6 MB / 0.514 GB, free: 94.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002758/0.9281, allocations: 0.7314 MB / 0.5147 GB, free: 94.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004701/0.9328, allocations: 2.829 MB / 0.5175 GB, free: 93.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/0.9338, allocations: 1.153 MB / 0.5186 GB, free: 92.27 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006122/0.9345, allocations: 69.42 kB / 0.5187 GB, free: 92.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.615e-05/0.9345, allocations: 19.44 kB / 0.5187 GB, free: 92.2 MB / 378.7 MB Notification: Performance of SimCode: time 2.564e-06/0.9345, allocations: 2.734 kB / 0.5187 GB, free: 92.2 MB / 378.7 MB Notification: Performance of Templates: time 0.03294/0.9675, allocations: 20.95 MB / 0.5392 GB, free: 72.85 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.RAM.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.RAM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.RAM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.RAM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.RAM.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.RAM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.RAM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.RAM_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Digital.Examples.RAM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches