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.Counter3.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.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.1_Modelica.Electrical.Digital.Examples.Counter3") Notification: Performance of loadModel(Modelica): time 1.63/1.63, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003505/0.0003505, allocations: 8 kB / 233.9 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08866/0.08903, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.Counter3): time 0.005769/0.09485, allocations: 2.937 MB / 275.6 MB, free: 8.59 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.006068/0.101, allocations: 1.599 MB / 277.2 MB, free: 6.984 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003448/0.1013, allocations: 15.88 kB / 277.2 MB, free: 6.969 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000402/0.1018, allocations: 91.34 kB / 277.3 MB, free: 6.879 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003932/0.1022, allocations: 83.72 kB / 277.4 MB, free: 6.797 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001374/0.1036, allocations: 267.6 kB / 277.6 MB, free: 6.535 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001643/0.1052, allocations: 0.715 MB / 278.3 MB, free: 5.816 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001073/0.1063, allocations: 391.2 kB / 278.7 MB, free: 5.43 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00195/0.1083, allocations: 0.7561 MB / 279.5 MB, free: 4.672 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001431/0.1098, allocations: 0.6666 MB / 280.1 MB, free: 4.004 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004739/0.1102, allocations: 28 kB / 280.2 MB, free: 3.977 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004726/0.1107, allocations: 24 kB / 280.2 MB, free: 3.953 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008246/0.1116, allocations: 311.3 kB / 280.5 MB, free: 3.648 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003589/0.112, allocations: 209.1 kB / 280.7 MB, free: 3.438 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004257/0.1162, allocations: 2.536 MB / 283.2 MB, free: 0.8945 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1163, allocations: 0 / 283.2 MB, free: 0.8945 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.1163, allocations: 0 / 283.2 MB, free: 0.8945 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.388e-05/0.1164, allocations: 4 kB / 283.2 MB, free: 0.8906 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: 231 * Number of variables: 231 Notification: Performance of Generate backend data structure: time 0.004509/0.1209, allocations: 1.239 MB / 284.5 MB, free: 15.59 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.121, allocations: 8.031 kB / 284.5 MB, free: 15.58 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007299/0.1217, allocations: 118.7 kB / 284.6 MB, free: 15.46 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001916/0.1236, allocations: 0.6682 MB / 285.3 MB, free: 14.75 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/0.1238, allocations: 70 kB / 285.3 MB, free: 14.69 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004355/0.1242, allocations: 95.94 kB / 285.4 MB, free: 14.59 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00419/0.1284, allocations: 1.295 MB / 286.7 MB, free: 13.29 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.068e-05/0.1285, allocations: 0 / 286.7 MB, free: 13.29 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002686/0.1288, allocations: 36 kB / 286.8 MB, free: 13.25 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.488e-05/0.1288, allocations: 28 kB / 286.8 MB, free: 13.23 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003868/0.1327, allocations: 1.078 MB / 287.9 MB, free: 12.15 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008569/0.1413, allocations: 3.089 MB / 290.9 MB, free: 9.008 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004071/0.1454, allocations: 1.123 MB / 292.1 MB, free: 7.875 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003347/0.1458, allocations: 13 kB / 292.1 MB, free: 7.863 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002298/0.1481, allocations: 0.8246 MB / 292.9 MB, free: 7.023 MB / 250.7 MB Notification: Performance of pre-optimization done (n=88): time 3.998e-06/0.1481, allocations: 0 / 292.9 MB, free: 7.023 MB / 250.7 MB Notification: Performance of matching and sorting (n=88): time 0.005664/0.1538, allocations: 1.63 MB / 294.5 MB, free: 5.383 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.46e-05/0.1539, allocations: 86.11 kB / 294.6 MB, free: 5.281 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00106/0.155, allocations: 0.548 MB / 295.2 MB, free: 4.727 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003288/0.1553, allocations: 69.69 kB / 295.2 MB, free: 4.652 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003147/0.1556, allocations: 288.9 kB / 295.5 MB, free: 4.363 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000436/0.1561, allocations: 201.6 kB / 295.7 MB, free: 4.164 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002185/0.1563, allocations: 24 kB / 295.7 MB, free: 4.141 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002037/0.1565, allocations: 366.8 kB / 296.1 MB, free: 3.773 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001681/0.1582, allocations: 465.8 kB / 296.6 MB, free: 3.32 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001796/0.16, allocations: 0.5734 MB / 297.1 MB, free: 2.715 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001907/0.1619, allocations: 0.5717 MB / 297.7 MB, free: 2.137 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.162, allocations: 0 / 297.7 MB, free: 2.137 MB / 250.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.004658/0.1666, allocations: 1.451 MB / 299.2 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.881e-05/0.1667, allocations: 43.09 kB / 299.2 MB, free: 0.625 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.1667, allocations: 0 / 299.2 MB, free: 0.625 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.077e-05/0.1668, allocations: 15.89 kB / 299.2 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005189/0.1673, allocations: 155.7 kB / 299.4 MB, free: 468 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.505e-05/0.1674, allocations: 8 kB / 299.4 MB, free: 460 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001372/0.1687, allocations: 135.4 kB / 299.5 MB, free: 324 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.2156/0.3843, allocations: 0.8194 MB / 300.3 MB, free: 28.66 MB / 250.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.001433/0.3858, allocations: 499.9 kB / 300.8 MB, free: 28.5 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003558/0.3862, allocations: 67.31 kB / 300.9 MB, free: 28.5 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002151/0.3864, allocations: 74.62 kB / 300.9 MB, free: 28.49 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/0.3864, allocations: 8.938 kB / 301 MB, free: 28.49 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.3864, allocations: 3.469 kB / 301 MB, free: 28.49 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001343/0.3878, allocations: 444.9 kB / 301.4 MB, free: 28.39 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005249/0.3883, allocations: 44.23 kB / 301.4 MB, free: 28.39 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/0.3894, allocations: 101.7 kB / 301.5 MB, free: 28.39 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006365/0.3901, allocations: 178.9 kB / 301.7 MB, free: 28.39 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004721/0.3948, allocations: 1.529 MB / 303.2 MB, free: 28.18 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.004081/0.3989, allocations: 1.446 MB / 304.7 MB, free: 27.92 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001633/0.4006, allocations: 495.8 kB / 305.2 MB, free: 27.79 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0006042/0.4012, allocations: 338.2 kB / 305.5 MB, free: 27.61 MB / 250.7 MB Notification: Performance of Backend: time 5.51e-07/0.4013, allocations: 0.8125 kB / 305.5 MB, free: 27.61 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002998/0.4043, allocations: 0.8623 MB / 306.4 MB, free: 27.32 MB / 250.7 MB Notification: Performance of SimCode: time 0.005926/0.4102, allocations: 2.407 MB / 308.8 MB, free: 25.69 MB / 250.7 MB Notification: Performance of Templates: time 0.05764/0.4679, allocations: 32.95 MB / 341.7 MB, free: 11.78 MB / 266.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