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.FlipFlop.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.FlipFlop,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.FlipFlop") Notification: Performance of loadModel(Modelica): time 1.898/1.898, allocations: 171.1 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000383/0.0003827, allocations: 8 kB / 233.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08306/0.08347, allocations: 38.76 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3537/0.4373, allocations: 73.06 MB / 345.7 MB, free: 248 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002852/0.4376, allocations: 78.66 kB / 345.7 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1468/0.5844, allocations: 42.24 MB / 388 MB, free: 12.3 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.5844, allocations: 0 / 388 MB, free: 12.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.023e-05/0.5845, allocations: 15.94 kB / 388 MB, free: 12.29 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001591/0.5861, allocations: 0.7366 MB / 388.7 MB, free: 11.49 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.5862, allocations: 8.031 kB / 388.7 MB, free: 11.48 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002296/0.5864, allocations: 43.53 kB / 388.8 MB, free: 11.44 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0013/0.5877, allocations: 343.1 kB / 389.1 MB, free: 11.06 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.466e-05/0.5879, allocations: 32.59 kB / 389.2 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002439/0.5881, allocations: 36 kB / 389.2 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002607/0.5908, allocations: 489.8 kB / 389.7 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.055e-05/0.5909, allocations: 0 / 389.7 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002084/0.5911, allocations: 12 kB / 389.7 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.358e-05/0.5911, allocations: 11.94 kB / 389.7 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00232/0.5935, allocations: 390.3 kB / 390.1 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004873/0.5984, allocations: 1.062 MB / 391.1 MB, free: 8.992 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002784/0.6013, allocations: 462 kB / 391.6 MB, free: 8.535 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001706/0.6015, allocations: 4 kB / 391.6 MB, free: 8.531 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001437/0.603, allocations: 337.2 kB / 391.9 MB, free: 8.188 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 5.15e-06/0.603, allocations: 0 / 391.9 MB, free: 8.188 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.003742/0.6068, allocations: 0.7129 MB / 392.6 MB, free: 7.457 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001313/0.6069, allocations: 118.7 kB / 392.8 MB, free: 7.316 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007692/0.6077, allocations: 298.4 kB / 393 MB, free: 7.02 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001902/0.608, allocations: 41.7 kB / 393.1 MB, free: 6.973 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002688/0.6082, allocations: 172.7 kB / 393.3 MB, free: 6.797 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002866/0.6086, allocations: 71.16 kB / 393.3 MB, free: 6.727 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/0.6087, allocations: 12 kB / 393.3 MB, free: 6.715 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002421/0.609, allocations: 342.8 kB / 393.7 MB, free: 6.371 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001066/0.61, allocations: 180.6 kB / 393.8 MB, free: 6.191 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001171/0.6113, allocations: 229.4 kB / 394.1 MB, free: 5.953 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001208/0.6125, allocations: 247.3 kB / 394.3 MB, free: 5.699 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.273e-06/0.6126, allocations: 0 / 394.3 MB, free: 5.699 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.003276/0.6159, allocations: 0.6319 MB / 394.9 MB, free: 5.051 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001103/0.616, allocations: 67.42 kB / 395 MB, free: 4.973 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.6161, allocations: 0 / 395 MB, free: 4.973 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.135e-05/0.6161, allocations: 4 kB / 395 MB, free: 4.969 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003576/0.6165, allocations: 55.91 kB / 395.1 MB, free: 4.914 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.094e-05/0.6165, allocations: 4 kB / 395.1 MB, free: 4.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009052/0.6174, allocations: 47.81 kB / 395.1 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007117/0.6182, allocations: 279.7 kB / 395.4 MB, free: 4.59 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 45 ($whenCondition1,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,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,CLK.y,$PRE.CLK.t_i,CLK.t_i,J.y,K.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 2 * 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.0009307/0.6191, allocations: 293.1 kB / 395.7 MB, free: 4.281 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002338/0.6194, allocations: 31.62 kB / 395.7 MB, free: 4.25 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001628/0.6196, allocations: 34.95 kB / 395.7 MB, free: 4.215 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-05/0.6196, allocations: 4 kB / 395.7 MB, free: 4.211 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.6196, allocations: 0 / 395.7 MB, free: 4.211 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/0.6197, allocations: 3.984 kB / 395.7 MB, free: 4.207 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001486/0.6212, allocations: 465.3 kB / 396.2 MB, free: 3.703 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.827e-06/0.6212, allocations: 4 kB / 396.2 MB, free: 3.699 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002536/0.6215, allocations: 51.91 kB / 396.3 MB, free: 3.648 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-05/0.6215, allocations: 4 kB / 396.3 MB, free: 3.645 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001873/0.6217, allocations: 39.98 kB / 396.3 MB, free: 3.605 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.495e-05/0.6218, allocations: 7.984 kB / 396.3 MB, free: 3.598 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.6218, allocations: 160 / 396.3 MB, free: 3.598 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002682/0.6245, allocations: 0.5942 MB / 396.9 MB, free: 2.977 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006859/0.6252, allocations: 196.6 kB / 397.1 MB, free: 2.766 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000275/0.6255, allocations: 16 kB / 397.1 MB, free: 2.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006508/0.6262, allocations: 43.84 kB / 397.2 MB, free: 2.707 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004749/0.6267, allocations: 83.91 kB / 397.2 MB, free: 2.625 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005803/0.6273, allocations: 283.7 kB / 397.5 MB, free: 2.348 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004723/0.6278, allocations: 201.9 kB / 397.7 MB, free: 2.148 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.436e-06/0.6278, allocations: 0 / 397.7 MB, free: 2.148 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009511/0.6288, allocations: 91.94 kB / 397.8 MB, free: 2.059 MB / 314.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: 33 ($whenCondition1,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,CLK.y,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (K.y,J.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 2 * 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.0003868/0.6292, allocations: 138.1 kB / 397.9 MB, free: 1.918 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002447/0.6317, allocations: 0.5414 MB / 398.5 MB, free: 1.352 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.82e-06/0.6317, allocations: 0 / 398.5 MB, free: 1.352 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001293/0.633, allocations: 350.7 kB / 398.8 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002632/0.6357, allocations: 276.2 kB / 399.1 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002387/0.6382, allocations: 0.7642 MB / 399.9 MB, free: 15.92 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000579/0.6388, allocations: 0.8152 MB / 400.7 MB, free: 15.08 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.002229/0.641, allocations: 0.7431 MB / 401.4 MB, free: 14.34 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001255/0.6423, allocations: 258.8 kB / 401.7 MB, free: 14.08 MB / 330.7 MB Notification: Performance of SimCode: time 1.443e-06/0.6424, allocations: 4 kB / 401.7 MB, free: 14.08 MB / 330.7 MB Notification: Performance of Templates: time 0.03064/0.673, allocations: 9.898 MB / 411.6 MB, free: 3.984 MB / 330.7 MB