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.001132/0.001132, allocations: 181.2 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.461/1.461, allocations: 205.4 MB / 223.1 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008854/0.0008855, allocations: 90.98 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002644/0.0002644, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2675, allocations: 47.58 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1036/0.3712, allocations: 85.08 MB / 461 MB, free: 11.56 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/0.3715, allocations: 71.97 kB / 461.1 MB, free: 11.49 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07985/0.4514, allocations: 39.33 MB / 0.4887 GB, free: 4.211 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4515, allocations: 0 / 0.4887 GB, free: 4.211 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.218e-05/0.4515, allocations: 16 kB / 0.4887 GB, free: 4.195 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.002786/0.4543, allocations: 1.556 MB / 0.4902 GB, free: 2.531 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.379e-05/0.4544, allocations: 8.031 kB / 0.4902 GB, free: 2.523 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001707/0.4546, allocations: 54.55 kB / 0.4903 GB, free: 2.461 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002659/0.4548, allocations: 122.5 kB / 0.4904 GB, free: 2.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009563/0.4558, allocations: 468.7 kB / 0.4908 GB, free: 1.832 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.976e-05/0.4559, allocations: 19.98 kB / 0.4908 GB, free: 1.812 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.37e-05/0.4559, allocations: 28.28 kB / 0.4909 GB, free: 1.785 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008886/0.4568, allocations: 0.5831 MB / 0.4914 GB, free: 1.195 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.4569, allocations: 8 kB / 0.4914 GB, free: 1.188 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.46e-05/0.4569, allocations: 12 kB / 0.4915 GB, free: 1.176 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.4569, allocations: 0 / 0.4915 GB, free: 1.176 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006013/0.4575, allocations: 467.8 kB / 0.4919 GB, free: 0.7188 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2578/0.7154, allocations: 0.9121 MB / 0.4928 GB, free: 103.1 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001834/0.7173, allocations: 0.7341 MB / 0.4935 GB, free: 103 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.37e-05/0.7173, allocations: 1.188 kB / 0.4935 GB, free: 103 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001229/0.7185, allocations: 0.7406 MB / 0.4942 GB, free: 102.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 3.517e-06/0.7185, allocations: 0 / 0.4942 GB, free: 102.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.003348/0.7219, allocations: 2.303 MB / 0.4965 GB, free: 102.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000203/0.7221, allocations: 333.6 kB / 0.4968 GB, free: 101.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002287/0.7244, allocations: 1.316 MB / 0.4981 GB, free: 101.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.829e-05/0.7245, allocations: 39.91 kB / 0.4981 GB, free: 101.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002269/0.7247, allocations: 286.2 kB / 0.4984 GB, free: 101.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.7248, allocations: 91.86 kB / 0.4985 GB, free: 101.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.389e-05/0.7249, allocations: 13.3 kB / 0.4985 GB, free: 101.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.429e-05/0.725, allocations: 320.5 kB / 0.4988 GB, free: 101.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006893/0.7257, allocations: 463.1 kB / 0.4992 GB, free: 101.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007198/0.7264, allocations: 499.4 kB / 0.4997 GB, free: 101.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007646/0.7272, allocations: 0.6556 MB / 0.5004 GB, free: 100.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.7272, allocations: 0 / 0.5004 GB, free: 100.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001809/0.729, allocations: 1.544 MB / 0.5019 GB, free: 100.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001874/0.7292, allocations: 303.6 kB / 0.5022 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.7292, allocations: 1.875 kB / 0.5022 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.25e-05/0.7292, allocations: 2.906 kB / 0.5022 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.821e-05/0.7293, allocations: 0 / 0.5022 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.7293, allocations: 6.125 kB / 0.5022 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003628/0.7297, allocations: 33.06 kB / 0.5022 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001417/0.7298, allocations: 101.9 kB / 0.5023 GB, free: 100.2 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.0007829/0.7306, allocations: 0.865 MB / 0.5031 GB, free: 99.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.7307, allocations: 135.2 kB / 0.5033 GB, free: 99.66 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002132/0.731, allocations: 188 kB / 0.5034 GB, free: 99.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.731, allocations: 0 / 0.5034 GB, free: 99.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.731, allocations: 0 / 0.5034 GB, free: 99.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.731, allocations: 3.266 kB / 0.5035 GB, free: 99.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002484/0.7335, allocations: 2.443 MB / 0.5058 GB, free: 98.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.7335, allocations: 0 / 0.5058 GB, free: 98.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.836e-06/0.7335, allocations: 6.953 kB / 0.5058 GB, free: 98.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.7335, allocations: 11.62 kB / 0.5059 GB, free: 98.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.268e-05/0.7336, allocations: 35.45 kB / 0.5059 GB, free: 98.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.7336, allocations: 0 / 0.5059 GB, free: 98.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.7336, allocations: 0 / 0.5059 GB, free: 98.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001727/0.7353, allocations: 1.855 MB / 0.5077 GB, free: 98.44 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000721/0.7361, allocations: 0.5054 MB / 0.5082 GB, free: 98.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001622/0.7362, allocations: 62.64 kB / 0.5083 GB, free: 98.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002764/0.7365, allocations: 29.2 kB / 0.5083 GB, free: 98.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009937/0.7375, allocations: 0.6342 MB / 0.5089 GB, free: 97.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001141/0.7377, allocations: 114.8 kB / 0.509 GB, free: 97.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001199/0.7389, allocations: 1.081 MB / 0.5101 GB, free: 97.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7389, allocations: 0 / 0.5101 GB, free: 97.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006007/0.7395, allocations: 182.6 kB / 0.5102 GB, free: 97.55 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.002539/0.742, allocations: 2.669 MB / 0.5128 GB, free: 96.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001737/0.7438, allocations: 2.097 MB / 0.5149 GB, free: 94.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.7438, allocations: 4.125 kB / 0.5149 GB, free: 94.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001047/0.7448, allocations: 1.601 MB / 0.5165 GB, free: 93.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002272/0.7471, allocations: 0.7275 MB / 0.5172 GB, free: 93.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00782/0.755, allocations: 7.563 MB / 0.5246 GB, free: 87.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007647/0.7558, allocations: 1.151 MB / 0.5257 GB, free: 86.03 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003612/0.7561, allocations: 73.17 kB / 0.5258 GB, free: 85.97 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001708/0.7563, allocations: 209.4 kB / 0.526 GB, free: 85.78 MB / 378.7 MB Notification: Performance of SimCode: time 1.473e-06/0.7563, allocations: 0 / 0.526 GB, free: 85.78 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04012/0.7964, allocations: 27.09 MB / 0.5524 GB, free: 59.52 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/0.7967, allocations: 207.4 kB / 0.5526 GB, free: 59.28 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.661/3.458, allocations: 0 / 0.5526 GB, free: 59.28 MB / 378.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