Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.RAM.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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_3.2.2_Modelica.Electrical.Digital.Examples.RAM") Notification: Performance of loadModel(Modelica): time 2.251/2.251, allocations: 194.9 MB / 211.7 MB, free: 2.859 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006279/0.0006281, allocations: 12 kB / 264.5 MB, free: 12.89 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1013, allocations: 44.5 MB / 309 MB, free: 328 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5286/0.6299, allocations: 80.14 MB / 389.2 MB, free: 15.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000384/0.6304, allocations: 78.03 kB / 389.3 MB, free: 15.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1579/0.7883, allocations: 39.2 MB / 428.5 MB, free: 5.664 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.226e-06/0.7884, allocations: 0 / 428.5 MB, free: 5.664 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.138e-05/0.7884, allocations: 19.56 kB / 428.5 MB, free: 5.656 MB / 314.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.002219/0.7907, allocations: 1.545 MB / 430 MB, free: 4.367 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.7907, allocations: 7.844 kB / 430 MB, free: 4.367 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003624/0.7911, allocations: 124.3 kB / 430.2 MB, free: 4.305 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001603/0.7927, allocations: 476.2 kB / 430.6 MB, free: 3.961 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.926e-05/0.7929, allocations: 18.83 kB / 430.6 MB, free: 3.957 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001385/0.793, allocations: 26.75 kB / 430.7 MB, free: 3.953 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001364/0.7944, allocations: 0.5813 MB / 431.2 MB, free: 3.809 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.7945, allocations: 7.844 kB / 431.3 MB, free: 3.805 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.652e-05/0.7945, allocations: 11.91 kB / 431.3 MB, free: 3.801 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.7946, allocations: 0 / 431.3 MB, free: 3.801 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008385/0.7954, allocations: 468.6 kB / 431.7 MB, free: 3.738 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002122/0.7975, allocations: 0.9122 MB / 432.6 MB, free: 3.25 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.7987, allocations: 0.7334 MB / 433.4 MB, free: 3.113 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.224e-05/0.7987, allocations: 7.953 kB / 433.4 MB, free: 3.105 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001162/0.7999, allocations: 0.7379 MB / 434.1 MB, free: 2.453 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 3.367e-06/0.7999, allocations: 0 / 434.1 MB, free: 2.453 MB / 314.7 MB Notification: Performance of matching and sorting (n=41): time 0.003699/0.8036, allocations: 2.318 MB / 436.4 MB, free: 396 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001661/0.8039, allocations: 334.1 kB / 436.8 MB, free: 0 / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003567/0.8074, allocations: 1.499 MB / 438.3 MB, free: 14.77 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001984/0.8077, allocations: 38.33 kB / 438.3 MB, free: 14.73 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003894/0.8081, allocations: 285.3 kB / 438.6 MB, free: 14.59 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002075/0.8083, allocations: 89.5 kB / 438.7 MB, free: 14.52 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.427e-05/0.8084, allocations: 10.62 kB / 438.7 MB, free: 14.51 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.8086, allocations: 323.3 kB / 439 MB, free: 14.19 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001078/0.8097, allocations: 469.6 kB / 439.4 MB, free: 13.79 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001046/0.8107, allocations: 0.491 MB / 439.9 MB, free: 13.29 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001128/0.8119, allocations: 0.6437 MB / 440.6 MB, free: 12.59 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.8119, allocations: 4 kB / 440.6 MB, free: 12.58 MB / 330.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.003382/0.8153, allocations: 1.566 MB / 442.1 MB, free: 10.95 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003271/0.8157, allocations: 299.2 kB / 442.4 MB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.8157, allocations: 0 / 442.4 MB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.482e-05/0.8157, allocations: 4 kB / 442.4 MB, free: 10.6 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.373e-05/0.8158, allocations: 0 / 442.4 MB, free: 10.6 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.8158, allocations: 4 kB / 442.4 MB, free: 10.6 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006578/0.8165, allocations: 39.89 kB / 442.5 MB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002236/0.8167, allocations: 103.9 kB / 442.6 MB, free: 10.46 MB / 330.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.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],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,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.001954/0.8187, allocations: 0.8567 MB / 443.4 MB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003132/0.819, allocations: 130.5 kB / 443.6 MB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006484/0.8197, allocations: 183.9 kB / 443.8 MB, free: 9.223 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/0.8197, allocations: 8 kB / 443.8 MB, free: 9.215 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.8197, allocations: 0 / 443.8 MB, free: 9.215 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.8197, allocations: 7.984 kB / 443.8 MB, free: 9.207 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005608/0.8254, allocations: 2.45 MB / 446.2 MB, free: 6.652 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.836e-06/0.8254, allocations: 3.953 kB / 446.2 MB, free: 6.648 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.48e-05/0.8255, allocations: 8 kB / 446.2 MB, free: 6.641 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.992e-06/0.8255, allocations: 0 / 446.2 MB, free: 6.641 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001241/0.8256, allocations: 35.97 kB / 446.3 MB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.8256, allocations: 3.938 kB / 446.3 MB, free: 6.602 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.8256, allocations: 4 kB / 446.3 MB, free: 6.598 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003752/0.8294, allocations: 1.865 MB / 448.1 MB, free: 4.664 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001557/0.831, allocations: 0.5029 MB / 448.6 MB, free: 4.141 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003472/0.8314, allocations: 67.95 kB / 448.7 MB, free: 4.074 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005581/0.8319, allocations: 31.89 kB / 448.7 MB, free: 4.043 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002226/0.8342, allocations: 0.628 MB / 449.4 MB, free: 3.414 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002458/0.8345, allocations: 111.9 kB / 449.5 MB, free: 3.305 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002802/0.8373, allocations: 1.082 MB / 450.6 MB, free: 2.219 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.8373, allocations: 0 / 450.6 MB, free: 2.219 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001108/0.8384, allocations: 191.4 kB / 450.7 MB, free: 2.035 MB / 330.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.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],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,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.001041/0.8395, allocations: 381.5 kB / 451.1 MB, free: 1.691 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003746/0.8433, allocations: 2.1 MB / 453.2 MB, free: 15.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.8433, allocations: 0 / 453.2 MB, free: 15.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002552/0.8459, allocations: 1.596 MB / 454.8 MB, free: 13.77 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004963/0.8509, allocations: 0.7205 MB / 455.5 MB, free: 13.07 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006898/0.8579, allocations: 2.831 MB / 458.4 MB, free: 10.2 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001522/0.8595, allocations: 1.15 MB / 459.5 MB, free: 9.02 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005026/0.86, allocations: 70.88 kB / 459.6 MB, free: 8.949 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.124e-05/0.8601, allocations: 19.44 kB / 459.6 MB, free: 8.93 MB / 346.7 MB Notification: Performance of SimCode: time 1.973e-06/0.8601, allocations: 0 / 459.6 MB, free: 8.93 MB / 346.7 MB Notification: Performance of Templates: time 0.05334/0.9135, allocations: 20.94 MB / 480.5 MB, free: 3.762 MB / 362.7 MB