Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRL.dataOut.1.|dFFREGSRL.dataOut.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL") Notification: Performance of loadModel(Modelica): time 1.848/1.848, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003568/0.000357, allocations: 8 kB / 263.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08094/0.08133, allocations: 44.52 MB / 308.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.DFFREGSRL): time 0.002265/0.08364, allocations: 1.45 MB / 309.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002558/0.08624, allocations: 1.027 MB / 310.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.0864, allocations: 4 kB / 310.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001491/0.08656, allocations: 19.84 kB / 310.9 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003297/0.0869, allocations: 175.6 kB / 311 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003682/0.08729, allocations: 87.88 kB / 311.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004454/0.08775, allocations: 303.5 kB / 311.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.08798, allocations: 92.84 kB / 311.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001424/0.08942, allocations: 0.8228 MB / 312.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006808/0.09015, allocations: 223.4 kB / 312.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001982/0.09038, allocations: 12 kB / 312.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001819/0.09058, allocations: 12 kB / 312.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005328/0.09114, allocations: 235.2 kB / 312.8 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000505/0.09167, allocations: 209 kB / 313 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002886/0.09458, allocations: 1.196 MB / 314.2 MB, free: 11.15 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.09463, allocations: 0 / 314.2 MB, free: 11.15 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.51e-06/0.09465, allocations: 0 / 314.2 MB, free: 11.15 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.044e-05/0.0947, allocations: 0 / 314.2 MB, free: 11.15 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.004117/0.09885, allocations: 1.485 MB / 315.7 MB, free: 9.562 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.964e-05/0.09893, allocations: 8.031 kB / 315.7 MB, free: 9.555 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004918/0.09944, allocations: 130.5 kB / 315.8 MB, free: 9.426 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001588/0.1011, allocations: 0.5088 MB / 316.3 MB, free: 8.867 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000112/0.1012, allocations: 23.98 kB / 316.3 MB, free: 8.844 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002112/0.1014, allocations: 28 kB / 316.4 MB, free: 8.816 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002762/0.1042, allocations: 0.626 MB / 317 MB, free: 8.184 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.1043, allocations: 0 / 317 MB, free: 8.184 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000162/0.1044, allocations: 12 kB / 317 MB, free: 8.172 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.969e-05/0.1045, allocations: 8 kB / 317 MB, free: 8.164 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001997/0.1065, allocations: 467.6 kB / 317.5 MB, free: 7.707 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004237/0.1108, allocations: 1.084 MB / 318.6 MB, free: 6.566 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002488/0.1133, allocations: 0.7014 MB / 319.3 MB, free: 5.855 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/0.1134, allocations: 0 / 319.3 MB, free: 5.855 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002692/0.1161, allocations: 0.7594 MB / 320 MB, free: 5.059 MB / 266.7 MB Notification: Performance of pre-optimization done (n=36): time 5.307e-06/0.1161, allocations: 0 / 320 MB, free: 5.059 MB / 266.7 MB Notification: Performance of matching and sorting (n=36): time 0.007895/0.1241, allocations: 2.141 MB / 322.2 MB, free: 2.805 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004774/0.1246, allocations: 329 kB / 322.5 MB, free: 2.422 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007241/0.1319, allocations: 1.833 MB / 324.3 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002867/0.1322, allocations: 45.69 kB / 324.4 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005055/0.1328, allocations: 244.9 kB / 324.6 MB, free: 284 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000325/0.1331, allocations: 87.08 kB / 324.7 MB, free: 196 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001356/0.1333, allocations: 12 kB / 324.7 MB, free: 184 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003006/0.1336, allocations: 322.8 kB / 325 MB, free: 15.86 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001917/0.1355, allocations: 451.9 kB / 325.5 MB, free: 15.41 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001942/0.1375, allocations: 486.7 kB / 325.9 MB, free: 14.93 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001819/0.1393, allocations: 0.591 MB / 326.5 MB, free: 14.29 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.591e-06/0.1394, allocations: 0 / 326.5 MB, free: 14.29 MB / 282.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.005114/0.1445, allocations: 1.33 MB / 327.8 MB, free: 12.9 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005082/0.1451, allocations: 289.5 kB / 328.1 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.1451, allocations: 4 kB / 328.1 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.408e-05/0.1452, allocations: 0 / 328.1 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.825e-05/0.1452, allocations: 12.05 kB / 328.1 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.68e-05/0.1453, allocations: 4 kB / 328.2 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/0.1463, allocations: 43.88 kB / 328.2 MB, free: 12.51 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003951/0.1468, allocations: 123.9 kB / 328.3 MB, free: 12.39 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 43 ($PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.set,$PRE.dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.reset,$PRE.dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 8 * 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.003188/0.15, allocations: 0.9946 MB / 329.3 MB, free: 11.33 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005007/0.1505, allocations: 130.5 kB / 329.4 MB, free: 11.2 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001207/0.1517, allocations: 259.5 kB / 329.7 MB, free: 10.95 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.341e-05/0.1518, allocations: 3.984 kB / 329.7 MB, free: 10.95 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.732e-06/0.1518, allocations: 0 / 329.7 MB, free: 10.95 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.923e-06/0.1518, allocations: 0 / 329.7 MB, free: 10.95 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009152/0.161, allocations: 2.442 MB / 332.1 MB, free: 8.391 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.735e-06/0.1611, allocations: 0 / 332.1 MB, free: 8.391 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.068e-05/0.1611, allocations: 4 kB / 332.1 MB, free: 8.387 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.022e-05/0.1612, allocations: 8 kB / 332.1 MB, free: 8.379 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000219/0.1614, allocations: 43.95 kB / 332.2 MB, free: 8.336 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.635e-06/0.1614, allocations: 0 / 332.2 MB, free: 8.336 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.705e-06/0.1614, allocations: 0 / 332.2 MB, free: 8.336 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006096/0.1676, allocations: 1.665 MB / 333.9 MB, free: 6.602 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003085/0.1707, allocations: 0.6784 MB / 334.5 MB, free: 5.902 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005382/0.1713, allocations: 63.97 kB / 334.6 MB, free: 5.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009853/0.1723, allocations: 39.97 kB / 334.6 MB, free: 5.801 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001586/0.1739, allocations: 351.6 kB / 335 MB, free: 5.457 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005193/0.1745, allocations: 159.9 kB / 335.1 MB, free: 5.301 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.006519/0.181, allocations: 1.329 MB / 336.5 MB, free: 3.969 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.28e-06/0.1811, allocations: 0 / 336.5 MB, free: 3.969 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008532/0.1819, allocations: 155.9 kB / 336.6 MB, free: 3.816 MB / 282.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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.next_assign_val[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.set,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRL.delay.inertialDelaySensitive[1].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 8 * 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 Backend phase and start with SimCode phase: time 0.0003558/0.1823, allocations: 197.6 kB / 336.8 MB, free: 3.609 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003192/0.1855, allocations: 1.936 MB / 338.7 MB, free: 1.574 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.195e-06/0.1855, allocations: 3.938 kB / 338.7 MB, free: 1.57 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002/0.1875, allocations: 1.393 MB / 340.1 MB, free: 80 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001357/0.1889, allocations: 311.9 kB / 340.4 MB, free: 15.78 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006411/0.1954, allocations: 3.196 MB / 343.6 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001548/0.197, allocations: 1.22 MB / 344.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.765e-05/0.1971, allocations: 27.44 kB / 344.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of SimCode: time 1.464e-06/0.1971, allocations: 0 / 344.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of Templates: time 0.02092/0.218, allocations: 11.34 MB / 356.2 MB, free: 15.71 MB / 314.7 MB