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.001327/0.001327, allocations: 175.6 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 221.3 MB / 235.5 MB, free: 2.941 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.0008896/0.0008896, allocations: 90.03 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.674e-05/3.686e-05, allocations: 4 kB / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1034, allocations: 50.4 MB / 394.3 MB, free: 1.785 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.333/0.4364, allocations: 86.02 MB / 480.4 MB, free: 1.465 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002419/0.4367, allocations: 67.97 kB / 480.4 MB, free: 1.398 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08305/0.5198, allocations: 39.86 MB / 0.5081 GB, free: 9.605 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.5198, allocations: 7.938 kB / 0.5081 GB, free: 9.598 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.626e-05/0.5199, allocations: 12 kB / 0.5081 GB, free: 9.586 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.001666/0.5215, allocations: 1.344 MB / 0.5094 GB, free: 8.141 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.5216, allocations: 12.03 kB / 0.5094 GB, free: 8.129 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.819e-05/0.5217, allocations: 58.53 kB / 0.5095 GB, free: 8.062 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001699/0.5219, allocations: 126.8 kB / 0.5096 GB, free: 7.938 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00069/0.5226, allocations: 464.6 kB / 0.5101 GB, free: 7.434 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.809e-05/0.5226, allocations: 16 kB / 0.5101 GB, free: 7.418 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.65e-05/0.5227, allocations: 20 kB / 0.5101 GB, free: 7.398 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007785/0.5235, allocations: 0.5716 MB / 0.5106 GB, free: 6.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.5235, allocations: 3.953 kB / 0.5107 GB, free: 6.816 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.92e-05/0.5235, allocations: 19.92 kB / 0.5107 GB, free: 6.797 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.5236, allocations: 4 kB / 0.5107 GB, free: 6.793 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005447/0.5241, allocations: 459.8 kB / 0.5111 GB, free: 6.344 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001461/0.5256, allocations: 0.9156 MB / 0.512 GB, free: 5.383 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007267/0.5263, allocations: 0.7211 MB / 0.5127 GB, free: 4.652 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006784/0.527, allocations: 0.7077 MB / 0.5134 GB, free: 3.941 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.527, allocations: 8 kB / 0.5134 GB, free: 3.934 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008028/0.5279, allocations: 0.7243 MB / 0.5141 GB, free: 3.172 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 1.964e-06/0.5279, allocations: 0 / 0.5141 GB, free: 3.172 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.001887/0.5298, allocations: 1.557 MB / 0.5156 GB, free: 1.551 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001948/0.53, allocations: 338.7 kB / 0.516 GB, free: 1.152 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00188/0.5319, allocations: 1.307 MB / 0.5172 GB, free: 15.84 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.278e-05/0.5319, allocations: 41.7 kB / 0.5173 GB, free: 15.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002448/0.5322, allocations: 278 kB / 0.5175 GB, free: 15.51 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.5323, allocations: 86.97 kB / 0.5176 GB, free: 15.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.905e-05/0.5323, allocations: 15.98 kB / 0.5176 GB, free: 15.41 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.5325, allocations: 326 kB / 0.5179 GB, free: 15.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005244/0.533, allocations: 464.2 kB / 0.5184 GB, free: 14.63 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005118/0.5335, allocations: 460.6 kB / 0.5188 GB, free: 14.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006584/0.5342, allocations: 0.6533 MB / 0.5195 GB, free: 13.47 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.5342, allocations: 0 / 0.5195 GB, free: 13.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001838/0.536, allocations: 1.533 MB / 0.521 GB, free: 11.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002312/0.5363, allocations: 303.2 kB / 0.5213 GB, free: 11.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.5363, allocations: 0 / 0.5213 GB, free: 11.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.5363, allocations: 4 kB / 0.5213 GB, free: 11.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.22e-05/0.5364, allocations: 7.984 kB / 0.5213 GB, free: 11.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.5364, allocations: 0 / 0.5213 GB, free: 11.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003831/0.5368, allocations: 35.83 kB / 0.5213 GB, free: 11.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001524/0.5369, allocations: 104 kB / 0.5214 GB, free: 11.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.0004271/0.5374, allocations: 473.3 kB / 0.5219 GB, free: 10.86 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.5375, allocations: 130.4 kB / 0.522 GB, free: 10.73 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004405/0.538, allocations: 187.6 kB / 0.5222 GB, free: 10.54 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.538, allocations: 4 kB / 0.5222 GB, free: 10.54 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.538, allocations: 0 / 0.5222 GB, free: 10.54 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.538, allocations: 0 / 0.5222 GB, free: 10.54 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00292/0.5409, allocations: 2.424 MB / 0.5245 GB, free: 8.008 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.541, allocations: 0 / 0.5245 GB, free: 8.008 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.2e-05/0.541, allocations: 0 / 0.5245 GB, free: 8.008 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.541, allocations: 0 / 0.5245 GB, free: 8.008 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.193e-05/0.5411, allocations: 35.97 kB / 0.5246 GB, free: 7.973 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.5411, allocations: 0 / 0.5246 GB, free: 7.973 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.5411, allocations: 3.984 kB / 0.5246 GB, free: 7.969 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002129/0.5432, allocations: 1.842 MB / 0.5264 GB, free: 6.055 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009172/0.5442, allocations: 0.4952 MB / 0.5268 GB, free: 5.539 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001832/0.5444, allocations: 67.95 kB / 0.5269 GB, free: 5.473 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003344/0.5447, allocations: 31.91 kB / 0.5269 GB, free: 5.441 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00123/0.5459, allocations: 0.6319 MB / 0.5276 GB, free: 4.809 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001419/0.5461, allocations: 103.9 kB / 0.5277 GB, free: 4.707 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001654/0.5477, allocations: 1.064 MB / 0.5287 GB, free: 3.637 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5478, allocations: 0 / 0.5287 GB, free: 3.637 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000734/0.5485, allocations: 199.9 kB / 0.5289 GB, free: 3.441 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.003183/0.5517, allocations: 2.65 MB / 0.5315 GB, free: 0.7305 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002128/0.5538, allocations: 2.08 MB / 0.5335 GB, free: 14.54 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.5539, allocations: 0 / 0.5335 GB, free: 14.54 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001405/0.5553, allocations: 1.584 MB / 0.5351 GB, free: 12.84 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002978/0.5583, allocations: 0.7165 MB / 0.5358 GB, free: 12.15 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004584/0.5629, allocations: 2.516 MB / 0.5382 GB, free: 9.582 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/0.5639, allocations: 1.151 MB / 0.5393 GB, free: 8.402 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004748/0.5644, allocations: 70.88 kB / 0.5394 GB, free: 8.336 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002122/0.5646, allocations: 211.4 kB / 0.5396 GB, free: 8.129 MB / 426.7 MB Notification: Performance of SimCode: time 1.332e-06/0.5646, allocations: 0 / 0.5396 GB, free: 8.129 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2676/0.8323, allocations: 27.16 MB / 0.5661 GB, free: 121.9 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001534/0.8324, allocations: 181.6 kB / 0.5663 GB, free: 121.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.43/3.263, allocations: 1.094 kB / 0.5663 GB, free: 121.7 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