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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001202/0.001201, allocations: 175.1 kB / 14.1 MB, free: 1.207 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.45/1.45, allocations: 205.2 MB / 219.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007743/0.0007743, allocations: 86.67 kB / 268 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.891e-05/2.904e-05, allocations: 0 / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08363/0.08368, allocations: 47.58 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3147/0.3984, allocations: 84.98 MB / 455.1 MB, free: 8.316 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000186/0.3986, allocations: 71.45 kB / 455.2 MB, free: 8.281 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08309/0.4817, allocations: 39.4 MB / 494.6 MB, free: 2.406 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.4818, allocations: 0 / 494.6 MB, free: 2.406 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.193e-05/0.4818, allocations: 12 kB / 494.6 MB, free: 2.395 MB / 362.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.001804/0.4837, allocations: 1.348 MB / 495.9 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.4837, allocations: 12.03 kB / 495.9 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001429/0.4839, allocations: 54.55 kB / 496 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000218/0.4841, allocations: 122.5 kB / 496.1 MB, free: 0.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008566/0.485, allocations: 472.5 kB / 496.6 MB, free: 244 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.646e-05/0.485, allocations: 23.98 kB / 496.6 MB, free: 220 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.894e-05/0.4851, allocations: 20.34 kB / 496.6 MB, free: 200 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000816/0.4859, allocations: 0.5755 MB / 497.2 MB, free: 15.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.4859, allocations: 0 / 497.2 MB, free: 15.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.413e-05/0.486, allocations: 15.98 kB / 497.2 MB, free: 15.6 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.486, allocations: 4 kB / 497.2 MB, free: 15.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005514/0.4866, allocations: 455.8 kB / 497.7 MB, free: 15.15 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001648/0.4882, allocations: 0.9155 MB / 498.6 MB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000763/0.489, allocations: 0.725 MB / 499.3 MB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000698/0.4897, allocations: 0.7077 MB / 500 MB, free: 12.74 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.4897, allocations: 4 kB / 0.4883 GB, free: 12.74 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008458/0.4906, allocations: 0.7281 MB / 0.489 GB, free: 11.97 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 4.789e-06/0.4906, allocations: 0 / 0.489 GB, free: 11.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.001896/0.4925, allocations: 1.573 MB / 0.4905 GB, free: 10.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002412/0.4928, allocations: 338.7 kB / 0.4909 GB, free: 9.938 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002175/0.4949, allocations: 1.307 MB / 0.4921 GB, free: 8.621 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.012e-05/0.495, allocations: 37.7 kB / 0.4922 GB, free: 8.578 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002451/0.4953, allocations: 278.1 kB / 0.4924 GB, free: 8.301 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.4954, allocations: 90.91 kB / 0.4925 GB, free: 8.211 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.554e-05/0.4954, allocations: 12 kB / 0.4925 GB, free: 8.199 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.4956, allocations: 322 kB / 0.4928 GB, free: 7.879 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00055/0.4961, allocations: 468.2 kB / 0.4933 GB, free: 7.418 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005234/0.4967, allocations: 464.3 kB / 0.4937 GB, free: 6.965 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006024/0.4973, allocations: 0.6415 MB / 0.4944 GB, free: 6.266 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.4973, allocations: 0 / 0.4944 GB, free: 6.266 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001667/0.4989, allocations: 1.531 MB / 0.4958 GB, free: 4.672 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001921/0.4992, allocations: 299.2 kB / 0.4961 GB, free: 4.324 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.4992, allocations: 4 kB / 0.4961 GB, free: 4.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.4992, allocations: 3.953 kB / 0.4961 GB, free: 4.316 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.411e-05/0.4992, allocations: 11.92 kB / 0.4962 GB, free: 4.305 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.4992, allocations: 0 / 0.4962 GB, free: 4.305 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003614/0.4996, allocations: 35.89 kB / 0.4962 GB, free: 4.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001374/0.4998, allocations: 103.9 kB / 0.4963 GB, free: 4.168 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.0003544/0.5001, allocations: 470.3 kB / 0.4967 GB, free: 3.645 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001487/0.5003, allocations: 126.5 kB / 0.4969 GB, free: 3.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003629/0.5006, allocations: 187.6 kB / 0.497 GB, free: 3.336 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.5007, allocations: 8 kB / 0.497 GB, free: 3.328 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.5007, allocations: 7.891 kB / 0.497 GB, free: 3.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.5007, allocations: 0 / 0.497 GB, free: 3.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002671/0.5034, allocations: 2.412 MB / 0.4994 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.5034, allocations: 0 / 0.4994 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.117e-06/0.5034, allocations: 0 / 0.4994 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.5034, allocations: 0 / 0.4994 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.507e-05/0.5035, allocations: 39.94 kB / 0.4994 GB, free: 0.7617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.5035, allocations: 7.875 kB / 0.4994 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.5035, allocations: 3.984 kB / 0.4995 GB, free: 0.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002027/0.5055, allocations: 1.834 MB / 0.5012 GB, free: 14.84 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008654/0.5064, allocations: 0.4913 MB / 0.5017 GB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002211/0.5066, allocations: 63.95 kB / 0.5018 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003501/0.507, allocations: 39.92 kB / 0.5018 GB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001157/0.5082, allocations: 0.6241 MB / 0.5024 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001291/0.5083, allocations: 107.9 kB / 0.5025 GB, free: 13.5 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001681/0.51, allocations: 1.068 MB / 0.5036 GB, free: 12.43 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.51, allocations: 0 / 0.5036 GB, free: 12.43 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007276/0.5107, allocations: 195.9 kB / 0.5038 GB, free: 12.23 MB / 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.003014/0.5138, allocations: 2.654 MB / 0.5064 GB, free: 9.504 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001861/0.5156, allocations: 2.068 MB / 0.5084 GB, free: 7.324 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.5157, allocations: 4 kB / 0.5084 GB, free: 7.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00125/0.5169, allocations: 1.588 MB / 0.5099 GB, free: 5.621 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002814/0.5197, allocations: 0.7242 MB / 0.5106 GB, free: 4.895 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004438/0.5242, allocations: 2.516 MB / 0.5131 GB, free: 2.328 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/0.5252, allocations: 1.151 MB / 0.5142 GB, free: 1.148 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003034/0.5255, allocations: 70.88 kB / 0.5143 GB, free: 1.082 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002185/0.5258, allocations: 211.3 kB / 0.5145 GB, free: 0.875 MB / 394.7 MB Notification: Performance of SimCode: time 1.072e-06/0.5258, allocations: 4 kB / 0.5145 GB, free: 0.8711 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2445/0.7702, allocations: 27.16 MB / 0.541 GB, free: 124.2 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001454/0.7704, allocations: 175.2 kB / 0.5412 GB, free: 123.9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.425/3.195, allocations: 0 / 0.5412 GB, free: 123.9 MB / 410.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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.RAM_res.mat does not exist to compare? outputFormat=mat