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.DFFREG.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.DFFREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREG.dFFR.clock|dFFREG.dFFR.reset|dFFREG.delay.inertialDelaySensitive.1..x|dFFREG.delay.inertialDelaySensitive.1..y|dFFREG.delay.inertialDelaySensitive.2..x|dFFREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG") Notification: Performance of loadModel(Modelica): time 2.341/2.341, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005177/0.0005178, allocations: 8 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1507, allocations: 44.5 MB / 309 MB, free: 376 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5296/0.6804, allocations: 77.96 MB / 387 MB, free: 15.42 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.6807, allocations: 71.42 kB / 387.1 MB, free: 15.42 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08369/0.7644, allocations: 27.8 MB / 414.9 MB, free: 9.18 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.7645, allocations: 0 / 414.9 MB, free: 9.18 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.439e-05/0.7645, allocations: 11.62 kB / 414.9 MB, free: 9.18 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001474/0.766, allocations: 1.136 MB / 416 MB, free: 8.195 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.7661, allocations: 11.81 kB / 416 MB, free: 8.191 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002155/0.7663, allocations: 89.52 kB / 416.1 MB, free: 8.148 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007693/0.7671, allocations: 427.5 kB / 416.5 MB, free: 7.844 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.933e-05/0.7671, allocations: 22.06 kB / 416.6 MB, free: 7.84 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.7673, allocations: 26.5 kB / 416.6 MB, free: 7.836 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001235/0.7685, allocations: 0.5143 MB / 417.1 MB, free: 7.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.7685, allocations: 7.922 kB / 417.1 MB, free: 7.672 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-05/0.7686, allocations: 11.31 kB / 417.1 MB, free: 7.672 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.7687, allocations: 3.875 kB / 417.1 MB, free: 7.672 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008718/0.7695, allocations: 374.9 kB / 417.5 MB, free: 7.602 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001856/0.7714, allocations: 0.8582 MB / 418.3 MB, free: 7.121 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.7725, allocations: 0.5084 MB / 418.9 MB, free: 7.035 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.7726, allocations: 4 kB / 418.9 MB, free: 7.031 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001197/0.7738, allocations: 0.6598 MB / 419.5 MB, free: 6.703 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.387e-06/0.7738, allocations: 0 / 419.5 MB, free: 6.703 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.003511/0.7773, allocations: 1.81 MB / 421.3 MB, free: 5.918 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001579/0.7775, allocations: 277.9 kB / 421.6 MB, free: 5.625 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002321/0.7799, allocations: 1.161 MB / 422.8 MB, free: 5.137 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00022/0.7801, allocations: 51.53 kB / 422.8 MB, free: 5.098 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.7803, allocations: 146.6 kB / 423 MB, free: 5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001629/0.7805, allocations: 79.03 kB / 423 MB, free: 4.957 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.392e-05/0.7805, allocations: 10.5 kB / 423 MB, free: 4.957 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.511e-05/0.7806, allocations: 339.2 kB / 423.4 MB, free: 4.637 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008458/0.7815, allocations: 348.5 kB / 423.7 MB, free: 4.582 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000815/0.7823, allocations: 392.9 kB / 424.1 MB, free: 4.484 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007643/0.7831, allocations: 0.4893 MB / 424.6 MB, free: 4.215 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.7831, allocations: 0 / 424.6 MB, free: 4.215 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002336/0.7855, allocations: 1.147 MB / 425.7 MB, free: 3.801 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002011/0.7857, allocations: 244.4 kB / 426 MB, free: 3.566 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.7858, allocations: 0 / 426 MB, free: 3.566 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.898e-05/0.7858, allocations: 3.906 kB / 426 MB, free: 3.566 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.312e-05/0.7858, allocations: 0 / 426 MB, free: 3.566 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.489e-05/0.7859, allocations: 7.859 kB / 426 MB, free: 3.562 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009085/0.7868, allocations: 41.8 kB / 426 MB, free: 3.547 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004039/0.7872, allocations: 153.2 kB / 426.2 MB, free: 3.535 MB / 314.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: 40 ($PRE.dFFREG.delay.inertialDelaySensitive[2].y,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 7 * 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.002417/0.7897, allocations: 0.7729 MB / 426.9 MB, free: 3.043 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004002/0.7901, allocations: 85.31 kB / 427 MB, free: 3.004 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008237/0.791, allocations: 151.2 kB / 427.2 MB, free: 2.922 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.791, allocations: 3.938 kB / 427.2 MB, free: 2.922 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/0.791, allocations: 0 / 427.2 MB, free: 2.922 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.7911, allocations: 7.984 kB / 427.2 MB, free: 2.914 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006381/0.7975, allocations: 1.991 MB / 429.2 MB, free: 2.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.7975, allocations: 7.906 kB / 429.2 MB, free: 2.016 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.788e-05/0.7976, allocations: 0 / 429.2 MB, free: 2.016 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.071e-05/0.7976, allocations: 0 / 429.2 MB, free: 2.016 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000204/0.7979, allocations: 40.94 kB / 429.2 MB, free: 2.008 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.496e-06/0.7979, allocations: 0 / 429.2 MB, free: 2.008 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/0.7979, allocations: 11.81 kB / 429.2 MB, free: 2 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003523/0.8014, allocations: 1.403 MB / 430.6 MB, free: 1.453 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00131/0.8028, allocations: 0.5623 MB / 431.2 MB, free: 1.176 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002728/0.8031, allocations: 53.97 kB / 431.3 MB, free: 1.168 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000498/0.8036, allocations: 37.69 kB / 431.3 MB, free: 1.156 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000575/0.8042, allocations: 242.7 kB / 431.5 MB, free: 1.086 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002066/0.8044, allocations: 165.2 kB / 431.7 MB, free: 1.062 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001683/0.8061, allocations: 0.8622 MB / 432.6 MB, free: 0.707 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.8061, allocations: 0 / 432.6 MB, free: 0.707 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007056/0.8068, allocations: 124.6 kB / 432.7 MB, free: 0.707 MB / 314.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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.delay.inertialDelaySensitive[2].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 7 * 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.0003164/0.8072, allocations: 190.1 kB / 432.9 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002376/0.8096, allocations: 1.534 MB / 434.4 MB, free: 15.99 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.8096, allocations: 3.875 kB / 434.4 MB, free: 15.99 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001618/0.8112, allocations: 1.114 MB / 435.5 MB, free: 15.47 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001871/0.8131, allocations: 283.2 kB / 435.8 MB, free: 15.25 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005303/0.8184, allocations: 2.161 MB / 438 MB, free: 13.27 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001251/0.8198, allocations: 1.035 MB / 439 MB, free: 12.21 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003077/0.8201, allocations: 41.44 kB / 439 MB, free: 12.17 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.325e-05/0.8202, allocations: 19.44 kB / 439 MB, free: 12.15 MB / 330.7 MB Notification: Performance of SimCode: time 1.423e-06/0.8202, allocations: 0 / 439 MB, free: 12.15 MB / 330.7 MB Notification: Performance of Templates: time 0.03257/0.8528, allocations: 13.55 MB / 452.6 MB, free: 14.37 MB / 346.7 MB