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.Counter3.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.Counter3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Counter.FF1.RS1.TD1.x|Counter.FF1.RS2.TD1.x|Counter.FF2.RS1.TD1.x|Counter.FF2.RS2.TD1.x|Counter.FF3.RS1.TD1.x|Counter.FF3.RS2.TD1.x",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.Counter3") Notification: Performance of loadModel(Modelica): time 2.027/2.027, allocations: 194.9 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004815/0.0004817, allocations: 8 kB / 264.6 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1295, allocations: 44.5 MB / 309.1 MB, free: 376 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.Counter3): time 0.007237/0.1368, allocations: 2.939 MB / 312 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007337/0.1442, allocations: 1.615 MB / 313.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007511/0.145, allocations: 11.94 kB / 313.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005321/0.1456, allocations: 95.3 kB / 313.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006235/0.1462, allocations: 79.77 kB / 313.8 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001839/0.1481, allocations: 267.6 kB / 314.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002405/0.1505, allocations: 0.7228 MB / 314.8 MB, free: 10.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001394/0.152, allocations: 391.2 kB / 315.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002434/0.1545, allocations: 0.76 MB / 315.9 MB, free: 9.473 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001838/0.1564, allocations: 0.6666 MB / 316.6 MB, free: 8.805 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000652/0.1571, allocations: 24 kB / 316.6 MB, free: 8.781 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005592/0.1577, allocations: 24 kB / 316.6 MB, free: 8.758 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008971/0.1586, allocations: 315.3 kB / 316.9 MB, free: 8.449 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004744/0.1591, allocations: 201.2 kB / 317.1 MB, free: 8.246 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004392/0.1635, allocations: 2.536 MB / 319.7 MB, free: 5.703 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1636, allocations: 0 / 319.7 MB, free: 5.703 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.1636, allocations: 0 / 319.7 MB, free: 5.703 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.26e-05/0.1637, allocations: 0 / 319.7 MB, free: 5.703 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 231 * Number of variables: 231 Notification: Performance of Generate backend data structure: time 0.00488/0.1686, allocations: 1.251 MB / 320.9 MB, free: 4.391 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.186e-05/0.1687, allocations: 11.97 kB / 320.9 MB, free: 4.379 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009935/0.1697, allocations: 110.7 kB / 321 MB, free: 4.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003021/0.1727, allocations: 0.6606 MB / 321.7 MB, free: 3.566 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002686/0.1731, allocations: 70 kB / 321.8 MB, free: 3.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008161/0.1739, allocations: 92 kB / 321.9 MB, free: 3.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007229/0.1812, allocations: 1.303 MB / 323.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.383e-05/0.1813, allocations: 0 / 323.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004199/0.1817, allocations: 43.95 kB / 323.2 MB, free: 2.055 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.222e-05/0.1818, allocations: 20 kB / 323.2 MB, free: 2.035 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006823/0.1886, allocations: 1.074 MB / 324.3 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01524/0.2039, allocations: 3.086 MB / 327.4 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006819/0.2108, allocations: 1.131 MB / 328.5 MB, free: 12.68 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006379/0.2115, allocations: 9 kB / 328.5 MB, free: 12.67 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004077/0.2156, allocations: 0.8206 MB / 329.3 MB, free: 11.83 MB / 282.7 MB Notification: Performance of pre-optimization done (n=88): time 8.356e-06/0.2157, allocations: 0 / 329.3 MB, free: 11.83 MB / 282.7 MB Notification: Performance of matching and sorting (n=88): time 0.01002/0.2257, allocations: 1.63 MB / 331 MB, free: 10.2 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.88e-05/0.2259, allocations: 90.11 kB / 331.1 MB, free: 10.09 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00163/0.2275, allocations: 0.5401 MB / 331.6 MB, free: 9.543 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006692/0.2282, allocations: 69.7 kB / 331.7 MB, free: 9.469 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005205/0.2288, allocations: 289 kB / 332 MB, free: 9.18 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009179/0.2297, allocations: 201.6 kB / 332.1 MB, free: 8.98 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00032/0.2301, allocations: 24 kB / 332.2 MB, free: 8.957 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002989/0.2304, allocations: 362.8 kB / 332.5 MB, free: 8.594 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002878/0.2333, allocations: 469.8 kB / 333 MB, free: 8.133 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003171/0.2365, allocations: 0.5772 MB / 333.6 MB, free: 7.523 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003319/0.2399, allocations: 0.5755 MB / 334.1 MB, free: 6.941 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.363e-05/0.24, allocations: 7.953 kB / 334.1 MB, free: 6.934 MB / 282.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.008118/0.2481, allocations: 1.443 MB / 335.6 MB, free: 5.477 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.417e-05/0.2483, allocations: 37.7 kB / 335.6 MB, free: 5.434 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.942e-05/0.2483, allocations: 0 / 335.6 MB, free: 5.434 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.892e-05/0.2484, allocations: 8 kB / 335.6 MB, free: 5.426 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009815/0.2494, allocations: 167.6 kB / 335.8 MB, free: 5.262 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.023e-05/0.2495, allocations: 4 kB / 335.8 MB, free: 5.258 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002473/0.2519, allocations: 139.4 kB / 335.9 MB, free: 5.121 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00203/0.254, allocations: 0.8194 MB / 336.8 MB, free: 4.301 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 122 ($whenCondition1,Counter.FF1.RS2.Nor2.x[1],Counter.FF1.RS2.Nor2.x[2],Counter.FF1.RS2.Nor2.auxiliary[2],Counter.FF1.RS2.Nor2.auxiliary_n,$PRE.Counter.FF1.RS2.TD1.x,Counter.FF1.RS2.TD1.x_delayed,$PRE.Counter.FF1.And2.auxiliary_n,Counter.FF1.RS1.Nor2.x[1],Counter.FF1.RS1.Nor2.x[2],Counter.FF1.RS1.Nor2.auxiliary[2],Counter.FF1.RS1.Nor2.auxiliary_n,$PRE.Counter.FF1.RS1.TD1.x,Counter.FF1.RS1.TD1.x_delayed,$PRE.Counter.FF1.And4.auxiliary_n,Counter.FF1.RS2.Nor1.auxiliary[2],$PRE.Counter.FF1.RS2.Nor1.auxiliary_n,Counter.FF1.RS2.Nor1.auxiliary_n,$PRE.Counter.FF1.RS2.Nor2.auxiliary_n,Counter.FF1.RS2.TD1.x,Counter.FF1.And1.y,$PRE.Counter.FF1.And1.auxiliary_n,Counter.FF1.And3.x[2],Counter.FF1.And3.auxiliary_n,Counter.FF1.And4.x[1],Counter.FF1.And4.auxiliary_n,$PRE.Counter.FF1.Not1.auxiliary,Counter.FF2.RS2.Nor2.x[1],Counter.FF2.RS2.Nor2.x[2],Counter.FF2.RS2.Nor2.auxiliary[2],Counter.FF2.RS2.Nor2.auxiliary_n,$PRE.Counter.FF2.RS2.TD1.x,Counter.FF2.RS2.TD1.x_delayed,$PRE.Counter.FF2.And2.auxiliary_n,Counter.FF2.RS1.Nor2.x[1],Counter.FF2.RS1.Nor2.x[2],Counter.FF2.RS1.Nor2.auxiliary[2],Counter.FF2.RS1.Nor2.auxiliary_n,$PRE.Counter.FF2.RS1.TD1.x,Counter.FF2.RS1.TD1.x_delayed,$PRE.Counter.FF2.And4.auxiliary_n,Counter.FF2.RS2.Nor1.auxiliary[2],$PRE.Counter.FF2.RS2.Nor1.auxiliary_n,Counter.FF2.RS2.Nor1.auxiliary_n,$PRE.Counter.FF2.RS2.Nor2.auxiliary_n,Counter.FF2.RS2.TD1.x,Counter.FF2.And1.y,$PRE.Counter.FF2.And1.auxiliary_n,Counter.FF2.And3.x[2],Counter.FF2.And3.auxiliary_n,Counter.FF2.And4.x[1],Counter.FF2.And4.auxiliary_n,$PRE.Counter.FF2.Not1.auxiliary,Counter.FF3.RS2.Nor2.x[1],Counter.FF3.RS2.Nor2.x[2],Counter.FF3.RS2.Nor2.auxiliary[2],Counter.FF3.RS2.Nor2.auxiliary_n,$PRE.Counter.FF3.RS2.TD1.x,Counter.FF3.RS2.TD1.x_delayed,$PRE.Counter.FF3.And2.auxiliary_n,Counter.FF3.RS1.Nor2.x[1],Counter.FF3.RS1.Nor2.x[2],Counter.FF3.RS1.Nor2.auxiliary[2],Counter.FF3.RS1.Nor2.auxiliary_n,$PRE.Counter.FF3.RS1.TD1.x,Counter.FF3.RS1.TD1.x_delayed,$PRE.Counter.FF3.And4.auxiliary_n,Counter.FF3.RS2.Nor1.auxiliary[2],$PRE.Counter.FF3.RS2.Nor1.auxiliary_n,Counter.FF3.RS2.Nor1.auxiliary_n,$PRE.Counter.FF3.RS2.Nor2.auxiliary_n,Counter.FF3.RS2.TD1.x,Counter.FF3.And1.y,$PRE.Counter.FF3.And1.auxiliary_n,Counter.FF3.And3.x[2],Counter.FF3.And3.auxiliary_n,Counter.FF3.And4.x[1],Counter.FF3.And4.auxiliary_n,$PRE.Counter.FF3.Not1.auxiliary,Enable.y,$PRE.Clock.t_i,Clock.t_i,Counter.count,Counter.FF1.RS1.Nor1.auxiliary[2],$PRE.Counter.FF1.RS1.Nor1.auxiliary_n,Counter.FF1.RS1.Nor1.auxiliary_n,$PRE.Counter.FF1.RS1.Nor2.auxiliary_n,Counter.FF1.RS1.TD1.x,Counter.FF1.And1.auxiliary[2],Counter.FF1.And1.auxiliary_n,Counter.FF1.And2.x[1],Counter.FF1.And2.auxiliary[2],Counter.FF1.And2.auxiliary_n,Counter.FF1.And3.y,$PRE.Counter.FF1.And3.auxiliary_n,Counter.FF1.Not1.auxiliary,Counter.FF2.RS1.Nor1.auxiliary[2],$PRE.Counter.FF2.RS1.Nor1.auxiliary_n,Counter.FF2.RS1.Nor1.auxiliary_n,$PRE.Counter.FF2.RS1.Nor2.auxiliary_n,Counter.FF2.RS1.TD1.x,Counter.FF2.And1.auxiliary[2],Counter.FF2.And1.auxiliary_n,Counter.FF2.And2.x[1],Counter.FF2.And2.auxiliary[2],Counter.FF2.And2.auxiliary_n,Counter.FF2.And3.y,$PRE.Counter.FF2.And3.auxiliary_n,Counter.FF2.Not1.auxiliary,Counter.FF3.RS1.Nor1.auxiliary[2],$PRE.Counter.FF3.RS1.Nor1.auxiliary_n,Counter.FF3.RS1.Nor1.auxiliary_n,$PRE.Counter.FF3.RS1.Nor2.auxiliary_n,Counter.FF3.RS1.TD1.x,Counter.FF3.And1.auxiliary[2],Counter.FF3.And1.auxiliary_n,Counter.FF3.And2.x[1],Counter.FF3.And2.auxiliary[2],Counter.FF3.And2.auxiliary_n,Counter.FF3.And3.y,$PRE.Counter.FF3.And3.auxiliary_n,Counter.FF3.Not1.auxiliary) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 1 * 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.002305/0.2564, allocations: 0.4933 MB / 337.2 MB, free: 3.789 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005299/0.257, allocations: 67.2 kB / 337.3 MB, free: 3.723 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003065/0.2573, allocations: 78.73 kB / 337.4 MB, free: 3.645 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.005e-05/0.2573, allocations: 3.984 kB / 337.4 MB, free: 3.641 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/0.2574, allocations: 4 kB / 337.4 MB, free: 3.637 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001988/0.2594, allocations: 440 kB / 337.8 MB, free: 3.188 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001071/0.2605, allocations: 47.98 kB / 337.9 MB, free: 3.141 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001965/0.2625, allocations: 119.5 kB / 338 MB, free: 3.023 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00103/0.2636, allocations: 180.8 kB / 338.2 MB, free: 2.848 MB / 282.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007437/0.271, allocations: 1.522 MB / 339.7 MB, free: 1.301 MB / 282.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.006619/0.2777, allocations: 1.449 MB / 341.1 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002461/0.2803, allocations: 491.7 kB / 341.6 MB, free: 15.35 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009584/0.2813, allocations: 335.1 kB / 341.9 MB, free: 15.02 MB / 298.7 MB Notification: Performance of Backend: time 1.683e-06/0.2813, allocations: 0 / 341.9 MB, free: 15.02 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004695/0.286, allocations: 0.8606 MB / 342.8 MB, free: 14.14 MB / 298.7 MB Notification: Performance of SimCode: time 0.009638/0.2957, allocations: 2.413 MB / 345.2 MB, free: 11.67 MB / 298.7 MB Notification: Performance of Templates: time 0.416/0.7118, allocations: 32.94 MB / 378.2 MB, free: 62.02 MB / 314.7 MB "" Variables in the reference:time,Counter.FF1.RS1.TD1.x,Counter.FF1.RS2.TD1.x,Counter.FF2.RS1.TD1.x,Counter.FF2.RS2.TD1.x,Counter.FF3.RS1.TD1.x,Counter.FF3.RS2.TD1.x Variables in the result:Clock.period,Clock.startTime,Clock.width,Counter.FF1.And1.n,Counter.FF1.And2.n,Counter.FF1.And3.n,Counter.FF1.And4.n,Counter.FF1.RS1.Nor1.n,Counter.FF1.RS1.Nor2.n,Counter.FF1.RS1.TD1.delayTime,Counter.FF1.RS1.TD1.x,Counter.FF1.RS1.TD1.y0,Counter.FF1.RS1.delayTime,Counter.FF1.RS1.q0,Counter.FF1.RS2.Nor1.n,Counter.FF1.RS2.Nor2.n,Counter.FF1.RS2.TD1.delayTime,Counter.FF1.RS2.TD1.x,Counter.FF1.RS2.TD1.y0,Counter.FF1.RS2.delayTime,Counter.FF1.RS2.q0,Counter.FF1.delayTime,Counter.FF1.q0,Counter.FF2.And1.n,Counter.FF2.And2.n,Counter.FF2.And3.n,Counter.FF2.And4.n,Counter.FF2.RS1.Nor1.n,Counter.FF2.RS1.Nor2.n,Counter.FF2.RS1.TD1.delayTime,Counter.FF2.RS1.TD1.x,Counter.FF2.RS1.TD1.y0,Counter.FF2.RS1.delayTime,Counter.FF2.RS1.q0,Counter.FF2.RS2.Nor1.n,Counter.FF2.RS2.Nor2.n,Counter.FF2.RS2.TD1.delayTime,Counter.FF2.RS2.TD1.x,Counter.FF2.RS2.TD1.y0,Counter.FF2.RS2.delayTime,Counter.FF2.RS2.q0,Counter.FF2.delayTime,Counter.FF2.q0,Counter.FF3.And1.n,Counter.FF3.And2.n,Counter.FF3.And3.n,Counter.FF3.And4.n,Counter.FF3.RS1.Nor1.n,Counter.FF3.RS1.Nor2.n,Counter.FF3.RS1.TD1.delayTime,Counter.FF3.RS1.TD1.x,Counter.FF3.RS1.TD1.y0,Counter.FF3.RS1.delayTime,Counter.FF3.RS1.q0,Counter.FF3.RS2.Nor1.n,Counter.FF3.RS2.Nor2.n,Counter.FF3.RS2.TD1.delayTime,Counter.FF3.RS2.TD1.x,Counter.FF3.RS2.TD1.y0,Counter.FF3.RS2.delayTime,Counter.FF3.RS2.q0,Counter.FF3.delayTime,Counter.FF3.q0,Enable.after,Enable.before,Enable.stepTime,time