Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.RAM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.RAM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_RAM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.RAM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_RAM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001015/0.001016, allocations: 180.3 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.582/1.582, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008847/0.0008847, allocations: 82.7 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.845e-05/1.847e-05, allocations: 4 kB / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1137, allocations: 47.59 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3872/0.5009, allocations: 84.56 MB / 447.7 MB, free: 10.8 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002055/0.5012, allocations: 82.14 kB / 447.8 MB, free: 10.76 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07686/0.5781, allocations: 39.03 MB / 486.8 MB, free: 9.965 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.5781, allocations: 0 / 486.8 MB, free: 9.965 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.002e-05/0.5782, allocations: 12 kB / 486.9 MB, free: 9.953 MB / 362.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.001454/0.5796, allocations: 1.348 MB / 488.2 MB, free: 8.504 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.5797, allocations: 8.031 kB / 488.2 MB, free: 8.496 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001495/0.5798, allocations: 126.5 kB / 488.3 MB, free: 8.371 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005921/0.5804, allocations: 468.6 kB / 488.8 MB, free: 7.863 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.406e-05/0.5805, allocations: 12 kB / 488.8 MB, free: 7.852 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.85e-05/0.5805, allocations: 20 kB / 488.8 MB, free: 7.832 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005102/0.5811, allocations: 456 kB / 489.3 MB, free: 7.387 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006754/0.5817, allocations: 0.5521 MB / 489.8 MB, free: 6.828 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.5818, allocations: 0 / 489.8 MB, free: 6.828 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.026e-05/0.5818, allocations: 7.984 kB / 489.8 MB, free: 6.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.5818, allocations: 4 kB / 489.8 MB, free: 6.816 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001427/0.5833, allocations: 0.8752 MB / 490.7 MB, free: 5.906 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006988/0.584, allocations: 0.7133 MB / 491.4 MB, free: 5.184 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006141/0.5846, allocations: 0.6921 MB / 492.1 MB, free: 4.488 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.16e-05/0.5846, allocations: 0 / 492.1 MB, free: 4.488 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007767/0.5854, allocations: 0.7281 MB / 492.8 MB, free: 3.723 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 3.597e-06/0.5854, allocations: 3.984 kB / 492.8 MB, free: 3.719 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.001592/0.587, allocations: 1.257 MB / 494.1 MB, free: 2.453 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001998/0.5873, allocations: 338.6 kB / 494.4 MB, free: 2.055 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001738/0.589, allocations: 1.247 MB / 495.7 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.037e-05/0.5891, allocations: 37.7 kB / 495.7 MB, free: 0.7578 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002347/0.5893, allocations: 278.1 kB / 496 MB, free: 496 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.898e-05/0.5894, allocations: 86.92 kB / 496.1 MB, free: 408 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-05/0.5895, allocations: 8 kB / 496.1 MB, free: 400 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.5896, allocations: 329.9 kB / 496.4 MB, free: 64 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004864/0.5901, allocations: 452.2 kB / 496.8 MB, free: 15.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004779/0.5906, allocations: 456.3 kB / 497.3 MB, free: 15.17 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004881/0.5911, allocations: 357.6 kB / 497.6 MB, free: 14.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.5911, allocations: 0 / 497.6 MB, free: 14.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001675/0.5928, allocations: 1.22 MB / 498.9 MB, free: 13.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003198/0.5931, allocations: 299.2 kB / 499.1 MB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.5931, allocations: 0 / 499.1 MB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.805e-05/0.5932, allocations: 4 kB / 499.1 MB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.466e-05/0.5932, allocations: 4 kB / 499.2 MB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.5932, allocations: 3.938 kB / 499.2 MB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004452/0.5937, allocations: 31.89 kB / 499.2 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/0.5939, allocations: 103.9 kB / 499.3 MB, free: 13.1 MB / 378.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.0004083/0.5943, allocations: 465.3 kB / 499.7 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001638/0.5959, allocations: 1.347 MB / 0.4893 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.5961, allocations: 126.5 kB / 0.4895 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004511/0.5965, allocations: 184 kB / 0.4896 GB, free: 10.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.5965, allocations: 4 kB / 0.4896 GB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.5965, allocations: 0 / 0.4896 GB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.5965, allocations: 3.953 kB / 0.4897 GB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00238/0.5989, allocations: 1.993 MB / 0.4916 GB, free: 8.875 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.599, allocations: 4 kB / 0.4916 GB, free: 8.871 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.699e-05/0.599, allocations: 11.92 kB / 0.4916 GB, free: 8.859 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.144e-06/0.599, allocations: 4 kB / 0.4916 GB, free: 8.855 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.625e-05/0.5991, allocations: 27.98 kB / 0.4916 GB, free: 8.828 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/0.5991, allocations: 4 kB / 0.4916 GB, free: 8.824 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.5991, allocations: 0 / 0.4916 GB, free: 8.824 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001711/0.6008, allocations: 1.446 MB / 0.4931 GB, free: 7.363 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007705/0.6016, allocations: 0.4991 MB / 0.4935 GB, free: 6.844 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001864/0.6018, allocations: 63.95 kB / 0.4936 GB, free: 6.781 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003304/0.6021, allocations: 27.98 kB / 0.4936 GB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001083/0.6032, allocations: 0.628 MB / 0.4942 GB, free: 6.121 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001261/0.6033, allocations: 104 kB / 0.4943 GB, free: 6.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001329/0.6047, allocations: 1.016 MB / 0.4953 GB, free: 5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6047, allocations: 0 / 0.4953 GB, free: 5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006326/0.6053, allocations: 195.9 kB / 0.4955 GB, free: 4.809 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) * 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.002547/0.6079, allocations: 2.247 MB / 0.4977 GB, free: 2.539 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001882/0.6098, allocations: 2.041 MB / 0.4997 GB, free: 396 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.6098, allocations: 0 / 0.4997 GB, free: 396 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001239/0.611, allocations: 1.576 MB / 0.5013 GB, free: 14.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00308/0.6141, allocations: 0.7099 MB / 0.5019 GB, free: 13.99 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004517/0.6187, allocations: 2.492 MB / 0.5044 GB, free: 11.45 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001023/0.6197, allocations: 1.143 MB / 0.5055 GB, free: 10.28 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004636/0.6202, allocations: 83.11 kB / 0.5056 GB, free: 10.19 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002165/0.6204, allocations: 215.3 kB / 0.5058 GB, free: 9.98 MB / 394.7 MB Notification: Performance of SimCode: time 1.262e-06/0.6204, allocations: 0 / 0.5058 GB, free: 9.98 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.242/0.8624, allocations: 25.74 MB / 0.5309 GB, free: 128.9 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001289/0.8626, allocations: 158.1 kB / 0.5311 GB, free: 128.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.583/3.446, allocations: 0 / 0.5311 GB, free: 128.7 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.RAM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.RAM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.RAM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.RAM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.RAM_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_RAM_fmu --startTime=0 --stopTime=400 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_RAM.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.RAM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.RAM_res.mat does not exist to compare? outputFormat=mat