Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.RAM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_RAM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.RAM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_RAM",fmuType="me",version="2.0",platforms={"static"}) [: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 trunk/package.mo): time 0.001607/0.001607, allocations: 205 kB / 8.54 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.128/1.128, allocations: 225.5 MB / 234.4 MB, free: 3.414 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008274/0.0008274, allocations: 85.12 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09293/0.09378, allocations: 56.9 MB / 343.2 MB, free: 8.652 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08379/0.1776, allocations: 51.47 MB / 394.7 MB, free: 5.121 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2237/0.4013, allocations: 86.14 MB / 480.8 MB, free: 6.965 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001612/0.4015, allocations: 71.97 kB / 480.9 MB, free: 6.93 MB / 346.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.08257/0.4841, allocations: 41.83 MB / 0.5105 GB, free: 2.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.4842, allocations: 8 kB / 0.5105 GB, free: 2.902 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000212/0.4844, allocations: 122.5 kB / 0.5106 GB, free: 2.781 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000709/0.4851, allocations: 480.6 kB / 0.5111 GB, free: 2.262 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.416e-05/0.4851, allocations: 12 kB / 0.5111 GB, free: 2.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.25e-05/0.4852, allocations: 20 kB / 0.5111 GB, free: 2.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005601/0.4858, allocations: 455.8 kB / 0.5115 GB, free: 1.785 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006787/0.4865, allocations: 0.5645 MB / 0.5121 GB, free: 1.215 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.4865, allocations: 1.031 kB / 0.5121 GB, free: 1.215 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.395e-05/0.4865, allocations: 11.91 kB / 0.5121 GB, free: 1.203 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.4865, allocations: 0 / 0.5121 GB, free: 1.203 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001512/0.4881, allocations: 0.9092 MB / 0.513 GB, free: 268 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006747/0.4887, allocations: 0.7211 MB / 0.5137 GB, free: 15.53 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006331/0.4894, allocations: 0.7076 MB / 0.5144 GB, free: 14.82 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.312e-06/0.4894, allocations: 0 / 0.5144 GB, free: 14.82 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006595/0.4901, allocations: 0.6932 MB / 0.5151 GB, free: 14.09 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 3.026e-06/0.4901, allocations: 0 / 0.5151 GB, free: 14.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.00126/0.4913, allocations: 1.022 MB / 0.5161 GB, free: 13.06 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000155/0.4915, allocations: 338.6 kB / 0.5164 GB, free: 12.66 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00151/0.493, allocations: 1.264 MB / 0.5176 GB, free: 11.39 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.978e-05/0.4931, allocations: 41.69 kB / 0.5177 GB, free: 11.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.026e-05/0.4932, allocations: 154 kB / 0.5178 GB, free: 11.19 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.4933, allocations: 90.84 kB / 0.5179 GB, free: 11.1 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.448e-05/0.4934, allocations: 8 kB / 0.5179 GB, free: 11.09 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.709e-05/0.4935, allocations: 322 kB / 0.5182 GB, free: 10.77 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004567/0.4939, allocations: 456.2 kB / 0.5186 GB, free: 10.32 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004652/0.4944, allocations: 468.5 kB / 0.5191 GB, free: 9.867 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004672/0.4949, allocations: 369.8 kB / 0.5194 GB, free: 9.508 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.4949, allocations: 0 / 0.5194 GB, free: 9.508 MB / 394.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001322/0.4962, allocations: 0.9933 MB / 0.5204 GB, free: 8.508 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.4963, allocations: 5.875 kB / 0.5204 GB, free: 8.504 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.4963, allocations: 0 / 0.5204 GB, free: 8.504 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.4963, allocations: 4 kB / 0.5204 GB, free: 8.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.835e-05/0.4963, allocations: 3.938 kB / 0.5204 GB, free: 8.496 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.4963, allocations: 0 / 0.5204 GB, free: 8.496 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004579/0.4968, allocations: 27.89 kB / 0.5204 GB, free: 8.469 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000179/0.497, allocations: 101.4 kB / 0.5205 GB, free: 8.371 MB / 394.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.0004675/0.4975, allocations: 449.4 kB / 0.521 GB, free: 7.875 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000206/0.4977, allocations: 130.5 kB / 0.5211 GB, free: 7.746 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004291/0.4981, allocations: 195.6 kB / 0.5213 GB, free: 7.551 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.4981, allocations: 3.938 kB / 0.5213 GB, free: 7.547 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.4982, allocations: 7.906 kB / 0.5213 GB, free: 7.539 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.4982, allocations: 0 / 0.5213 GB, free: 7.539 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003014/0.5012, allocations: 1.747 MB / 0.523 GB, free: 5.75 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.5012, allocations: 3.984 kB / 0.523 GB, free: 5.746 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.017e-05/0.5012, allocations: 0 / 0.523 GB, free: 5.746 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.5012, allocations: 0 / 0.523 GB, free: 5.746 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.5014, allocations: 43.98 kB / 0.523 GB, free: 5.703 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.5014, allocations: 0 / 0.523 GB, free: 5.703 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.5014, allocations: 0 / 0.523 GB, free: 5.703 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001982/0.5034, allocations: 1.198 MB / 0.5242 GB, free: 4.488 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002149/0.5055, allocations: 1.617 MB / 0.5258 GB, free: 2.852 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001166/0.5067, allocations: 0.509 MB / 0.5263 GB, free: 2.324 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002949/0.507, allocations: 63.95 kB / 0.5264 GB, free: 2.262 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004892/0.5075, allocations: 27.98 kB / 0.5264 GB, free: 2.234 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001523/0.5091, allocations: 0.4915 MB / 0.5269 GB, free: 1.742 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002049/0.5093, allocations: 106.4 kB / 0.527 GB, free: 1.641 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001915/0.5112, allocations: 1.035 MB / 0.528 GB, free: 0.6016 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001468/0.5127, allocations: 183.9 kB / 0.5281 GB, free: 432 kB / 394.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.0006627/0.5134, allocations: 349.7 kB / 0.5285 GB, free: 124 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001433/0.5148, allocations: 1.475 MB / 0.5299 GB, free: 14.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.5148, allocations: 0 / 0.5299 GB, free: 14.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00116/0.516, allocations: 1.351 MB / 0.5312 GB, free: 13.18 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002382/0.5184, allocations: 0.6861 MB / 0.5319 GB, free: 12.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002989/0.5214, allocations: 2.271 MB / 0.5341 GB, free: 10.21 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008276/0.5222, allocations: 1.162 MB / 0.5353 GB, free: 9.016 MB / 410.7 MB Notification: Performance of SimCode: time 4.71e-07/0.5222, allocations: 4 kB / 0.5353 GB, free: 9.012 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_RAM_fmu --startTime=0 --stopTime=400 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_RAM.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.pipe 2>&1)