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.73/1.73, allocations: 171.2 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003584/0.0003584, allocations: 8 kB / 233.9 MB, free: 2.406 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08619/0.08657, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.004397/0.09102, allocations: 1.721 MB / 274.4 MB, free: 9.812 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005052/0.09614, allocations: 1.077 MB / 275.4 MB, free: 8.73 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002028/0.0964, allocations: 7.938 kB / 275.4 MB, free: 8.723 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000266/0.09669, allocations: 31.77 kB / 275.5 MB, free: 8.691 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002262/0.09694, allocations: 35.88 kB / 275.5 MB, free: 8.656 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008134/0.09778, allocations: 111.8 kB / 275.6 MB, free: 8.547 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007486/0.09855, allocations: 256 kB / 275.9 MB, free: 8.293 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004294/0.099, allocations: 120.1 kB / 276 MB, free: 8.176 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001361/0.1004, allocations: 0.5224 MB / 276.5 MB, free: 7.652 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006219/0.101, allocations: 251.4 kB / 276.7 MB, free: 7.406 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000193/0.1013, allocations: 8 kB / 276.8 MB, free: 7.398 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000191/0.1015, allocations: 8 kB / 276.8 MB, free: 7.391 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003381/0.1018, allocations: 115.7 kB / 276.9 MB, free: 7.277 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002053/0.1021, allocations: 89.52 kB / 277 MB, free: 7.184 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001288/0.1034, allocations: 0.7714 MB / 277.7 MB, free: 6.41 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1034, allocations: 4 kB / 277.7 MB, free: 6.406 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.1034, allocations: 0 / 277.7 MB, free: 6.406 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.627e-05/0.1035, allocations: 0 / 277.7 MB, free: 6.406 MB / 234.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.002116/0.1056, allocations: 0.7242 MB / 278.5 MB, free: 5.621 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.697e-05/0.1057, allocations: 12.03 kB / 278.5 MB, free: 5.609 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002878/0.106, allocations: 43.53 kB / 278.5 MB, free: 5.566 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009696/0.107, allocations: 338.2 kB / 278.8 MB, free: 5.195 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.753e-05/0.1071, allocations: 28.66 kB / 278.9 MB, free: 5.168 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002053/0.1073, allocations: 32 kB / 278.9 MB, free: 5.137 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002138/0.1095, allocations: 497.7 kB / 279.4 MB, free: 4.641 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.1095, allocations: 0 / 279.4 MB, free: 4.641 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001432/0.1097, allocations: 12 kB / 279.4 MB, free: 4.629 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.007e-05/0.1097, allocations: 8 kB / 279.4 MB, free: 4.621 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002072/0.1118, allocations: 386.3 kB / 279.8 MB, free: 4.246 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004451/0.1163, allocations: 1.1 MB / 280.9 MB, free: 3.094 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002867/0.1192, allocations: 466.6 kB / 281.3 MB, free: 2.629 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001725/0.1194, allocations: 4 kB / 281.3 MB, free: 2.625 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001441/0.1209, allocations: 353.2 kB / 281.7 MB, free: 2.266 MB / 234.7 MB Notification: Performance of pre-optimization done (n=33): time 4.969e-06/0.1209, allocations: 0 / 281.7 MB, free: 2.266 MB / 234.7 MB Notification: Performance of matching and sorting (n=33): time 0.003719/0.1246, allocations: 0.7246 MB / 282.4 MB, free: 1.523 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/0.1248, allocations: 118.8 kB / 282.5 MB, free: 1.383 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007736/0.1256, allocations: 310.3 kB / 282.8 MB, free: 1.066 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001582/0.1258, allocations: 37.7 kB / 282.9 MB, free: 1.023 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002544/0.1261, allocations: 168.7 kB / 283 MB, free: 0.8555 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002222/0.1263, allocations: 75.17 kB / 283.1 MB, free: 0.7812 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/0.1264, allocations: 12 kB / 283.1 MB, free: 0.7695 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0002255/0.1267, allocations: 342.8 kB / 283.5 MB, free: 436 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001048/0.1278, allocations: 184.6 kB / 283.6 MB, free: 248 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/0.1289, allocations: 229.4 kB / 283.9 MB, free: 4 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001255/0.1302, allocations: 263.3 kB / 284.1 MB, free: 15.73 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/0.1302, allocations: 0 / 284.1 MB, free: 15.73 MB / 250.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.003045/0.1333, allocations: 0.6435 MB / 284.8 MB, free: 15.07 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001055/0.1334, allocations: 71.42 kB / 284.8 MB, free: 14.99 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.1334, allocations: 0 / 284.8 MB, free: 14.99 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.87e-05/0.1335, allocations: 4 kB / 284.8 MB, free: 14.99 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003065/0.1338, allocations: 51.91 kB / 284.9 MB, free: 14.94 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.451e-05/0.1339, allocations: 0 / 284.9 MB, free: 14.94 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008539/0.1347, allocations: 55.8 kB / 284.9 MB, free: 14.88 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006032/0.1354, allocations: 279.7 kB / 285.2 MB, free: 14.61 MB / 250.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[1],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,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[1],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,$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[2],FF.And3.auxiliary_n,FF.And4.x[1],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.x[1],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,$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.0007725/0.1362, allocations: 301 kB / 285.5 MB, free: 14.29 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001885/0.1364, allocations: 31.62 kB / 285.5 MB, free: 14.26 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001313/0.1365, allocations: 30.97 kB / 285.6 MB, free: 14.23 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/0.1366, allocations: 3.984 kB / 285.6 MB, free: 14.23 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.1366, allocations: 0 / 285.6 MB, free: 14.23 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006344/0.1372, allocations: 192.7 kB / 285.8 MB, free: 14.02 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002494/0.1375, allocations: 16 kB / 285.8 MB, free: 14.01 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006584/0.1382, allocations: 43.95 kB / 285.8 MB, free: 13.96 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004591/0.1387, allocations: 91.81 kB / 285.9 MB, free: 13.88 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003107/0.1418, allocations: 0.7967 MB / 286.7 MB, free: 13.04 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002765/0.1446, allocations: 0.7477 MB / 287.5 MB, free: 12.26 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001022/0.1456, allocations: 199.9 kB / 287.7 MB, free: 12.06 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0004447/0.1461, allocations: 201.9 kB / 287.8 MB, free: 11.87 MB / 250.7 MB Notification: Performance of Backend: time 9.41e-07/0.1461, allocations: 0 / 287.8 MB, free: 11.87 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001961/0.1481, allocations: 489.9 kB / 288.3 MB, free: 11.36 MB / 250.7 MB Notification: Performance of SimCode: time 0.004078/0.1522, allocations: 1.371 MB / 289.7 MB, free: 9.918 MB / 250.7 MB Notification: Performance of Templates: time 0.3224/0.4747, allocations: 12.48 MB / 302.2 MB, free: 31.22 MB / 250.7 MB "" Variables in the reference:time,FF.RS1.TD1.x,FF.RS2.TD1.x Variables in the result:CLK.period,CLK.startTime,CLK.width,FF.And1.n,FF.And2.n,FF.And3.n,FF.And4.n,FF.RS1.Nor1.n,FF.RS1.Nor2.n,FF.RS1.TD1.delayTime,FF.RS1.TD1.x,FF.RS1.TD1.y0,FF.RS1.delayTime,FF.RS1.q0,FF.RS2.Nor1.n,FF.RS2.Nor2.n,FF.RS2.TD1.delayTime,FF.RS2.TD1.x,FF.RS2.TD1.y0,FF.RS2.delayTime,FF.RS2.q0,FF.delayTime,FF.q0,J.n,J.t[1],J.t[2],J.t[3],J.t[4],J.x[1],J.x[2],J.x[3],J.x[4],J.y0,K.n,K.t[1],K.t[2],K.t[3],K.t[4],K.x[1],K.x[2],K.x[3],K.x[4],K.y0,time