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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.RAM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_RAM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.RAM,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009775/0.0009775, allocations: 187.1 kB / 8.134 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.107/1.107, allocations: 221.4 MB / 229.9 MB, free: 2.988 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009194/0.0009195, allocations: 95.39 kB / 280.8 MB, free: 1.219 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09364/0.09459, allocations: 55.81 MB / 336.6 MB, free: 9.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1805/0.2751, allocations: 50.39 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08621/0.3613, allocations: 85.33 MB / 472.3 MB, free: 1.414 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001814/0.3615, allocations: 79.88 kB / 472.4 MB, free: 1.336 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.2161/0.5776, allocations: 41.78 MB / 0.5021 GB, free: 98.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.5777, allocations: 10.75 kB / 0.5021 GB, free: 98.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.5779, allocations: 127 kB / 0.5023 GB, free: 98.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005705/0.5784, allocations: 471.5 kB / 0.5027 GB, free: 98.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.359e-05/0.5785, allocations: 14.53 kB / 0.5027 GB, free: 98.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.178e-05/0.5785, allocations: 23.72 kB / 0.5027 GB, free: 98.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004285/0.579, allocations: 457.7 kB / 0.5032 GB, free: 98.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005489/0.5795, allocations: 0.5794 MB / 0.5037 GB, free: 98.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.5796, allocations: 0 / 0.5037 GB, free: 98.29 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.262e-05/0.5796, allocations: 3.938 kB / 0.5038 GB, free: 98.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.5796, allocations: 2.812 kB / 0.5038 GB, free: 98.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001286/0.5809, allocations: 0.904 MB / 0.5046 GB, free: 98.01 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004997/0.5814, allocations: 0.7148 MB / 0.5053 GB, free: 97.99 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004667/0.5819, allocations: 0.7073 MB / 0.506 GB, free: 97.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.118e-05/0.5819, allocations: 3.938 kB / 0.506 GB, free: 97.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004953/0.5824, allocations: 0.6921 MB / 0.5067 GB, free: 97.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 2.354e-06/0.5824, allocations: 0 / 0.5067 GB, free: 97.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.001022/0.5835, allocations: 1.018 MB / 0.5077 GB, free: 97.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.02e-05/0.5836, allocations: 332 kB / 0.508 GB, free: 96.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001429/0.585, allocations: 1.266 MB / 0.5093 GB, free: 96.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.199e-05/0.5851, allocations: 41.59 kB / 0.5093 GB, free: 96.26 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.5852, allocations: 155.3 kB / 0.5094 GB, free: 96.15 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.5853, allocations: 88.33 kB / 0.5095 GB, free: 96.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.135e-05/0.5853, allocations: 10.22 kB / 0.5095 GB, free: 96.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.053e-05/0.5854, allocations: 321.9 kB / 0.5098 GB, free: 95.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006791/0.5861, allocations: 459.5 kB / 0.5103 GB, free: 95.67 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004724/0.5866, allocations: 467.8 kB / 0.5107 GB, free: 95.56 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004177/0.587, allocations: 372.5 kB / 0.5111 GB, free: 95.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.587, allocations: 0 / 0.5111 GB, free: 95.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001119/0.5881, allocations: 0.9906 MB / 0.512 GB, free: 95.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.5882, allocations: 4 kB / 0.5121 GB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.5882, allocations: 3.562 kB / 0.5121 GB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.5882, allocations: 0 / 0.5121 GB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.637e-05/0.5882, allocations: 7.375 kB / 0.5121 GB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.988e-06/0.5882, allocations: 0 / 0.5121 GB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003616/0.5886, allocations: 27.66 kB / 0.5121 GB, free: 95.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/0.5887, allocations: 97.5 kB / 0.5122 GB, free: 94.94 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.000293/0.589, allocations: 467.8 kB / 0.5126 GB, free: 94.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/0.5892, allocations: 130.4 kB / 0.5128 GB, free: 94.33 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000302/0.5895, allocations: 192.6 kB / 0.5129 GB, free: 94.16 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.5895, allocations: 0 / 0.5129 GB, free: 94.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.5895, allocations: 0 / 0.5129 GB, free: 94.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.5895, allocations: 4 kB / 0.5129 GB, free: 94.15 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00171/0.5912, allocations: 1.756 MB / 0.5147 GB, free: 92.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.5912, allocations: 0 / 0.5147 GB, free: 92.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.043e-05/0.5912, allocations: 7.875 kB / 0.5147 GB, free: 92.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.5912, allocations: 0 / 0.5147 GB, free: 92.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.796e-05/0.5913, allocations: 31.42 kB / 0.5147 GB, free: 92.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.5913, allocations: 0 / 0.5147 GB, free: 92.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.5913, allocations: 4 kB / 0.5147 GB, free: 92.59 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001073/0.5924, allocations: 1.205 MB / 0.5159 GB, free: 91.48 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001145/0.5936, allocations: 1.597 MB / 0.5174 GB, free: 89.99 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007367/0.5943, allocations: 0.5138 MB / 0.5179 GB, free: 89.53 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002079/0.5945, allocations: 66.27 kB / 0.518 GB, free: 89.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003513/0.5949, allocations: 34.52 kB / 0.518 GB, free: 89.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008857/0.5958, allocations: 498.3 kB / 0.5185 GB, free: 89.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/0.5959, allocations: 106.1 kB / 0.5186 GB, free: 89 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.00124/0.5972, allocations: 1.035 MB / 0.5196 GB, free: 88.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001198/0.5984, allocations: 179.8 kB / 0.5198 GB, free: 87.93 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.0006453/0.599, allocations: 348.1 kB / 0.5201 GB, free: 87.67 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.6002, allocations: 1.471 MB / 0.5216 GB, free: 86.26 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.6002, allocations: 0 / 0.5216 GB, free: 86.26 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008299/0.6011, allocations: 1.347 MB / 0.5229 GB, free: 84.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002456/0.6035, allocations: 0.6931 MB / 0.5236 GB, free: 84.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002823/0.6064, allocations: 2.291 MB / 0.5258 GB, free: 82.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008058/0.6072, allocations: 1.161 MB / 0.5269 GB, free: 81.31 MB / 378.7 MB Notification: Performance of SimCode: time 4.5e-07/0.6072, allocations: 0 / 0.5269 GB, free: 81.31 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_RAM_fmu --startTime=0 --stopTime=400 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_RAM.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.pipe 2>&1)