Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.RAM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_RAM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.RAM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_RAM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001144/0.001144, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 225.6 MB / 234.8 MB, free: 3.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001133/0.001133, allocations: 98.59 kB / 286.7 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.263e-05/2.264e-05, allocations: 4 kB / 343.8 MB, free: 8.156 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.139, allocations: 51.48 MB / 395.3 MB, free: 4.637 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4147/0.5537, allocations: 86.15 MB / 481.4 MB, free: 6.688 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002004/0.554, allocations: 73.09 kB / 481.5 MB, free: 6.652 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07664/0.6306, allocations: 39.55 MB / 0.5088 GB, free: 4.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.6307, allocations: 2.719 kB / 0.5088 GB, free: 4.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.791e-05/0.6307, allocations: 16 kB / 0.5088 GB, free: 4.754 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.001653/0.6324, allocations: 1.345 MB / 0.5102 GB, free: 3.316 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.6324, allocations: 8.031 kB / 0.5102 GB, free: 3.309 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002226/0.6327, allocations: 126.5 kB / 0.5103 GB, free: 3.184 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006892/0.6334, allocations: 464.7 kB / 0.5107 GB, free: 2.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.589e-05/0.6334, allocations: 12 kB / 0.5107 GB, free: 2.668 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.583e-05/0.6335, allocations: 20 kB / 0.5108 GB, free: 2.648 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005371/0.634, allocations: 448.1 kB / 0.5112 GB, free: 2.211 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006766/0.6347, allocations: 0.5626 MB / 0.5117 GB, free: 1.645 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.6347, allocations: 8 kB / 0.5117 GB, free: 1.637 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.322e-05/0.6348, allocations: 7.984 kB / 0.5117 GB, free: 1.629 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.6348, allocations: 4 kB / 0.5118 GB, free: 1.625 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001425/0.6362, allocations: 0.8675 MB / 0.5126 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006695/0.6369, allocations: 0.7133 MB / 0.5133 GB, free: 0 / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006322/0.6375, allocations: 0.6921 MB / 0.514 GB, free: 15.3 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.848e-06/0.6376, allocations: 0 / 0.514 GB, free: 15.3 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007286/0.6383, allocations: 0.7321 MB / 0.5147 GB, free: 14.54 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 3.777e-06/0.6383, allocations: 4 kB / 0.5147 GB, free: 14.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.001576/0.6399, allocations: 1.241 MB / 0.5159 GB, free: 13.29 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002289/0.6401, allocations: 338.7 kB / 0.5162 GB, free: 12.89 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001885/0.642, allocations: 1.239 MB / 0.5174 GB, free: 11.64 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.554e-05/0.6421, allocations: 41.7 kB / 0.5175 GB, free: 11.59 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002257/0.6423, allocations: 282 kB / 0.5177 GB, free: 11.32 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.6425, allocations: 90.91 kB / 0.5178 GB, free: 11.23 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.901e-05/0.6425, allocations: 7.984 kB / 0.5178 GB, free: 11.22 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.6426, allocations: 333.9 kB / 0.5182 GB, free: 10.89 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004573/0.6431, allocations: 448.2 kB / 0.5186 GB, free: 10.45 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004499/0.6435, allocations: 452.6 kB / 0.519 GB, free: 10 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004643/0.644, allocations: 364.1 kB / 0.5194 GB, free: 9.652 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.644, allocations: 0 / 0.5194 GB, free: 9.652 MB / 394.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001478/0.6455, allocations: 1.216 MB / 0.5205 GB, free: 8.43 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000209/0.6457, allocations: 299.2 kB / 0.5208 GB, free: 8.082 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.6458, allocations: 0 / 0.5208 GB, free: 8.082 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.6458, allocations: 0 / 0.5208 GB, free: 8.082 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.213e-05/0.6458, allocations: 8 kB / 0.5208 GB, free: 8.074 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.209e-06/0.6458, allocations: 3.938 kB / 0.5208 GB, free: 8.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003402/0.6462, allocations: 31.89 kB / 0.5209 GB, free: 8.039 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001345/0.6463, allocations: 102.9 kB / 0.521 GB, free: 7.941 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.0004006/0.6467, allocations: 477.3 kB / 0.5214 GB, free: 7.414 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001658/0.6484, allocations: 1.343 MB / 0.5227 GB, free: 6.062 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001513/0.6485, allocations: 126.5 kB / 0.5229 GB, free: 5.938 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004111/0.649, allocations: 184 kB / 0.523 GB, free: 5.75 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.649, allocations: 0 / 0.523 GB, free: 5.75 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-05/0.649, allocations: 7.984 kB / 0.523 GB, free: 5.742 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.649, allocations: 3.953 kB / 0.523 GB, free: 5.738 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002653/0.6517, allocations: 1.986 MB / 0.525 GB, free: 3.711 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.6517, allocations: 4.75 kB / 0.525 GB, free: 3.707 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.001e-05/0.6517, allocations: 0 / 0.525 GB, free: 3.707 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.6517, allocations: 0 / 0.525 GB, free: 3.707 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.71e-05/0.6518, allocations: 35.98 kB / 0.525 GB, free: 3.672 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.6518, allocations: 0 / 0.525 GB, free: 3.672 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.6518, allocations: 0 / 0.525 GB, free: 3.672 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001673/0.6535, allocations: 1.448 MB / 0.5264 GB, free: 2.207 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007313/0.6542, allocations: 0.4952 MB / 0.5269 GB, free: 1.691 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001962/0.6544, allocations: 69.64 kB / 0.527 GB, free: 1.625 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003075/0.6547, allocations: 27.97 kB / 0.527 GB, free: 1.598 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00111/0.6559, allocations: 0.628 MB / 0.5276 GB, free: 0.9688 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001459/0.656, allocations: 107.9 kB / 0.5277 GB, free: 0.8633 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001326/0.6574, allocations: 1.016 MB / 0.5287 GB, free: 15.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.6574, allocations: 0 / 0.5287 GB, free: 15.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006127/0.658, allocations: 187.9 kB / 0.5289 GB, free: 15.66 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.002535/0.6605, allocations: 2.268 MB / 0.5311 GB, free: 13.41 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001761/0.6623, allocations: 2.05 MB / 0.5331 GB, free: 11.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.6623, allocations: 0 / 0.5331 GB, free: 11.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001198/0.6635, allocations: 1.561 MB / 0.5346 GB, free: 9.582 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002779/0.6663, allocations: 0.7208 MB / 0.5353 GB, free: 8.887 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004282/0.6706, allocations: 2.488 MB / 0.5378 GB, free: 6.348 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001401/0.672, allocations: 1.154 MB / 0.5389 GB, free: 5.164 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004465/0.6725, allocations: 78.89 kB / 0.539 GB, free: 5.09 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003087/0.6728, allocations: 207.4 kB / 0.5392 GB, free: 4.887 MB / 410.7 MB Notification: Performance of SimCode: time 5.41e-07/0.6728, allocations: 0 / 0.5392 GB, free: 4.887 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0696/0.7424, allocations: 25.76 MB / 0.5643 GB, free: 10.99 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002484/0.7428, allocations: 162.9 kB / 0.5645 GB, free: 10.79 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.598/3.341, allocations: 0 / 0.5645 GB, free: 10.79 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_RAM_fmu --startTime=0 --stopTime=400 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_RAM.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.RAM_res.mat does not exist to compare? outputFormat=mat