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.001154/0.001154, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.423/1.423, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007809/0.0007809, allocations: 82.72 kB / 262.5 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.002e-05/2.007e-05, allocations: 4 kB / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08697/0.087, allocations: 47.59 MB / 363.1 MB, free: 7.074 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3149/0.402, allocations: 84.56 MB / 447.6 MB, free: 11.11 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002101/0.4023, allocations: 71.66 kB / 447.7 MB, free: 11.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0751/0.4774, allocations: 39.03 MB / 486.7 MB, free: 10.14 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.4774, allocations: 0 / 486.7 MB, free: 10.14 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.364e-05/0.4775, allocations: 12 kB / 486.7 MB, free: 10.12 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.001277/0.4787, allocations: 1.34 MB / 488.1 MB, free: 8.684 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.4788, allocations: 15.91 kB / 488.1 MB, free: 8.668 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00016/0.4789, allocations: 122.5 kB / 488.2 MB, free: 8.547 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005731/0.4795, allocations: 472.6 kB / 488.7 MB, free: 8.035 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.404e-05/0.4796, allocations: 16 kB / 488.7 MB, free: 8.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.785e-05/0.4796, allocations: 19.98 kB / 488.7 MB, free: 8 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004925/0.4801, allocations: 456 kB / 489.2 MB, free: 7.555 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006268/0.4808, allocations: 0.5443 MB / 489.7 MB, free: 7.004 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.4808, allocations: 3.984 kB / 489.7 MB, free: 7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.092e-05/0.4808, allocations: 8 kB / 489.7 MB, free: 6.992 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.4809, allocations: 4 kB / 489.7 MB, free: 6.988 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.4821, allocations: 0.8752 MB / 490.6 MB, free: 6.078 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006492/0.4828, allocations: 0.7133 MB / 491.3 MB, free: 5.355 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006506/0.4834, allocations: 0.696 MB / 492 MB, free: 4.656 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.105e-05/0.4834, allocations: 0 / 492 MB, free: 4.656 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00074/0.4842, allocations: 0.7242 MB / 492.7 MB, free: 3.895 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 1.593e-06/0.4842, allocations: 0 / 492.7 MB, free: 3.895 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.001522/0.4857, allocations: 1.265 MB / 494 MB, free: 2.621 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001622/0.4859, allocations: 334.6 kB / 494.3 MB, free: 2.227 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001502/0.4874, allocations: 1.247 MB / 495.6 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.827e-05/0.4875, allocations: 37.7 kB / 495.6 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002166/0.4877, allocations: 278.1 kB / 495.9 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.4878, allocations: 86.92 kB / 496 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.651e-05/0.4879, allocations: 8 kB / 496 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.393e-05/0.488, allocations: 325.9 kB / 496.3 MB, free: 244 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004596/0.4884, allocations: 460.2 kB / 496.7 MB, free: 15.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004298/0.4889, allocations: 452.3 kB / 497.2 MB, free: 15.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004209/0.4893, allocations: 361.6 kB / 497.5 MB, free: 14.99 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.4893, allocations: 0 / 497.5 MB, free: 14.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001365/0.4907, allocations: 1.212 MB / 498.7 MB, free: 13.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002157/0.4909, allocations: 303.2 kB / 499 MB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.4909, allocations: 0 / 499 MB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.4909, allocations: 0 / 499 MB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.618e-05/0.491, allocations: 4 kB / 499 MB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.084e-06/0.491, allocations: 7.984 kB / 499 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003352/0.4913, allocations: 31.83 kB / 499.1 MB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.4915, allocations: 107.9 kB / 499.2 MB, free: 13.27 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.0004024/0.4919, allocations: 465.4 kB / 499.6 MB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001396/0.492, allocations: 130.5 kB / 499.8 MB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004044/0.4924, allocations: 184 kB / 499.9 MB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.4925, allocations: 4 kB / 500 MB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.4925, allocations: 0 / 500 MB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.4925, allocations: 0 / 500 MB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002333/0.4948, allocations: 2.005 MB / 0.4902 GB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.4948, allocations: 0 / 0.4902 GB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.974e-05/0.4949, allocations: 4 kB / 0.4902 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.4949, allocations: 4 kB / 0.4902 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.898e-05/0.4949, allocations: 31.97 kB / 0.4902 GB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.4949, allocations: 4 kB / 0.4902 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.495, allocations: 0 / 0.4902 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.4966, allocations: 1.446 MB / 0.4916 GB, free: 8.883 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007279/0.4973, allocations: 0.4991 MB / 0.4921 GB, free: 8.363 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001743/0.4975, allocations: 55.97 kB / 0.4922 GB, free: 8.309 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003194/0.4979, allocations: 35.97 kB / 0.4922 GB, free: 8.273 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001108/0.499, allocations: 0.628 MB / 0.4928 GB, free: 7.645 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/0.4991, allocations: 104 kB / 0.4929 GB, free: 7.543 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001318/0.5004, allocations: 1.008 MB / 0.4939 GB, free: 6.527 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5004, allocations: 4 kB / 0.4939 GB, free: 6.523 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006566/0.5011, allocations: 187.9 kB / 0.4941 GB, free: 6.34 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) * 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.0006372/0.5017, allocations: 348.5 kB / 0.4944 GB, free: 5.996 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00178/0.5035, allocations: 2.045 MB / 0.4964 GB, free: 3.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.5036, allocations: 3.938 kB / 0.4964 GB, free: 3.836 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.5048, allocations: 1.569 MB / 0.498 GB, free: 2.156 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003079/0.5079, allocations: 0.7294 MB / 0.4987 GB, free: 1.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003275/0.5112, allocations: 2.245 MB / 0.5009 GB, free: 15.14 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007838/0.512, allocations: 1.147 MB / 0.502 GB, free: 13.97 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003152/0.5123, allocations: 71.14 kB / 0.5021 GB, free: 13.89 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.108e-05/0.5123, allocations: 19.44 kB / 0.5021 GB, free: 13.88 MB / 394.7 MB Notification: Performance of SimCode: time 6.22e-07/0.5123, allocations: 0 / 0.5021 GB, free: 13.88 MB / 394.7 MB Notification: Performance of Templates: time 0.02838/0.5407, allocations: 19.82 MB / 0.5214 GB, free: 9.805 MB / 410.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