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: translateModel(Modelica.Electrical.Digital.Examples.RAM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATRAM.dataOut.1.|dLATRAM.dataOut.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM") translateModel(Modelica.Electrical.Digital.Examples.RAM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATRAM.dataOut.1.|dLATRAM.dataOut.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009258/0.0009259, allocations: 184.2 kB / 8.136 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.207/1.207, allocations: 221.4 MB / 229.9 MB, free: 3.074 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.001153/0.001153, allocations: 94.94 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.023e-06/7.043e-06, allocations: 0 / 336.5 MB, free: 9.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1864/0.1864, allocations: 50.4 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08714/0.2736, allocations: 85.33 MB / 472.2 MB, free: 1.465 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002041/0.2739, allocations: 71.95 kB / 472.3 MB, free: 1.395 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.2059/0.4797, allocations: 40.38 MB / 0.5007 GB, free: 99.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.527e-05/0.4798, allocations: 17.84 kB / 0.5007 GB, free: 99.82 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.0009818/0.4808, allocations: 1.373 MB / 0.502 GB, free: 98.97 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.4808, allocations: 10.12 kB / 0.502 GB, free: 98.97 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001395/0.481, allocations: 127.2 kB / 0.5022 GB, free: 98.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005695/0.4816, allocations: 479 kB / 0.5026 GB, free: 98.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.116e-05/0.4816, allocations: 11.75 kB / 0.5026 GB, free: 98.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.487e-05/0.4817, allocations: 25.25 kB / 0.5027 GB, free: 98.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004228/0.4821, allocations: 450.2 kB / 0.5031 GB, free: 98.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005595/0.4827, allocations: 0.5715 MB / 0.5036 GB, free: 98.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.884e-06/0.4827, allocations: 0 / 0.5036 GB, free: 98.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.345e-05/0.4827, allocations: 6.75 kB / 0.5037 GB, free: 98.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.4827, allocations: 3.375 kB / 0.5037 GB, free: 98.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.4839, allocations: 0.9097 MB / 0.5045 GB, free: 98.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005035/0.4845, allocations: 0.7154 MB / 0.5052 GB, free: 98.25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004626/0.4849, allocations: 0.7064 MB / 0.5059 GB, free: 97.94 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.094e-05/0.4849, allocations: 2.5 kB / 0.5059 GB, free: 97.94 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005048/0.4855, allocations: 0.6948 MB / 0.5066 GB, free: 97.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 1.693e-06/0.4855, allocations: 0 / 0.5066 GB, free: 97.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.001022/0.4865, allocations: 1.019 MB / 0.5076 GB, free: 97.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.825e-05/0.4866, allocations: 329.3 kB / 0.5079 GB, free: 97.01 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001381/0.488, allocations: 1.264 MB / 0.5092 GB, free: 96.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.915e-05/0.4881, allocations: 39.39 kB / 0.5092 GB, free: 96.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.683e-05/0.4881, allocations: 156.7 kB / 0.5093 GB, free: 96.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.816e-05/0.4883, allocations: 91.22 kB / 0.5094 GB, free: 96.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.439e-05/0.4883, allocations: 14.38 kB / 0.5094 GB, free: 96.28 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.504e-05/0.4884, allocations: 322.2 kB / 0.5098 GB, free: 95.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005785/0.4889, allocations: 459.9 kB / 0.5102 GB, free: 95.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004244/0.4894, allocations: 461.7 kB / 0.5106 GB, free: 95.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004077/0.4898, allocations: 372 kB / 0.511 GB, free: 95.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4898, allocations: 0 / 0.511 GB, free: 95.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.00104/0.4908, allocations: 0.9899 MB / 0.512 GB, free: 95.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/0.4909, allocations: 4 kB / 0.512 GB, free: 95.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.4909, allocations: 4 kB / 0.512 GB, free: 95.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.4909, allocations: 4 kB / 0.512 GB, free: 95.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.087e-05/0.4909, allocations: 6.531 kB / 0.512 GB, free: 95.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.316e-06/0.4909, allocations: 0 / 0.512 GB, free: 95.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003368/0.4913, allocations: 23.84 kB / 0.512 GB, free: 95.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.931e-05/0.4914, allocations: 105.3 kB / 0.5121 GB, free: 95.02 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.0002525/0.4916, allocations: 468.9 kB / 0.5125 GB, free: 94.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.4918, allocations: 130.4 kB / 0.5127 GB, free: 94.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002575/0.492, allocations: 188 kB / 0.5128 GB, free: 94.24 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.492, allocations: 0 / 0.5128 GB, free: 94.24 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.492, allocations: 4 kB / 0.5128 GB, free: 94.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.492, allocations: 0 / 0.5128 GB, free: 94.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001601/0.4936, allocations: 1.749 MB / 0.5146 GB, free: 92.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.4937, allocations: 3.562 kB / 0.5146 GB, free: 92.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.406e-06/0.4937, allocations: 0 / 0.5146 GB, free: 92.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.4937, allocations: 0 / 0.5146 GB, free: 92.71 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.984e-05/0.4937, allocations: 39.81 kB / 0.5146 GB, free: 92.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.4938, allocations: 0 / 0.5146 GB, free: 92.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.4938, allocations: 0 / 0.5146 GB, free: 92.68 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001051/0.4948, allocations: 1.211 MB / 0.5158 GB, free: 91.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007388/0.4956, allocations: 0.5249 MB / 0.5163 GB, free: 91.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002043/0.4958, allocations: 62.17 kB / 0.5164 GB, free: 91.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003419/0.4961, allocations: 24.69 kB / 0.5164 GB, free: 91.03 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008795/0.497, allocations: 499.9 kB / 0.5169 GB, free: 90.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.4971, allocations: 103.9 kB / 0.517 GB, free: 90.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001065/0.4982, allocations: 1.031 MB / 0.518 GB, free: 89.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006118/0.4988, allocations: 171.4 kB / 0.5181 GB, free: 89.52 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.0006472/0.4995, allocations: 354.9 kB / 0.5185 GB, free: 89.26 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001051/0.5005, allocations: 1.468 MB / 0.5199 GB, free: 87.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.5006, allocations: 0 / 0.5199 GB, free: 87.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008087/0.5014, allocations: 1.352 MB / 0.5212 GB, free: 86.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002395/0.5038, allocations: 0.6826 MB / 0.5219 GB, free: 86.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002634/0.5064, allocations: 2.279 MB / 0.5241 GB, free: 83.97 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006842/0.5071, allocations: 1.167 MB / 0.5252 GB, free: 82.91 MB / 378.7 MB Notification: Performance of SimCode: time 7.11e-07/0.5071, allocations: 4 kB / 0.5252 GB, free: 82.91 MB / 378.7 MB Notification: Performance of Templates: time 0.02188/0.529, allocations: 19.37 MB / 0.5442 GB, free: 63.79 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/RAM/RAM.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches