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.00107/0.00107, allocations: 177.1 kB / 8.35 MB, free: 0.7266 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.477/1.477, allocations: 221.5 MB / 230.3 MB, free: 7.523 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.001176/0.001177, allocations: 86 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.254e-05/2.253e-05, allocations: 4 kB / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1092, allocations: 50.42 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3035/0.4127, allocations: 85.34 MB / 472.9 MB, free: 9.367 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/0.413, allocations: 75.95 kB / 473 MB, free: 9.293 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1072/0.5202, allocations: 39.5 MB / 0.5005 GB, free: 1.883 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.5203, allocations: 0 / 0.5005 GB, free: 1.883 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.604e-05/0.5203, allocations: 12 kB / 0.5005 GB, free: 1.871 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.001331/0.5216, allocations: 1.34 MB / 0.5018 GB, free: 440 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.5217, allocations: 11.97 kB / 0.5018 GB, free: 428 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.5219, allocations: 126.8 kB / 0.5019 GB, free: 300 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006466/0.5225, allocations: 468.6 kB / 0.5024 GB, free: 15.79 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.09e-05/0.5226, allocations: 20 kB / 0.5024 GB, free: 15.77 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.889e-05/0.5227, allocations: 19.98 kB / 0.5024 GB, free: 15.75 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005141/0.5232, allocations: 443.8 kB / 0.5028 GB, free: 15.31 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006792/0.5239, allocations: 0.5637 MB / 0.5034 GB, free: 14.74 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.5239, allocations: 3.953 kB / 0.5034 GB, free: 14.74 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.558e-05/0.5239, allocations: 4 kB / 0.5034 GB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.5239, allocations: 7.938 kB / 0.5034 GB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001386/0.5253, allocations: 0.8675 MB / 0.5042 GB, free: 13.82 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007101/0.5261, allocations: 0.7171 MB / 0.5049 GB, free: 13.1 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006231/0.5267, allocations: 0.6961 MB / 0.5056 GB, free: 12.4 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.573e-05/0.5267, allocations: 4 kB / 0.5056 GB, free: 12.39 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007964/0.5275, allocations: 0.7244 MB / 0.5063 GB, free: 11.63 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 3.337e-06/0.5275, allocations: 0 / 0.5063 GB, free: 11.63 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.00175/0.5293, allocations: 1.242 MB / 0.5075 GB, free: 10.38 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002077/0.5295, allocations: 346.6 kB / 0.5079 GB, free: 9.977 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00174/0.5313, allocations: 1.247 MB / 0.5091 GB, free: 8.723 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.774e-05/0.5313, allocations: 33.7 kB / 0.5091 GB, free: 8.684 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002319/0.5316, allocations: 278.1 kB / 0.5094 GB, free: 8.41 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/0.5317, allocations: 82.98 kB / 0.5095 GB, free: 8.328 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.178e-05/0.5317, allocations: 15.98 kB / 0.5095 GB, free: 8.312 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.5319, allocations: 318 kB / 0.5098 GB, free: 7.996 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004879/0.5324, allocations: 456.2 kB / 0.5102 GB, free: 7.547 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004684/0.5329, allocations: 452.5 kB / 0.5106 GB, free: 7.105 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004623/0.5333, allocations: 365.7 kB / 0.511 GB, free: 6.75 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.5333, allocations: 3.938 kB / 0.511 GB, free: 6.746 MB / 394.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001487/0.5348, allocations: 1.213 MB / 0.5122 GB, free: 5.527 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002267/0.5351, allocations: 303.2 kB / 0.5125 GB, free: 5.176 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.5351, allocations: 0 / 0.5125 GB, free: 5.176 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.5351, allocations: 4 kB / 0.5125 GB, free: 5.172 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.675e-05/0.5351, allocations: 0 / 0.5125 GB, free: 5.172 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.289e-06/0.5352, allocations: 0 / 0.5125 GB, free: 5.172 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000383/0.5355, allocations: 43.75 kB / 0.5125 GB, free: 5.129 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000188/0.5357, allocations: 103.9 kB / 0.5126 GB, free: 5.027 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.00044/0.5362, allocations: 477.1 kB / 0.5131 GB, free: 4.496 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001731/0.5379, allocations: 1.335 MB / 0.5144 GB, free: 3.152 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/0.5381, allocations: 126.5 kB / 0.5145 GB, free: 3.027 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005272/0.5386, allocations: 191.9 kB / 0.5147 GB, free: 2.832 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.5386, allocations: 4 kB / 0.5147 GB, free: 2.828 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.5386, allocations: 0 / 0.5147 GB, free: 2.828 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.5387, allocations: 0 / 0.5147 GB, free: 2.828 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002481/0.5411, allocations: 1.993 MB / 0.5166 GB, free: 0.793 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.5412, allocations: 0 / 0.5166 GB, free: 0.793 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.412e-05/0.5412, allocations: 0 / 0.5166 GB, free: 0.793 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.952e-06/0.5412, allocations: 8 kB / 0.5166 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.852e-05/0.5413, allocations: 27.98 kB / 0.5167 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.5413, allocations: 0 / 0.5167 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.5413, allocations: 4 kB / 0.5167 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001653/0.5429, allocations: 1.452 MB / 0.5181 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007563/0.5437, allocations: 0.4991 MB / 0.5186 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001836/0.5439, allocations: 63.95 kB / 0.5186 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003241/0.5442, allocations: 31.97 kB / 0.5187 GB, free: 14.67 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001145/0.5454, allocations: 0.6241 MB / 0.5193 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001339/0.5455, allocations: 107.9 kB / 0.5194 GB, free: 13.94 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001373/0.5469, allocations: 1.008 MB / 0.5204 GB, free: 12.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.5469, allocations: 4 kB / 0.5204 GB, free: 12.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006694/0.5476, allocations: 187.9 kB / 0.5205 GB, free: 12.74 MB / 410.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.002662/0.5503, allocations: 2.275 MB / 0.5228 GB, free: 10.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001902/0.5522, allocations: 2.048 MB / 0.5248 GB, free: 8.297 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.5522, allocations: 0 / 0.5248 GB, free: 8.297 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001327/0.5535, allocations: 1.569 MB / 0.5263 GB, free: 6.617 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003159/0.5567, allocations: 0.7144 MB / 0.527 GB, free: 5.922 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00433/0.5611, allocations: 2.488 MB / 0.5294 GB, free: 3.383 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008058/0.5619, allocations: 1.151 MB / 0.5306 GB, free: 2.203 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003238/0.5622, allocations: 79.11 kB / 0.5306 GB, free: 2.125 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000203/0.5624, allocations: 211.4 kB / 0.5308 GB, free: 1.918 MB / 410.7 MB Notification: Performance of SimCode: time 8.31e-07/0.5624, allocations: 0 / 0.5308 GB, free: 1.918 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2495/0.812, allocations: 25.75 MB / 0.556 GB, free: 129.3 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002141/0.8122, allocations: 164.6 kB / 0.5561 GB, free: 129.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.828/3.64, allocations: 1.062 kB / 0.5561 GB, free: 129.1 MB / 426.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