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.001079/0.001079, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.185/1.185, allocations: 227.2 MB / 245 MB, free: 5.961 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008346/0.0008345, allocations: 104.1 kB / 297.3 MB, free: 5.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002316/0.0002316, allocations: 8 kB / 358 MB, free: 9.242 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2022/0.2025, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09635/0.2989, allocations: 86.89 MB / 496.4 MB, free: 3.684 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002165/0.2991, allocations: 75.97 kB / 496.5 MB, free: 3.609 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2331/0.5322, allocations: 39.84 MB / 0.5237 GB, free: 88.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.5322, allocations: 3.938 kB / 0.5237 GB, free: 88.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.977e-05/0.5323, allocations: 12 kB / 0.5237 GB, free: 88.44 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.001598/0.5339, allocations: 1.558 MB / 0.5253 GB, free: 86.78 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.5339, allocations: 12.03 kB / 0.5253 GB, free: 86.77 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001217/0.5341, allocations: 54.55 kB / 0.5253 GB, free: 86.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001499/0.5342, allocations: 122.5 kB / 0.5254 GB, free: 86.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006921/0.5349, allocations: 479.8 kB / 0.5259 GB, free: 86.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.411e-05/0.535, allocations: 16 kB / 0.5259 GB, free: 86.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.004e-05/0.535, allocations: 20 kB / 0.5259 GB, free: 86.06 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000651/0.5357, allocations: 0.5754 MB / 0.5265 GB, free: 85.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.5357, allocations: 0 / 0.5265 GB, free: 85.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.127e-05/0.5357, allocations: 19.92 kB / 0.5265 GB, free: 85.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.5358, allocations: 4.344 kB / 0.5265 GB, free: 85.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004444/0.5362, allocations: 475.7 kB / 0.527 GB, free: 84.99 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001331/0.5376, allocations: 0.9143 MB / 0.5279 GB, free: 84.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005573/0.5381, allocations: 0.7249 MB / 0.5286 GB, free: 83.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.929e-06/0.5381, allocations: 4 kB / 0.5286 GB, free: 83.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006152/0.5388, allocations: 0.7437 MB / 0.5293 GB, free: 82.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 1.573e-06/0.5388, allocations: 0 / 0.5293 GB, free: 82.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.001869/0.5407, allocations: 2.298 MB / 0.5316 GB, free: 80.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.649e-05/0.5407, allocations: 334.7 kB / 0.5319 GB, free: 79.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001373/0.5421, allocations: 1.317 MB / 0.5332 GB, free: 78.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.038e-05/0.5422, allocations: 37.64 kB / 0.5332 GB, free: 78.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/0.5424, allocations: 286 kB / 0.5335 GB, free: 78.06 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.84e-05/0.5424, allocations: 90.7 kB / 0.5336 GB, free: 77.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.165e-05/0.5425, allocations: 15.98 kB / 0.5336 GB, free: 77.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.282e-05/0.5425, allocations: 322 kB / 0.5339 GB, free: 77.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000416/0.5429, allocations: 460.1 kB / 0.5343 GB, free: 77.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004247/0.5434, allocations: 0.495 MB / 0.5348 GB, free: 76.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004347/0.5438, allocations: 0.6475 MB / 0.5354 GB, free: 75.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.5438, allocations: 3.953 kB / 0.5354 GB, free: 75.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001249/0.5451, allocations: 1.541 MB / 0.5369 GB, free: 74.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000117/0.5452, allocations: 307.2 kB / 0.5372 GB, free: 74.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.5452, allocations: 0 / 0.5372 GB, free: 74.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.5452, allocations: 0 / 0.5372 GB, free: 74.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.192e-05/0.5453, allocations: 8 kB / 0.5372 GB, free: 74.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.139e-06/0.5453, allocations: 0 / 0.5372 GB, free: 74.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003057/0.5456, allocations: 35.88 kB / 0.5373 GB, free: 73.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/0.5457, allocations: 104 kB / 0.5374 GB, free: 73.88 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.0006986/0.5464, allocations: 0.8665 MB / 0.5382 GB, free: 72.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.5465, allocations: 134.5 kB / 0.5383 GB, free: 72.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002166/0.5468, allocations: 187.9 kB / 0.5385 GB, free: 72.63 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.5468, allocations: 0 / 0.5385 GB, free: 72.63 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.5468, allocations: 0 / 0.5385 GB, free: 72.63 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.5468, allocations: 0 / 0.5385 GB, free: 72.63 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002089/0.5489, allocations: 2.443 MB / 0.5409 GB, free: 70.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.5489, allocations: 3.984 kB / 0.5409 GB, free: 70.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.717e-06/0.5489, allocations: 0 / 0.5409 GB, free: 70.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.5489, allocations: 0 / 0.5409 GB, free: 70.08 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.504e-05/0.549, allocations: 35.98 kB / 0.5409 GB, free: 70.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.549, allocations: 0 / 0.5409 GB, free: 70.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.549, allocations: 7.984 kB / 0.541 GB, free: 70.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001506/0.5505, allocations: 1.864 MB / 0.5428 GB, free: 68.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006806/0.5512, allocations: 0.4991 MB / 0.5433 GB, free: 67.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001603/0.5514, allocations: 59.95 kB / 0.5433 GB, free: 67.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000296/0.5517, allocations: 27.98 kB / 0.5433 GB, free: 67.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008603/0.5525, allocations: 0.6319 MB / 0.544 GB, free: 66.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/0.5526, allocations: 111.9 kB / 0.5441 GB, free: 66.76 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001061/0.5537, allocations: 1.082 MB / 0.5451 GB, free: 65.67 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5537, allocations: 0 / 0.5451 GB, free: 65.67 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005572/0.5543, allocations: 186 kB / 0.5453 GB, free: 65.49 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.002245/0.5565, allocations: 2.685 MB / 0.5479 GB, free: 62.78 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001381/0.5579, allocations: 2.103 MB / 0.55 GB, free: 60.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.5579, allocations: 0 / 0.55 GB, free: 60.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008923/0.5588, allocations: 1.596 MB / 0.5515 GB, free: 58.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002143/0.561, allocations: 0.7244 MB / 0.5522 GB, free: 58.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00756/0.5686, allocations: 7.575 MB / 0.5596 GB, free: 50.49 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006192/0.5692, allocations: 1.146 MB / 0.5608 GB, free: 49.32 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002863/0.5695, allocations: 74.86 kB / 0.5608 GB, free: 49.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001493/0.5697, allocations: 207.4 kB / 0.561 GB, free: 49.05 MB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.5697, allocations: 0 / 0.561 GB, free: 49.05 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03696/0.6066, allocations: 27.1 MB / 0.5875 GB, free: 21.89 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001412/0.6068, allocations: 204.3 kB / 0.5877 GB, free: 21.65 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.395/3.002, allocations: 0 / 0.5877 GB, free: 21.65 MB / 378.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