Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.Multiplexer.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.Multiplexer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.Multiplexer") Notification: Performance of loadModel(Modelica): time 1.974/1.974, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004781/0.0004783, allocations: 8 kB / 233.8 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08287/0.08338, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3886/0.472, allocations: 73.78 MB / 346.4 MB, free: 15.57 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004344/0.4725, allocations: 73.89 kB / 346.5 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2208/0.6933, allocations: 54.51 MB / 401 MB, free: 15.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.6934, allocations: 3.938 kB / 401 MB, free: 15.31 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.05e-05/0.6934, allocations: 12 kB / 401 MB, free: 15.3 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002098/0.6956, allocations: 1.024 MB / 402 MB, free: 14.2 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.6956, allocations: 8.031 kB / 402 MB, free: 14.19 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002975/0.6959, allocations: 79.14 kB / 402.1 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001181/0.6971, allocations: 466.6 kB / 402.5 MB, free: 13.61 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.299e-05/0.6972, allocations: 49.2 kB / 402.6 MB, free: 13.56 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002454/0.6975, allocations: 59.94 kB / 402.7 MB, free: 13.5 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002412/0.6999, allocations: 0.8339 MB / 403.5 MB, free: 12.66 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/0.6999, allocations: 0 / 403.5 MB, free: 12.66 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002063/0.7001, allocations: 24 kB / 403.5 MB, free: 12.64 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.462e-05/0.7002, allocations: 12 kB / 403.5 MB, free: 12.62 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002147/0.7023, allocations: 0.6532 MB / 404.2 MB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004712/0.7071, allocations: 1.674 MB / 405.9 MB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001969/0.7091, allocations: 0.599 MB / 406.5 MB, free: 9.637 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002203/0.7093, allocations: 4.562 kB / 406.5 MB, free: 9.633 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001493/0.7108, allocations: 0.5689 MB / 407 MB, free: 9.051 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 3.677e-06/0.7108, allocations: 0 / 407 MB, free: 9.051 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.00401/0.7149, allocations: 1.303 MB / 408.3 MB, free: 7.711 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/0.715, allocations: 200.5 kB / 408.5 MB, free: 7.473 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007458/0.7158, allocations: 405.2 kB / 408.9 MB, free: 7.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001762/0.716, allocations: 45.7 kB / 409 MB, free: 7.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002563/0.7162, allocations: 232.9 kB / 409.2 MB, free: 6.785 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000275/0.7165, allocations: 130.1 kB / 409.3 MB, free: 6.66 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001495/0.7167, allocations: 20 kB / 409.3 MB, free: 6.641 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001914/0.7169, allocations: 354.8 kB / 409.7 MB, free: 6.285 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001038/0.718, allocations: 309.1 kB / 410 MB, free: 5.98 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0011/0.7191, allocations: 380.4 kB / 410.4 MB, free: 5.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001253/0.7203, allocations: 472.3 kB / 410.8 MB, free: 5.098 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/0.7204, allocations: 0 / 410.8 MB, free: 5.098 MB / 330.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00318/0.7236, allocations: 1.138 MB / 412 MB, free: 3.922 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001197/0.7237, allocations: 141.1 kB / 412.1 MB, free: 3.754 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.7237, allocations: 4 kB / 412.1 MB, free: 3.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.629e-05/0.7238, allocations: 7.953 kB / 412.1 MB, free: 3.742 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003647/0.7241, allocations: 107.8 kB / 412.2 MB, free: 3.637 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.426e-05/0.7242, allocations: 4 kB / 412.2 MB, free: 3.633 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008377/0.725, allocations: 91.75 kB / 412.3 MB, free: 3.543 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008268/0.7258, allocations: 0.558 MB / 412.9 MB, free: 2.984 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 75 ($whenCondition1,MUX.d,$PRE.MUX.Or1.auxiliary_n,MUX.Or1.x[1],MUX.Or1.x[2],MUX.Or1.x[3],MUX.Or1.x[4],MUX.Or1.auxiliary[2],MUX.Or1.auxiliary[3],MUX.Or1.auxiliary_n,$PRE.MUX.And1.auxiliary_n,$PRE.MUX.And2.auxiliary_n,$PRE.MUX.And3.auxiliary_n,$PRE.MUX.And4.auxiliary_n,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,$PRE.FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And2.y,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,$PRE.FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.And4.y,$PRE.FF.And4.auxiliary_n,FF.RS2.Nor1.auxiliary[2],$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.And1.y,$PRE.FF.And1.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.auxiliary_n,FF.And4.auxiliary_n,$PRE.FF.Not1.auxiliary,CLK.y,$PRE.CLK.t_i,CLK.t_i,D0.y,D1.y,MUX.And1.x[1],MUX.And1.x[3],MUX.And1.auxiliary[2],MUX.And1.auxiliary_n,MUX.And2.auxiliary[2],MUX.And2.auxiliary_n,MUX.And3.auxiliary[2],MUX.And3.auxiliary_n,MUX.And4.auxiliary[2],MUX.And4.auxiliary_n,$PRE.MUX.Not1.auxiliary,MUX.Not1.auxiliary,$PRE.MUX.Not2.auxiliary,MUX.Not2.auxiliary,D2.y,D3.y,FF.RS1.Nor1.auxiliary[2],$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.y,$PRE.FF.And3.auxiliary_n,FF.Not1.auxiliary,Enable.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 5 * 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.0009153/0.7268, allocations: 446.1 kB / 413.3 MB, free: 2.508 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002301/0.727, allocations: 47.44 kB / 413.3 MB, free: 2.461 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001395/0.7272, allocations: 52.77 kB / 413.4 MB, free: 2.41 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.7272, allocations: 11.95 kB / 413.4 MB, free: 2.398 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.7272, allocations: 0 / 413.4 MB, free: 2.398 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.7272, allocations: 3.984 kB / 413.4 MB, free: 2.395 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001452/0.7287, allocations: 0.654 MB / 414.1 MB, free: 1.688 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.7287, allocations: 0 / 414.1 MB, free: 1.688 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002744/0.729, allocations: 95.81 kB / 414.2 MB, free: 1.594 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.074e-06/0.729, allocations: 4 kB / 414.2 MB, free: 1.59 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002167/0.7292, allocations: 87.95 kB / 414.2 MB, free: 1.504 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.7293, allocations: 4 kB / 414.3 MB, free: 1.5 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.68e-06/0.7293, allocations: 7.953 kB / 414.3 MB, free: 1.492 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002976/0.7323, allocations: 1.067 MB / 415.3 MB, free: 384 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007654/0.733, allocations: 252.5 kB / 415.6 MB, free: 112 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003288/0.7334, allocations: 24 kB / 415.6 MB, free: 88 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006283/0.734, allocations: 67.7 kB / 415.7 MB, free: 20 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005588/0.7346, allocations: 152.4 kB / 415.8 MB, free: 15.87 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000854/0.7355, allocations: 0.5618 MB / 416.4 MB, free: 15.31 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004551/0.7359, allocations: 263.1 kB / 416.6 MB, free: 15.05 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.736, allocations: 0 / 416.6 MB, free: 15.05 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009519/0.7369, allocations: 140 kB / 416.8 MB, free: 14.91 MB / 346.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: 56 ($whenCondition1,CLK.y,CLK.t_i,D0.y,D1.y,MUX.d,MUX.Or1.x[1],MUX.Or1.x[2],MUX.Or1.x[3],MUX.Or1.x[4],MUX.Or1.auxiliary[2],MUX.Or1.auxiliary[3],MUX.Or1.auxiliary_n,MUX.And1.x[1],MUX.And1.x[3],MUX.And1.auxiliary[2],MUX.And1.auxiliary_n,MUX.And2.auxiliary[2],MUX.And2.auxiliary_n,MUX.And3.auxiliary[2],MUX.And3.auxiliary_n,MUX.And4.auxiliary[2],MUX.And4.auxiliary_n,MUX.Not1.auxiliary,MUX.Not2.auxiliary,D2.y,D3.y,FF.RS1.Nor1.auxiliary[2],FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.RS2.Nor1.auxiliary[2],FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.y,FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.y,FF.And4.auxiliary_n,FF.Not1.auxiliary,Enable.y) * Number of discrete states: 23 (Enable.y,FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And3.auxiliary_n,FF.And2.auxiliary_n,FF.And1.auxiliary_n,FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n,D3.y,D2.y,MUX.Not2.auxiliary,MUX.Not1.auxiliary,MUX.And4.auxiliary_n,MUX.And3.auxiliary_n,MUX.And2.auxiliary_n,MUX.And1.auxiliary_n,MUX.Or1.auxiliary_n,D1.y,D0.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 1 * 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.0004085/0.7373, allocations: 180.8 kB / 416.9 MB, free: 14.73 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002862/0.7402, allocations: 1.025 MB / 418 MB, free: 13.64 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.7403, allocations: 4 kB / 418 MB, free: 13.64 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001598/0.7419, allocations: 0.6876 MB / 418.7 MB, free: 12.89 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003353/0.7453, allocations: 491.4 kB / 419.1 MB, free: 12.42 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003312/0.7486, allocations: 1.237 MB / 420.4 MB, free: 11.16 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007214/0.7494, allocations: 0.8946 MB / 421.3 MB, free: 10.23 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.004195/0.7536, allocations: 1.496 MB / 422.8 MB, free: 8.727 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002318/0.756, allocations: 490.2 kB / 423.2 MB, free: 8.246 MB / 346.7 MB Notification: Performance of SimCode: time 1.343e-06/0.756, allocations: 4 kB / 423.3 MB, free: 8.242 MB / 346.7 MB Notification: Performance of Templates: time 0.2863/1.042, allocations: 17.58 MB / 440.8 MB, free: 98.1 MB / 346.7 MB