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.FlipFlop.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.FlipFlop,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.FlipFlop") Notification: Performance of loadModel(Modelica): time 2.202/2.202, allocations: 194.8 MB / 211.7 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004806/0.0004807, allocations: 8 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1025, allocations: 44.5 MB / 309 MB, free: 380 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4903/0.5929, allocations: 78.35 MB / 387.4 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002782/0.5932, allocations: 74.66 kB / 387.5 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1644/0.7576, allocations: 42.23 MB / 429.7 MB, free: 5.215 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.7577, allocations: 0 / 429.7 MB, free: 5.215 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.449e-05/0.7577, allocations: 11.75 kB / 429.7 MB, free: 5.211 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.001877/0.7596, allocations: 0.7201 MB / 430.4 MB, free: 4.57 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.7597, allocations: 7.781 kB / 430.4 MB, free: 4.57 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002525/0.76, allocations: 58.73 kB / 430.5 MB, free: 4.535 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009485/0.7609, allocations: 350.2 kB / 430.8 MB, free: 4.285 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.476e-05/0.761, allocations: 19.72 kB / 430.9 MB, free: 4.285 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000184/0.7612, allocations: 34.94 kB / 430.9 MB, free: 4.285 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001963/0.7632, allocations: 490.8 kB / 431.4 MB, free: 4.117 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.7633, allocations: 0 / 431.4 MB, free: 4.117 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001389/0.7635, allocations: 15.47 kB / 431.4 MB, free: 4.117 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.7635, allocations: 7.938 kB / 431.4 MB, free: 4.113 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002832/0.7663, allocations: 384.1 kB / 431.8 MB, free: 4.055 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003124/0.7695, allocations: 1.069 MB / 432.8 MB, free: 3.555 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00238/0.772, allocations: 463.6 kB / 433.3 MB, free: 3.445 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002032/0.7723, allocations: 3.875 kB / 433.3 MB, free: 3.445 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001523/0.7738, allocations: 338.5 kB / 433.6 MB, free: 3.293 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 6.822e-06/0.7739, allocations: 0 / 433.6 MB, free: 3.293 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.003673/0.7776, allocations: 0.7126 MB / 434.3 MB, free: 3.086 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.7777, allocations: 114.2 kB / 434.4 MB, free: 2.953 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008082/0.7786, allocations: 303.9 kB / 434.7 MB, free: 2.707 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001996/0.7788, allocations: 36.77 kB / 434.8 MB, free: 2.672 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002066/0.779, allocations: 179.7 kB / 435 MB, free: 2.523 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002683/0.7793, allocations: 76.84 kB / 435 MB, free: 2.465 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001561/0.7795, allocations: 10.12 kB / 435 MB, free: 2.461 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.7797, allocations: 338.7 kB / 435.4 MB, free: 2.133 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000842/0.7805, allocations: 178.6 kB / 435.5 MB, free: 1.961 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009542/0.7815, allocations: 229.4 kB / 435.8 MB, free: 1.723 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001152/0.7827, allocations: 247.3 kB / 436 MB, free: 1.469 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.7827, allocations: 0 / 436 MB, free: 1.469 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.002247/0.785, allocations: 0.6301 MB / 436.6 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.316e-05/0.7851, allocations: 59.41 kB / 436.7 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.7851, allocations: 4 kB / 436.7 MB, free: 0.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.424e-05/0.7851, allocations: 3.984 kB / 436.7 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001946/0.7853, allocations: 63.78 kB / 436.8 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.7854, allocations: 4 kB / 436.8 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005755/0.7859, allocations: 51.86 kB / 436.8 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003095/0.7863, allocations: 287.7 kB / 437.1 MB, free: 356 kB / 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.0005404/0.7868, allocations: 285.6 kB / 437.4 MB, free: 48 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.787, allocations: 27.72 kB / 437.4 MB, free: 20 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001288/0.7871, allocations: 38.95 kB / 437.4 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.7871, allocations: 4 kB / 437.4 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.906e-06/0.7871, allocations: 0 / 437.4 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.7872, allocations: 3.984 kB / 437.5 MB, free: 15.97 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009799/0.7882, allocations: 460.8 kB / 437.9 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.7882, allocations: 0 / 437.9 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001577/0.7883, allocations: 47.91 kB / 437.9 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.7884, allocations: 0 / 437.9 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001224/0.7885, allocations: 55.91 kB / 438 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.7885, allocations: 0 / 438 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.7885, allocations: 0 / 438 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001851/0.7904, allocations: 0.5908 MB / 438.6 MB, free: 14.76 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005109/0.7909, allocations: 196.6 kB / 438.8 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001929/0.7911, allocations: 12 kB / 438.8 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004352/0.7916, allocations: 47.81 kB / 438.8 MB, free: 14.49 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003452/0.792, allocations: 87.91 kB / 438.9 MB, free: 14.4 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004183/0.7924, allocations: 275.7 kB / 439.2 MB, free: 14.13 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003557/0.7928, allocations: 198 kB / 439.4 MB, free: 13.94 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7928, allocations: 0 / 439.4 MB, free: 13.94 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006589/0.7934, allocations: 80 kB / 439.5 MB, free: 13.86 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: 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.0003322/0.7938, allocations: 149.4 kB / 439.6 MB, free: 13.71 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001671/0.7955, allocations: 0.5515 MB / 440.2 MB, free: 13.13 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.7955, allocations: 0 / 440.2 MB, free: 13.13 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008548/0.7964, allocations: 350.2 kB / 440.5 MB, free: 12.77 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001987/0.7984, allocations: 288.6 kB / 440.8 MB, free: 12.5 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002204/0.8006, allocations: 0.7604 MB / 441.6 MB, free: 11.71 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006587/0.8013, allocations: 0.8113 MB / 442.4 MB, free: 10.87 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.00218/0.8035, allocations: 0.7431 MB / 443.1 MB, free: 10.12 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/0.8047, allocations: 262.8 kB / 443.4 MB, free: 9.867 MB / 330.7 MB Notification: Performance of SimCode: time 1.352e-06/0.8047, allocations: 3.938 kB / 443.4 MB, free: 9.863 MB / 330.7 MB Notification: Performance of Templates: time 0.0251/0.8298, allocations: 9.897 MB / 453.3 MB, free: 15.78 MB / 346.7 MB