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.DFFREG.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.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.1_Modelica.Electrical.Digital.Examples.DFFREG") Notification: Performance of loadModel(Modelica): time 1.9/1.9, allocations: 171.1 MB / 186.7 MB, free: 1.023 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006657/0.0006657, allocations: 12 kB / 233.8 MB, free: 2.375 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08637/0.08708, allocations: 38.77 MB / 272.6 MB, free: 11.53 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.411/0.4981, allocations: 72.66 MB / 345.3 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/0.4985, allocations: 76.91 kB / 345.4 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1437/0.6421, allocations: 27.72 MB / 373.1 MB, free: 9.562 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.396e-06/0.6422, allocations: 0 / 373.1 MB, free: 9.562 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.022e-05/0.6423, allocations: 8 kB / 373.1 MB, free: 9.555 MB / 298.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.002724/0.645, allocations: 1.137 MB / 374.2 MB, free: 8.375 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.728e-05/0.6451, allocations: 8.031 kB / 374.2 MB, free: 8.367 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004016/0.6455, allocations: 86.97 kB / 374.3 MB, free: 8.281 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009461/0.6465, allocations: 429.5 kB / 374.7 MB, free: 7.852 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.658e-05/0.6466, allocations: 19.75 kB / 374.7 MB, free: 7.836 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.6467, allocations: 31.8 kB / 374.8 MB, free: 7.809 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/0.6481, allocations: 0.4999 MB / 375.3 MB, free: 7.418 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.6481, allocations: 3.984 kB / 375.3 MB, free: 7.414 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.108e-05/0.6482, allocations: 19.42 kB / 375.3 MB, free: 7.402 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.6482, allocations: 8 kB / 375.3 MB, free: 7.395 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009429/0.6492, allocations: 361.8 kB / 375.7 MB, free: 7.141 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/0.6512, allocations: 0.8558 MB / 376.5 MB, free: 6.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.6523, allocations: 0.5012 MB / 377 MB, free: 6.098 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.6523, allocations: 4.125 kB / 377 MB, free: 6.094 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001351/0.6537, allocations: 0.6537 MB / 377.7 MB, free: 5.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 3.537e-06/0.6537, allocations: 0 / 377.7 MB, free: 5.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.003914/0.6577, allocations: 1.794 MB / 379.5 MB, free: 3.965 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002253/0.6579, allocations: 277.1 kB / 379.7 MB, free: 3.652 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002479/0.6604, allocations: 1.161 MB / 380.9 MB, free: 2.695 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001551/0.6606, allocations: 41.52 kB / 380.9 MB, free: 2.652 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001487/0.6607, allocations: 149 kB / 381.1 MB, free: 2.539 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.6609, allocations: 84.16 kB / 381.2 MB, free: 2.469 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.858e-05/0.661, allocations: 15.11 kB / 381.2 MB, free: 2.457 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.6612, allocations: 339.4 kB / 381.5 MB, free: 2.129 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009115/0.6621, allocations: 340.5 kB / 381.9 MB, free: 1.898 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000924/0.6631, allocations: 375.6 kB / 382.2 MB, free: 1.578 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009246/0.664, allocations: 491.5 kB / 382.7 MB, free: 1.055 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.664, allocations: 4 kB / 382.7 MB, free: 1.051 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002734/0.6668, allocations: 1.129 MB / 383.8 MB, free: 15.87 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002598/0.6671, allocations: 247.8 kB / 384.1 MB, free: 15.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.6671, allocations: 4 kB / 384.1 MB, free: 15.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.6671, allocations: 0 / 384.1 MB, free: 15.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.126e-05/0.6672, allocations: 7.938 kB / 384.1 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.106e-06/0.6672, allocations: 0 / 384.1 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005252/0.6677, allocations: 35.97 kB / 384.1 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002852/0.668, allocations: 160.2 kB / 384.3 MB, free: 15.38 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.001548/0.6696, allocations: 0.7641 MB / 385 MB, free: 14.56 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002106/0.6698, allocations: 90.91 kB / 385.1 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003927/0.6702, allocations: 151.6 kB / 385.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.6702, allocations: 4 kB / 385.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.6702, allocations: 0 / 385.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.86e-06/0.6703, allocations: 0 / 385.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004262/0.6745, allocations: 1.97 MB / 387.3 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.6746, allocations: 3.938 kB / 387.3 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.48e-05/0.6746, allocations: 4 kB / 387.3 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.416e-06/0.6746, allocations: 7.891 kB / 387.3 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001143/0.6748, allocations: 39.97 kB / 387.3 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.6748, allocations: 0 / 387.3 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.6748, allocations: 0 / 387.3 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00321/0.678, allocations: 1.392 MB / 388.7 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001704/0.6797, allocations: 0.5581 MB / 389.3 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003186/0.6801, allocations: 63.91 kB / 389.3 MB, free: 10.1 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005637/0.6807, allocations: 43.84 kB / 389.4 MB, free: 10.06 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000708/0.6814, allocations: 239.7 kB / 389.6 MB, free: 9.824 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002728/0.6817, allocations: 151.9 kB / 389.7 MB, free: 9.676 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002119/0.6838, allocations: 0.8616 MB / 390.6 MB, free: 8.816 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.6839, allocations: 0 / 390.6 MB, free: 8.816 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008166/0.6847, allocations: 124 kB / 390.7 MB, free: 8.695 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.0003908/0.6851, allocations: 188.4 kB / 390.9 MB, free: 8.496 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003001/0.6881, allocations: 1.508 MB / 392.4 MB, free: 6.902 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.6882, allocations: 128 / 392.4 MB, free: 6.902 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001907/0.6901, allocations: 1.124 MB / 393.5 MB, free: 5.691 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001973/0.6921, allocations: 274.9 kB / 393.8 MB, free: 5.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005055/0.6972, allocations: 2.127 MB / 395.9 MB, free: 3.273 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001207/0.6985, allocations: 1.042 MB / 397 MB, free: 2.203 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002449/0.6987, allocations: 34.14 kB / 397 MB, free: 2.172 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.932e-05/0.6988, allocations: 15.44 kB / 397 MB, free: 2.156 MB / 314.7 MB Notification: Performance of SimCode: time 1.103e-06/0.6988, allocations: 7.938 kB / 397 MB, free: 2.148 MB / 314.7 MB Notification: Performance of Templates: time 0.03557/0.7344, allocations: 13.53 MB / 410.6 MB, free: 4.383 MB / 330.7 MB