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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 181.3 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.263/1.263, allocations: 223.2 MB / 240.3 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008906/0.0008905, allocations: 83.95 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003043/0.0003043, allocations: 4 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2116, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09729/0.3089, allocations: 86.09 MB / 487.7 MB, free: 10.35 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002201/0.3092, allocations: 79.95 kB / 487.7 MB, free: 10.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2677/0.5769, allocations: 39.78 MB / 0.5152 GB, free: 95.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5769, allocations: 0 / 0.5152 GB, free: 95.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.272e-05/0.577, allocations: 13.41 kB / 0.5152 GB, free: 95.45 MB / 378.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.002464/0.5795, allocations: 1.546 MB / 0.5167 GB, free: 94.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.5795, allocations: 11.25 kB / 0.5167 GB, free: 94.34 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001557/0.5797, allocations: 64.31 kB / 0.5168 GB, free: 94.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002712/0.58, allocations: 126.3 kB / 0.5169 GB, free: 94.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009904/0.581, allocations: 469.9 kB / 0.5173 GB, free: 93.9 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.166e-05/0.5811, allocations: 17.59 kB / 0.5173 GB, free: 93.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.156e-05/0.5812, allocations: 21.28 kB / 0.5174 GB, free: 93.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001049/0.5822, allocations: 0.589 MB / 0.5179 GB, free: 93.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.5823, allocations: 0 / 0.5179 GB, free: 93.74 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.299e-05/0.5823, allocations: 14.69 kB / 0.5179 GB, free: 93.74 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.5824, allocations: 0 / 0.5179 GB, free: 93.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007801/0.5832, allocations: 477.3 kB / 0.5184 GB, free: 93.63 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002122/0.5853, allocations: 0.9245 MB / 0.5193 GB, free: 93.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/0.5863, allocations: 0.73 MB / 0.52 GB, free: 92.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.266e-05/0.5864, allocations: 0 / 0.52 GB, free: 92.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009532/0.5873, allocations: 0.732 MB / 0.5207 GB, free: 92.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 2.374e-06/0.5873, allocations: 4 kB / 0.5207 GB, free: 92.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.003186/0.5905, allocations: 2.31 MB / 0.523 GB, free: 90.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001316/0.5907, allocations: 330 kB / 0.5233 GB, free: 89.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002514/0.5932, allocations: 1.32 MB / 0.5246 GB, free: 88.63 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.683e-05/0.5933, allocations: 42.55 kB / 0.5246 GB, free: 88.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002646/0.5936, allocations: 274.1 kB / 0.5249 GB, free: 88.31 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001308/0.5938, allocations: 89.62 kB / 0.525 GB, free: 88.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.19e-05/0.5938, allocations: 12 kB / 0.525 GB, free: 88.22 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.291e-05/0.5939, allocations: 322 kB / 0.5253 GB, free: 87.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007571/0.5946, allocations: 468.1 kB / 0.5257 GB, free: 87.44 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007431/0.5954, allocations: 498.8 kB / 0.5262 GB, free: 86.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007407/0.5962, allocations: 0.6475 MB / 0.5269 GB, free: 86.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.5962, allocations: 4 kB / 0.5269 GB, free: 86.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.002205/0.5984, allocations: 1.54 MB / 0.5284 GB, free: 84.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001959/0.5986, allocations: 310.4 kB / 0.5287 GB, free: 84.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.5986, allocations: 3.984 kB / 0.5287 GB, free: 84.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.5987, allocations: 0 / 0.5287 GB, free: 84.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.233e-05/0.5987, allocations: 7.844 kB / 0.5287 GB, free: 84.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.5987, allocations: 3.953 kB / 0.5287 GB, free: 84.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005608/0.5993, allocations: 39.83 kB / 0.5287 GB, free: 84.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000173/0.5995, allocations: 105.2 kB / 0.5288 GB, free: 84.14 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 45 ($PRE.dLATRAM.inertialDelaySensitive[2].y,$PRE.dLATRAM.inertialDelaySensitive[1].y,$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,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,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 () * Number of clocked 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.001396/0.6009, allocations: 0.8617 MB / 0.5297 GB, free: 83.22 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002192/0.6011, allocations: 122.6 kB / 0.5298 GB, free: 83.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005079/0.6017, allocations: 187.9 kB / 0.5299 GB, free: 82.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.6017, allocations: 0 / 0.5299 GB, free: 82.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.6017, allocations: 0 / 0.5299 GB, free: 82.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.6017, allocations: 11.94 kB / 0.53 GB, free: 82.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00414/0.6059, allocations: 2.441 MB / 0.5323 GB, free: 80.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.6059, allocations: 0 / 0.5323 GB, free: 80.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.707e-05/0.6059, allocations: 7.828 kB / 0.5324 GB, free: 80.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.6059, allocations: 0 / 0.5324 GB, free: 80.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.991e-05/0.606, allocations: 39.92 kB / 0.5324 GB, free: 80.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.606, allocations: 0 / 0.5324 GB, free: 80.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.6061, allocations: 7.953 kB / 0.5324 GB, free: 80.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002662/0.6087, allocations: 1.852 MB / 0.5342 GB, free: 78.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001191/0.6099, allocations: 0.4991 MB / 0.5347 GB, free: 77.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002759/0.6102, allocations: 59.97 kB / 0.5348 GB, free: 77.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005191/0.6108, allocations: 31.97 kB / 0.5348 GB, free: 77.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001671/0.6125, allocations: 0.6319 MB / 0.5354 GB, free: 77.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001716/0.6126, allocations: 110.7 kB / 0.5355 GB, free: 77.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002047/0.6147, allocations: 1.086 MB / 0.5366 GB, free: 75.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.6147, allocations: 0 / 0.5366 GB, free: 75.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009739/0.6157, allocations: 191.1 kB / 0.5367 GB, free: 75.77 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) * Number of clocked states: 0 () * 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.00367/0.6194, allocations: 2.678 MB / 0.5394 GB, free: 73.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00243/0.6218, allocations: 2.095 MB / 0.5414 GB, free: 70.88 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.6219, allocations: 0 / 0.5414 GB, free: 70.88 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001623/0.6235, allocations: 1.604 MB / 0.543 GB, free: 69.17 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003577/0.6271, allocations: 0.7192 MB / 0.5437 GB, free: 68.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/0.6396, allocations: 7.572 MB / 0.5511 GB, free: 60.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/0.6407, allocations: 1.15 MB / 0.5522 GB, free: 59.65 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004574/0.6412, allocations: 70.25 kB / 0.5523 GB, free: 59.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000248/0.6414, allocations: 219.3 kB / 0.5525 GB, free: 59.38 MB / 378.7 MB Notification: Performance of SimCode: time 7.374e-06/0.6415, allocations: 0 / 0.5525 GB, free: 59.38 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05172/0.6932, allocations: 27.09 MB / 0.5789 GB, free: 32.41 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001154/0.6933, allocations: 210.3 kB / 0.5791 GB, free: 32.17 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.586/3.28, allocations: 0 / 0.5791 GB, free: 32.17 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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM_res.mat does not exist to compare? outputFormat=mat