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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.RAM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_RAM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.RAM,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009771/0.0009771, allocations: 174.9 kB / 8.473 MB, free: 1.871 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.076/1.076, allocations: 205.2 MB / 214.1 MB, free: 1.812 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.0009182/0.0009182, allocations: 79.41 kB / 262.1 MB, free: 1.777 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1414/0.1423, allocations: 52.97 MB / 315.1 MB, free: 22.95 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07177/0.2141, allocations: 47.58 MB / 362.6 MB, free: 7.309 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2076/0.4217, allocations: 84.57 MB / 447.2 MB, free: 11.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001701/0.4219, allocations: 70.66 kB / 447.3 MB, free: 11.12 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.08002/0.5019, allocations: 41.31 MB / 488.6 MB, free: 7.984 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.502, allocations: 19.98 kB / 488.6 MB, free: 7.965 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002029/0.5022, allocations: 118.5 kB / 488.7 MB, free: 7.848 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007038/0.5029, allocations: 480.6 kB / 489.2 MB, free: 7.328 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.67e-05/0.503, allocations: 19.97 kB / 489.2 MB, free: 7.309 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.81e-05/0.503, allocations: 16 kB / 489.2 MB, free: 7.293 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005146/0.5036, allocations: 455.8 kB / 489.7 MB, free: 6.848 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006424/0.5042, allocations: 0.5607 MB / 490.2 MB, free: 6.281 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.5042, allocations: 0 / 490.2 MB, free: 6.281 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.973e-05/0.5043, allocations: 15.91 kB / 490.2 MB, free: 6.266 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.5043, allocations: 4 kB / 490.2 MB, free: 6.262 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.5058, allocations: 0.9025 MB / 491.1 MB, free: 5.324 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006254/0.5064, allocations: 0.7094 MB / 491.9 MB, free: 4.605 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005882/0.507, allocations: 0.7115 MB / 492.6 MB, free: 3.891 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.049e-05/0.507, allocations: 0 / 492.6 MB, free: 3.891 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006272/0.5077, allocations: 0.693 MB / 493.3 MB, free: 3.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 1.673e-06/0.5077, allocations: 0 / 493.3 MB, free: 3.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.001223/0.5089, allocations: 1.023 MB / 494.3 MB, free: 2.129 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001806/0.5091, allocations: 330.7 kB / 494.6 MB, free: 1.738 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001513/0.5106, allocations: 1.27 MB / 495.9 MB, free: 472 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.697e-05/0.5107, allocations: 33.7 kB / 495.9 MB, free: 432 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.58e-05/0.5108, allocations: 161.9 kB / 496.1 MB, free: 268 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.536e-05/0.5109, allocations: 79.08 kB / 496.1 MB, free: 188 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.799e-05/0.5109, allocations: 11.94 kB / 496.2 MB, free: 176 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.5111, allocations: 325.9 kB / 496.5 MB, free: 15.85 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004834/0.5115, allocations: 464.2 kB / 496.9 MB, free: 15.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004967/0.5121, allocations: 464.3 kB / 497.4 MB, free: 14.94 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004662/0.5125, allocations: 361.3 kB / 497.7 MB, free: 14.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.5125, allocations: 0 / 497.7 MB, free: 14.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001144/0.5137, allocations: 1.009 MB / 498.7 MB, free: 13.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.5137, allocations: 4 kB / 498.7 MB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.5137, allocations: 0 / 498.7 MB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.5137, allocations: 0 / 498.7 MB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.442e-05/0.5138, allocations: 8 kB / 498.8 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.907e-06/0.5138, allocations: 0 / 498.8 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003356/0.5141, allocations: 23.89 kB / 498.8 MB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001263/0.5143, allocations: 99.92 kB / 498.9 MB, free: 13.43 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.0003714/0.5146, allocations: 469.4 kB / 499.3 MB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.5148, allocations: 130.5 kB / 499.5 MB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003021/0.5151, allocations: 183.6 kB / 499.6 MB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-06/0.5151, allocations: 0 / 499.6 MB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.5151, allocations: 7.844 kB / 499.6 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.5151, allocations: 0 / 499.6 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002051/0.5172, allocations: 1.751 MB / 0.4896 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.5172, allocations: 4 kB / 0.4897 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.277e-06/0.5172, allocations: 4 kB / 0.4897 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.5172, allocations: 0 / 0.4897 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.151e-05/0.5173, allocations: 31.98 kB / 0.4897 GB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.5173, allocations: 0 / 0.4897 GB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.5173, allocations: 0 / 0.4897 GB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00128/0.5186, allocations: 1.206 MB / 0.4909 GB, free: 9.539 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001455/0.5201, allocations: 1.609 MB / 0.4924 GB, free: 7.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007953/0.5209, allocations: 0.5147 MB / 0.4929 GB, free: 7.375 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002152/0.5211, allocations: 63.95 kB / 0.493 GB, free: 7.312 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003416/0.5214, allocations: 27.97 kB / 0.493 GB, free: 7.285 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009851/0.5224, allocations: 499.5 kB / 0.4935 GB, free: 6.797 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001297/0.5226, allocations: 111.8 kB / 0.4936 GB, free: 6.688 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001314/0.5239, allocations: 1.023 MB / 0.4946 GB, free: 5.66 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001213/0.5251, allocations: 180 kB / 0.4948 GB, free: 5.484 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.0006741/0.5258, allocations: 353.4 kB / 0.4951 GB, free: 5.133 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001432/0.5272, allocations: 1.467 MB / 0.4965 GB, free: 3.609 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.5273, allocations: 0.5 kB / 0.4965 GB, free: 3.609 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001241/0.5285, allocations: 1.351 MB / 0.4979 GB, free: 2.203 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002661/0.5312, allocations: 0.687 MB / 0.4985 GB, free: 1.516 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003542/0.5347, allocations: 2.271 MB / 0.5008 GB, free: 15.21 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009772/0.5357, allocations: 1.165 MB / 0.5019 GB, free: 14.01 MB / 394.7 MB Notification: Performance of SimCode: time 5.41e-07/0.5357, allocations: 0 / 0.5019 GB, free: 14.01 MB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.RAM_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_RAM_fmu --startTime=0 --stopTime=400 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_RAM.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.RAM.pipe 2>&1)