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.001132/0.001132, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.527/1.527, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008719/0.0008719, allocations: 82.59 kB / 292.1 MB, free: 5.953 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.505e-05/3.515e-05, allocations: 7.984 kB / 350.6 MB, free: 2.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.108, allocations: 51.48 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3433/0.4513, allocations: 86.82 MB / 488.9 MB, free: 2.605 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001739/0.4515, allocations: 80.8 kB / 489 MB, free: 2.566 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08106/0.5326, allocations: 39.91 MB / 0.5165 GB, free: 12.58 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5326, allocations: 0 / 0.5165 GB, free: 12.58 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.485e-05/0.5327, allocations: 16 kB / 0.5165 GB, free: 12.57 MB / 394.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.001981/0.5347, allocations: 1.348 MB / 0.5179 GB, free: 11.12 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.5347, allocations: 8.594 kB / 0.5179 GB, free: 11.11 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001527/0.5349, allocations: 54.55 kB / 0.5179 GB, free: 11.05 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002552/0.5351, allocations: 122.5 kB / 0.518 GB, free: 10.93 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008178/0.536, allocations: 472.6 kB / 0.5185 GB, free: 10.42 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.26e-05/0.536, allocations: 19.98 kB / 0.5185 GB, free: 10.4 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.176e-05/0.5361, allocations: 28.33 kB / 0.5185 GB, free: 10.37 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008024/0.5369, allocations: 0.5743 MB / 0.5191 GB, free: 9.793 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-06/0.5369, allocations: 0 / 0.5191 GB, free: 9.793 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.798e-05/0.537, allocations: 11.98 kB / 0.5191 GB, free: 9.781 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.537, allocations: 0 / 0.5191 GB, free: 9.781 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005743/0.5376, allocations: 466.6 kB / 0.5196 GB, free: 9.328 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/0.5393, allocations: 0.9078 MB / 0.5204 GB, free: 8.375 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008072/0.5402, allocations: 0.7172 MB / 0.5211 GB, free: 7.648 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007366/0.5409, allocations: 0.7116 MB / 0.5218 GB, free: 6.934 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.34e-05/0.5409, allocations: 1.031 kB / 0.5218 GB, free: 6.934 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008683/0.5418, allocations: 0.7283 MB / 0.5225 GB, free: 6.168 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 1.793e-06/0.5418, allocations: 0 / 0.5225 GB, free: 6.168 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.001853/0.5437, allocations: 1.565 MB / 0.5241 GB, free: 4.543 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002066/0.5439, allocations: 334.7 kB / 0.5244 GB, free: 4.148 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002077/0.546, allocations: 1.315 MB / 0.5257 GB, free: 2.824 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.752e-05/0.5461, allocations: 37.7 kB / 0.5257 GB, free: 2.781 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002649/0.5464, allocations: 286 kB / 0.526 GB, free: 2.496 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.5465, allocations: 86.91 kB / 0.5261 GB, free: 2.41 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.74e-05/0.5465, allocations: 8 kB / 0.5261 GB, free: 2.402 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.5467, allocations: 326 kB / 0.5264 GB, free: 2.078 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000561/0.5473, allocations: 462.2 kB / 0.5268 GB, free: 1.625 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005216/0.5478, allocations: 468.6 kB / 0.5273 GB, free: 1.168 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006147/0.5484, allocations: 0.6494 MB / 0.5279 GB, free: 476 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.5484, allocations: 0 / 0.5279 GB, free: 476 kB / 394.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001643/0.5501, allocations: 1.52 MB / 0.5294 GB, free: 14.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002168/0.5503, allocations: 311.2 kB / 0.5297 GB, free: 14.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.5503, allocations: 0 / 0.5297 GB, free: 14.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.5503, allocations: 3.953 kB / 0.5297 GB, free: 14.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.889e-05/0.5504, allocations: 4 kB / 0.5297 GB, free: 14.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.5504, allocations: 0 / 0.5297 GB, free: 14.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003932/0.5508, allocations: 39.88 kB / 0.5297 GB, free: 14.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001365/0.5509, allocations: 102.9 kB / 0.5298 GB, free: 14.38 MB / 410.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.0004048/0.5514, allocations: 473.2 kB / 0.5303 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001701/0.5515, allocations: 130.5 kB / 0.5304 GB, free: 13.72 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004099/0.552, allocations: 179.7 kB / 0.5306 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.552, allocations: 3.984 kB / 0.5306 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.974e-06/0.552, allocations: 7.953 kB / 0.5306 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.552, allocations: 0 / 0.5306 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003089/0.5551, allocations: 2.42 MB / 0.533 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.5551, allocations: 0 / 0.533 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.209e-05/0.5551, allocations: 0 / 0.533 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.5551, allocations: 5.594 kB / 0.533 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.553e-05/0.5552, allocations: 35.94 kB / 0.533 GB, free: 10.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.5552, allocations: 8 kB / 0.533 GB, free: 10.96 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.5552, allocations: 0 / 0.533 GB, free: 10.96 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002087/0.5573, allocations: 1.822 MB / 0.5348 GB, free: 9.066 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009153/0.5582, allocations: 0.4952 MB / 0.5353 GB, free: 8.551 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002429/0.5585, allocations: 63.95 kB / 0.5353 GB, free: 8.488 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003782/0.5589, allocations: 31.88 kB / 0.5354 GB, free: 8.457 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001215/0.5601, allocations: 0.6358 MB / 0.536 GB, free: 7.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001374/0.5603, allocations: 104 kB / 0.5361 GB, free: 7.719 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001662/0.5619, allocations: 1.068 MB / 0.5371 GB, free: 6.645 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5619, allocations: 3.938 kB / 0.5371 GB, free: 6.641 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006765/0.5626, allocations: 192 kB / 0.5373 GB, free: 6.453 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.003172/0.5658, allocations: 2.645 MB / 0.5399 GB, free: 3.785 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002036/0.5679, allocations: 2.089 MB / 0.5419 GB, free: 1.586 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.5679, allocations: 0 / 0.5419 GB, free: 1.586 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00139/0.5693, allocations: 1.58 MB / 0.5435 GB, free: 15.89 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002957/0.5722, allocations: 0.73 MB / 0.5442 GB, free: 15.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004241/0.5765, allocations: 2.524 MB / 0.5467 GB, free: 12.61 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008669/0.5774, allocations: 1.147 MB / 0.5478 GB, free: 11.43 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003099/0.5777, allocations: 66.34 kB / 0.5478 GB, free: 11.38 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002089/0.5779, allocations: 215.3 kB / 0.548 GB, free: 11.16 MB / 426.7 MB Notification: Performance of SimCode: time 1.512e-06/0.5779, allocations: 0 / 0.548 GB, free: 11.16 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2662/0.8441, allocations: 27.16 MB / 0.5746 GB, free: 117.4 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001394/0.8443, allocations: 180.5 kB / 0.5747 GB, free: 117.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.49/3.334, allocations: 0 / 0.5747 GB, free: 117.1 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