Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.RAM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 223.2 MB / 240.3 MB, free: 10.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009433/0.000943, allocations: 97.39 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003409/0.000341, allocations: 8 kB / 351.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2442, allocations: 50.41 MB / 401.5 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1083/0.3526, allocations: 86.1 MB / 487.6 MB, free: 10.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002389/0.3529, allocations: 71.97 kB / 487.7 MB, free: 10.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3338/0.6867, allocations: 39.77 MB / 0.5151 GB, free: 95.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.356e-06/0.6868, allocations: 4 kB / 0.5151 GB, free: 95.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.978e-05/0.6868, allocations: 11.06 kB / 0.5151 GB, free: 95.39 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.001673/0.6885, allocations: 1.543 MB / 0.5166 GB, free: 94.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.6885, allocations: 9.594 kB / 0.5166 GB, free: 94.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.6887, allocations: 126.1 kB / 0.5167 GB, free: 94.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007018/0.6894, allocations: 476.9 kB / 0.5172 GB, free: 93.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.357e-05/0.6894, allocations: 18.03 kB / 0.5172 GB, free: 93.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.435e-05/0.6895, allocations: 14.12 kB / 0.5172 GB, free: 93.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007664/0.6903, allocations: 0.6021 MB / 0.5178 GB, free: 93.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.6903, allocations: 0 / 0.5178 GB, free: 93.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.329e-05/0.6904, allocations: 11.88 kB / 0.5178 GB, free: 93.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.6904, allocations: 2.781 kB / 0.5178 GB, free: 93.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005208/0.6909, allocations: 469.8 kB / 0.5183 GB, free: 93.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00126/0.6922, allocations: 0.9244 MB / 0.5192 GB, free: 93.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007028/0.6929, allocations: 0.7321 MB / 0.5199 GB, free: 92.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.654e-05/0.6929, allocations: 0 / 0.5199 GB, free: 92.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007567/0.6937, allocations: 0.7357 MB / 0.5206 GB, free: 92.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 1.623e-06/0.6937, allocations: 0 / 0.5206 GB, free: 92.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.002268/0.696, allocations: 2.3 MB / 0.5228 GB, free: 90.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001632/0.6961, allocations: 337.9 kB / 0.5232 GB, free: 89.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00135/0.6975, allocations: 1.319 MB / 0.5244 GB, free: 88.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.741e-05/0.6975, allocations: 33.7 kB / 0.5245 GB, free: 88.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001764/0.6977, allocations: 288.8 kB / 0.5248 GB, free: 88.37 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.588e-05/0.6978, allocations: 86.25 kB / 0.5248 GB, free: 88.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.049e-05/0.6979, allocations: 12 kB / 0.5248 GB, free: 88.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.304e-05/0.6979, allocations: 322 kB / 0.5252 GB, free: 87.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000422/0.6984, allocations: 464.1 kB / 0.5256 GB, free: 87.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004393/0.6988, allocations: 0.491 MB / 0.5261 GB, free: 87.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005326/0.6994, allocations: 0.6514 MB / 0.5267 GB, free: 86.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.6994, allocations: 0 / 0.5267 GB, free: 86.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001334/0.7007, allocations: 1.538 MB / 0.5282 GB, free: 84.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001436/0.7009, allocations: 307.6 kB / 0.5285 GB, free: 84.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.7009, allocations: 4 kB / 0.5285 GB, free: 84.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.7009, allocations: 0 / 0.5285 GB, free: 84.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.688e-05/0.7009, allocations: 7.844 kB / 0.5285 GB, free: 84.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.701, allocations: 0 / 0.5285 GB, free: 84.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003019/0.7013, allocations: 39.98 kB / 0.5286 GB, free: 84.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/0.7014, allocations: 101.2 kB / 0.5287 GB, free: 84.21 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.0007175/0.7021, allocations: 0.852 MB / 0.5295 GB, free: 83.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.7022, allocations: 129.5 kB / 0.5296 GB, free: 83.17 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001977/0.7024, allocations: 195.8 kB / 0.5298 GB, free: 82.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.7024, allocations: 4 kB / 0.5298 GB, free: 82.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.7024, allocations: 4 kB / 0.5298 GB, free: 82.97 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.7025, allocations: 3.844 kB / 0.5298 GB, free: 82.97 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002143/0.7046, allocations: 2.451 MB / 0.5322 GB, free: 80.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.7046, allocations: 0 / 0.5322 GB, free: 80.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.097e-06/0.7046, allocations: 4 kB / 0.5322 GB, free: 80.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.7046, allocations: 0.9375 kB / 0.5322 GB, free: 80.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.634e-05/0.7047, allocations: 35.98 kB / 0.5322 GB, free: 80.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.7047, allocations: 7.844 kB / 0.5323 GB, free: 80.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.7047, allocations: 3.953 kB / 0.5323 GB, free: 80.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001508/0.7062, allocations: 1.842 MB / 0.5341 GB, free: 78.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006544/0.7069, allocations: 0.4991 MB / 0.5345 GB, free: 77.94 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001488/0.7071, allocations: 63.95 kB / 0.5346 GB, free: 77.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002953/0.7074, allocations: 30.33 kB / 0.5346 GB, free: 77.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008859/0.7083, allocations: 0.6319 MB / 0.5352 GB, free: 77.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.863e-05/0.7084, allocations: 114.6 kB / 0.5354 GB, free: 77.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001117/0.7095, allocations: 1.078 MB / 0.5364 GB, free: 76.03 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7095, allocations: 4 kB / 0.5364 GB, free: 76.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005894/0.7101, allocations: 199.6 kB / 0.5366 GB, free: 75.84 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.0006299/0.7107, allocations: 365.9 kB / 0.537 GB, free: 75.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001468/0.7122, allocations: 2.099 MB / 0.539 GB, free: 73.33 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.7122, allocations: 0 / 0.539 GB, free: 73.33 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009184/0.7131, allocations: 1.6 MB / 0.5406 GB, free: 71.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002149/0.7153, allocations: 0.7305 MB / 0.5413 GB, free: 70.92 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002967/0.7183, allocations: 2.831 MB / 0.544 GB, free: 68.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005852/0.7189, allocations: 1.146 MB / 0.5452 GB, free: 66.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002962/0.7192, allocations: 78.19 kB / 0.5452 GB, free: 66.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.609e-05/0.7192, allocations: 19.44 kB / 0.5453 GB, free: 66.79 MB / 378.7 MB Notification: Performance of SimCode: time 7.92e-07/0.7192, allocations: 4 kB / 0.5453 GB, free: 66.79 MB / 378.7 MB Notification: Performance of Templates: time 0.02324/0.7425, allocations: 20.93 MB / 0.5657 GB, free: 45.89 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/RAM/RAM.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches