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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009969/0.000997, allocations: 180.2 kB / 8.477 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.202/1.202, allocations: 205.2 MB / 214.1 MB, free: 5.102 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.0008696/0.0008696, allocations: 94.28 kB / 262.1 MB, free: 5.141 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.284e-06/7.324e-06, allocations: 4 kB / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07389/0.07391, allocations: 47.58 MB / 362.5 MB, free: 9.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2546/0.3286, allocations: 84.29 MB / 446.8 MB, free: 10.63 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001963/0.3288, allocations: 74.83 kB / 446.9 MB, free: 10.62 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.07501/0.4039, allocations: 39.91 MB / 486.8 MB, free: 7.449 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.94e-05/0.4039, allocations: 19.94 kB / 486.8 MB, free: 7.43 MB / 330.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.001551/0.4055, allocations: 1.366 MB / 488.2 MB, free: 5.965 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.4055, allocations: 8.031 kB / 488.2 MB, free: 5.957 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001557/0.4057, allocations: 126.5 kB / 488.3 MB, free: 5.832 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000683/0.4064, allocations: 486.1 kB / 488.8 MB, free: 5.336 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.978e-05/0.4064, allocations: 16 kB / 488.8 MB, free: 5.32 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.34e-05/0.4065, allocations: 23.94 kB / 488.8 MB, free: 5.297 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000532/0.4071, allocations: 451.8 kB / 489.3 MB, free: 4.855 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006411/0.4077, allocations: 0.5568 MB / 489.8 MB, free: 4.293 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.4077, allocations: 0 / 489.8 MB, free: 4.293 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.87e-05/0.4078, allocations: 19.84 kB / 489.9 MB, free: 4.273 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.4078, allocations: 7.984 kB / 489.9 MB, free: 4.266 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.4092, allocations: 0.8895 MB / 490.8 MB, free: 3.348 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006606/0.4098, allocations: 0.7249 MB / 491.5 MB, free: 2.613 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000633/0.4105, allocations: 0.7038 MB / 492.2 MB, free: 1.906 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.4105, allocations: 8 kB / 492.2 MB, free: 1.898 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006339/0.4111, allocations: 0.6891 MB / 492.9 MB, free: 1.172 MB / 330.7 MB Notification: Performance of pre-optimization done (n=41): time 1.513e-06/0.4111, allocations: 0 / 492.9 MB, free: 1.172 MB / 330.7 MB Notification: Performance of matching and sorting (n=41): time 0.001216/0.4124, allocations: 1.023 MB / 493.9 MB, free: 144 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001763/0.4126, allocations: 334.7 kB / 494.2 MB, free: 15.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001481/0.414, allocations: 1.263 MB / 495.5 MB, free: 14.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.928e-05/0.4141, allocations: 41.69 kB / 495.5 MB, free: 14.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.725e-05/0.4142, allocations: 157.9 kB / 495.7 MB, free: 14.27 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.775e-05/0.4143, allocations: 90.36 kB / 495.8 MB, free: 14.19 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.943e-05/0.4144, allocations: 4 kB / 495.8 MB, free: 14.18 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.4145, allocations: 325.9 kB / 496.1 MB, free: 13.86 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004857/0.415, allocations: 464.2 kB / 496.6 MB, free: 13.4 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000466/0.4155, allocations: 468.3 kB / 497 MB, free: 12.95 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000447/0.4159, allocations: 361.3 kB / 497.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.4159, allocations: 7.938 kB / 497.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001154/0.4171, allocations: 0.9972 MB / 498.4 MB, free: 11.58 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.4171, allocations: 8 kB / 498.4 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.4171, allocations: 0 / 498.4 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.4171, allocations: 0 / 498.4 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.155e-05/0.4172, allocations: 0 / 498.4 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.4172, allocations: 4 kB / 498.4 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003252/0.4175, allocations: 23.89 kB / 498.4 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/0.4177, allocations: 103.9 kB / 498.5 MB, free: 11.45 MB / 346.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.0004072/0.4181, allocations: 456.7 kB / 499 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/0.4182, allocations: 126.5 kB / 499.1 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002846/0.4185, allocations: 187.6 kB / 499.3 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.738e-06/0.4185, allocations: 4 kB / 499.3 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.4185, allocations: 3.906 kB / 499.3 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.4185, allocations: 0 / 499.3 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002035/0.4206, allocations: 1.755 MB / 0.4893 GB, free: 8.824 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.4206, allocations: 3.984 kB / 0.4893 GB, free: 8.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.556e-06/0.4206, allocations: 0 / 0.4893 GB, free: 8.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.4206, allocations: 11.98 kB / 0.4893 GB, free: 8.809 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.927e-05/0.4207, allocations: 31.98 kB / 0.4893 GB, free: 8.777 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.4207, allocations: 4 kB / 0.4893 GB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.4207, allocations: 0 / 0.4893 GB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001384/0.4221, allocations: 1.198 MB / 0.4905 GB, free: 7.559 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000773/0.4229, allocations: 0.5107 MB / 0.491 GB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002026/0.4231, allocations: 71.86 kB / 0.4911 GB, free: 6.957 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003086/0.4234, allocations: 31.92 kB / 0.4911 GB, free: 6.926 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009871/0.4244, allocations: 0.4912 MB / 0.4916 GB, free: 6.438 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000129/0.4246, allocations: 103.9 kB / 0.4917 GB, free: 6.336 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.001249/0.4258, allocations: 1.035 MB / 0.4927 GB, free: 5.297 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006354/0.4265, allocations: 168 kB / 0.4929 GB, free: 5.133 MB / 346.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.0007116/0.4272, allocations: 340.3 kB / 0.4932 GB, free: 4.805 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001366/0.4286, allocations: 1.475 MB / 0.4946 GB, free: 3.273 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.4286, allocations: 0 / 0.4946 GB, free: 3.273 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001163/0.4297, allocations: 1.351 MB / 0.4959 GB, free: 1.867 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002492/0.4322, allocations: 0.6987 MB / 0.4966 GB, free: 1.172 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003199/0.4354, allocations: 2.275 MB / 0.4988 GB, free: 14.86 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007991/0.4363, allocations: 1.169 MB / 0.5 GB, free: 13.66 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4363, allocations: 0 / 0.5 GB, free: 13.66 MB / 362.7 MB Notification: Performance of Templates: time 0.02634/0.4626, allocations: 19.36 MB / 0.5189 GB, free: 10.05 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