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.Multiplexer.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.Multiplexer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.Multiplexer") Notification: Performance of loadModel(Modelica): time 2.135/2.135, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003514/0.0003516, allocations: 12 kB / 264.5 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1029, allocations: 44.49 MB / 309 MB, free: 380 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4551/0.5581, allocations: 79.05 MB / 388.1 MB, free: 15.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003806/0.5586, allocations: 75.69 kB / 388.2 MB, free: 15.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1667/0.7253, allocations: 54.49 MB / 442.6 MB, free: 12.03 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.7253, allocations: 4 kB / 442.7 MB, free: 12.03 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.506e-05/0.7254, allocations: 15.94 kB / 442.7 MB, free: 12.01 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.002182/0.7276, allocations: 1.024 MB / 443.7 MB, free: 10.91 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.7276, allocations: 12.03 kB / 443.7 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003251/0.728, allocations: 75.16 kB / 443.8 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001208/0.7292, allocations: 466.1 kB / 444.2 MB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.534e-05/0.7293, allocations: 41.31 kB / 444.3 MB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002516/0.7295, allocations: 60 kB / 444.3 MB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002524/0.7321, allocations: 0.8374 MB / 445.2 MB, free: 9.391 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.368e-05/0.7321, allocations: 3.938 kB / 445.2 MB, free: 9.387 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001832/0.7323, allocations: 24 kB / 445.2 MB, free: 9.363 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.677e-05/0.7324, allocations: 16 kB / 445.2 MB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002193/0.7346, allocations: 0.6493 MB / 445.9 MB, free: 8.699 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004884/0.7395, allocations: 1.676 MB / 447.5 MB, free: 6.996 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002099/0.7416, allocations: 0.6047 MB / 448.1 MB, free: 6.383 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000241/0.7419, allocations: 8.562 kB / 448.1 MB, free: 6.375 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001605/0.7435, allocations: 0.5611 MB / 448.7 MB, free: 5.801 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 6.693e-06/0.7436, allocations: 0 / 448.7 MB, free: 5.801 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.004196/0.7478, allocations: 1.303 MB / 450 MB, free: 4.461 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001662/0.748, allocations: 200.4 kB / 450.2 MB, free: 4.223 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007831/0.7488, allocations: 405.2 kB / 450.6 MB, free: 3.82 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002131/0.749, allocations: 53.69 kB / 450.7 MB, free: 3.762 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002601/0.7493, allocations: 228.9 kB / 450.9 MB, free: 3.531 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002942/0.7496, allocations: 130.4 kB / 451 MB, free: 3.406 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001459/0.7498, allocations: 15.94 kB / 451 MB, free: 3.391 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001984/0.75, allocations: 354.8 kB / 451.4 MB, free: 3.035 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001088/0.7511, allocations: 309.1 kB / 451.7 MB, free: 2.734 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001816/0.7529, allocations: 384.4 kB / 452 MB, free: 2.336 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002124/0.7551, allocations: 464.9 kB / 452.5 MB, free: 1.852 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.59e-05/0.7552, allocations: 0 / 452.5 MB, free: 1.852 MB / 330.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.005866/0.761, allocations: 1.145 MB / 453.6 MB, free: 0.6719 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001666/0.7613, allocations: 144.5 kB / 453.8 MB, free: 0.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.611e-05/0.7613, allocations: 3.984 kB / 453.8 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.841e-05/0.7613, allocations: 4 kB / 453.8 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005899/0.7619, allocations: 103.8 kB / 453.9 MB, free: 400 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.181e-05/0.762, allocations: 4 kB / 453.9 MB, free: 396 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/0.7634, allocations: 87.7 kB / 454 MB, free: 308 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001287/0.7648, allocations: 0.5661 MB / 454.6 MB, free: 15.73 MB / 346.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.001474/0.7663, allocations: 442.1 kB / 455 MB, free: 15.26 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000366/0.7667, allocations: 51.48 kB / 455 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002381/0.7669, allocations: 56.75 kB / 455.1 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.72e-05/0.767, allocations: 4 kB / 455.1 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.767, allocations: 3.938 kB / 455.1 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.579e-05/0.767, allocations: 4 kB / 455.1 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001828/0.7689, allocations: 0.6538 MB / 455.8 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.7689, allocations: 4 kB / 455.8 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002713/0.7692, allocations: 83.89 kB / 455.8 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.408e-05/0.7692, allocations: 7.953 kB / 455.8 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002228/0.7694, allocations: 91.94 kB / 455.9 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/0.7695, allocations: 4 kB / 455.9 MB, free: 14.26 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/0.7695, allocations: 7.984 kB / 456 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003071/0.7726, allocations: 1.067 MB / 457 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007984/0.7734, allocations: 256.5 kB / 457.3 MB, free: 12.87 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003269/0.7737, allocations: 23.95 kB / 457.3 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006483/0.7744, allocations: 71.78 kB / 457.4 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000531/0.775, allocations: 148.4 kB / 457.5 MB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008533/0.7758, allocations: 0.558 MB / 458.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005213/0.7764, allocations: 251.2 kB / 458.3 MB, free: 11.82 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7764, allocations: 0 / 458.3 MB, free: 11.82 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001017/0.7774, allocations: 144 kB / 458.5 MB, free: 11.68 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.0004144/0.7778, allocations: 168.9 kB / 458.6 MB, free: 11.51 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002896/0.7807, allocations: 1.044 MB / 459.7 MB, free: 10.41 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.7808, allocations: 0 / 459.7 MB, free: 10.41 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001601/0.7824, allocations: 0.6915 MB / 460.4 MB, free: 9.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003387/0.7858, allocations: 474.8 kB / 460.8 MB, free: 9.207 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003367/0.7892, allocations: 1.238 MB / 462.1 MB, free: 7.938 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007037/0.79, allocations: 0.9024 MB / 463 MB, free: 7.008 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.004179/0.7942, allocations: 1.496 MB / 464.5 MB, free: 5.504 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002359/0.7966, allocations: 486.2 kB / 464.9 MB, free: 5.027 MB / 346.7 MB Notification: Performance of SimCode: time 1.833e-06/0.7966, allocations: 0 / 464.9 MB, free: 5.027 MB / 346.7 MB Notification: Performance of Templates: time 0.04267/0.8393, allocations: 17.6 MB / 482.5 MB, free: 2.996 MB / 362.7 MB