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.13/2.13, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003418/0.0003419, allocations: 16 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09148/0.09184, allocations: 44.5 MB / 309.1 MB, free: 372 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002816/0.09471, allocations: 1.723 MB / 310.8 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003278/0.09802, allocations: 1.077 MB / 311.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.09817, allocations: 7.938 kB / 311.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001899/0.09838, allocations: 43.69 kB / 311.9 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001463/0.09854, allocations: 35.88 kB / 311.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005216/0.09907, allocations: 107.8 kB / 312.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004722/0.09956, allocations: 267.9 kB / 312.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003013/0.09987, allocations: 120.1 kB / 312.4 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008833/0.1008, allocations: 0.5146 MB / 312.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004072/0.1012, allocations: 239.5 kB / 313.2 MB, free: 12.22 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001347/0.1013, allocations: 12 kB / 313.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000135/0.1015, allocations: 8 kB / 313.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002449/0.1017, allocations: 127.7 kB / 313.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.1019, allocations: 89.52 kB / 313.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009045/0.1028, allocations: 0.7675 MB / 314.2 MB, free: 11.21 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1028, allocations: 0 / 314.2 MB, free: 11.21 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1028, allocations: 0 / 314.2 MB, free: 11.21 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.1029, allocations: 0 / 314.2 MB, free: 11.21 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001421/0.1043, allocations: 0.7204 MB / 314.9 MB, free: 10.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.1043, allocations: 12.03 kB / 314.9 MB, free: 10.42 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001771/0.1045, allocations: 51.39 kB / 315 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006906/0.1052, allocations: 334.4 kB / 315.3 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.204e-05/0.1053, allocations: 24.66 kB / 315.3 MB, free: 9.977 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/0.1055, allocations: 32 kB / 315.3 MB, free: 9.945 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.1069, allocations: 481.8 kB / 315.8 MB, free: 9.469 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.1069, allocations: 3.984 kB / 315.8 MB, free: 9.465 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001074/0.107, allocations: 19.94 kB / 315.8 MB, free: 9.445 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.1071, allocations: 8 kB / 315.8 MB, free: 9.438 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001301/0.1084, allocations: 390.3 kB / 316.2 MB, free: 9.055 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00295/0.1113, allocations: 1.093 MB / 317.3 MB, free: 7.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001863/0.1132, allocations: 478.5 kB / 317.8 MB, free: 7.434 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001216/0.1134, allocations: 4 kB / 317.8 MB, free: 7.43 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009714/0.1144, allocations: 341.2 kB / 318.1 MB, free: 7.086 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 3.527e-06/0.1144, allocations: 0 / 318.1 MB, free: 7.086 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.003704/0.1181, allocations: 0.7393 MB / 318.9 MB, free: 6.328 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.634e-05/0.1182, allocations: 110.8 kB / 319 MB, free: 6.195 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004985/0.1187, allocations: 306.3 kB / 319.3 MB, free: 5.891 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001131/0.1189, allocations: 41.7 kB / 319.3 MB, free: 5.844 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/0.1191, allocations: 172.7 kB / 319.5 MB, free: 5.668 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001644/0.1192, allocations: 75.11 kB / 319.6 MB, free: 5.594 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.064e-05/0.1193, allocations: 11.98 kB / 319.6 MB, free: 5.582 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.1195, allocations: 338.8 kB / 319.9 MB, free: 5.242 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006601/0.1202, allocations: 180.6 kB / 320.1 MB, free: 5.062 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007071/0.1209, allocations: 245.3 kB / 320.3 MB, free: 4.809 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007648/0.1217, allocations: 251.3 kB / 320.6 MB, free: 4.551 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.1217, allocations: 3.984 kB / 320.6 MB, free: 4.547 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.002004/0.1237, allocations: 0.6337 MB / 321.2 MB, free: 3.895 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.587e-05/0.1238, allocations: 67.39 kB / 321.3 MB, free: 3.816 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.1239, allocations: 4 kB / 321.3 MB, free: 3.812 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.1239, allocations: 0 / 321.3 MB, free: 3.812 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002162/0.1241, allocations: 59.86 kB / 321.3 MB, free: 3.754 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.292e-05/0.1241, allocations: 8.031 kB / 321.3 MB, free: 3.746 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005473/0.1247, allocations: 43.88 kB / 321.4 MB, free: 3.703 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004231/0.1251, allocations: 287.7 kB / 321.7 MB, free: 3.422 MB / 266.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.0005448/0.1257, allocations: 293.5 kB / 321.9 MB, free: 3.113 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/0.1258, allocations: 31.62 kB / 322 MB, free: 3.082 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001089/0.1259, allocations: 34.95 kB / 322 MB, free: 3.051 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.126, allocations: 3.984 kB / 322 MB, free: 3.047 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.126, allocations: 0 / 322 MB, free: 3.047 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004611/0.1264, allocations: 200.6 kB / 322.2 MB, free: 2.832 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001838/0.1266, allocations: 16 kB / 322.2 MB, free: 2.816 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004073/0.1271, allocations: 39.88 kB / 322.3 MB, free: 2.777 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000322/0.1274, allocations: 91.89 kB / 322.4 MB, free: 2.688 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002008/0.1294, allocations: 0.789 MB / 323.1 MB, free: 1.855 MB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001826/0.1313, allocations: 0.7555 MB / 323.9 MB, free: 1.07 MB / 266.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006449/0.1319, allocations: 195.9 kB / 324.1 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003021/0.1323, allocations: 202 kB / 324.3 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of Backend: time 8.62e-07/0.1323, allocations: 0 / 324.3 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001371/0.1336, allocations: 486.9 kB / 324.8 MB, free: 180 kB / 266.7 MB Notification: Performance of SimCode: time 0.002879/0.1365, allocations: 1.382 MB / 326.1 MB, free: 14.72 MB / 282.7 MB Notification: Performance of Templates: time 0.02673/0.1633, allocations: 12.48 MB / 338.6 MB, free: 1.832 MB / 282.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