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.DFFREGSRH.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.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRH") Notification: Performance of loadModel(Modelica): time 2.027/2.027, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003645/0.0003646, allocations: 8 kB / 233.8 MB, free: 2.402 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08446/0.08485, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3774/0.4623, allocations: 72.9 MB / 345.5 MB, free: 420 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003231/0.4627, allocations: 70.84 kB / 345.6 MB, free: 384 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.166/0.6287, allocations: 30.44 MB / 376 MB, free: 6.816 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.6288, allocations: 0 / 376 MB, free: 6.816 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.545e-05/0.6288, allocations: 16 kB / 376 MB, free: 6.801 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.002332/0.6312, allocations: 1.472 MB / 377.5 MB, free: 5.305 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.6312, allocations: 8.031 kB / 377.5 MB, free: 5.297 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003246/0.6316, allocations: 134.4 kB / 377.7 MB, free: 5.164 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001203/0.6328, allocations: 0.5107 MB / 378.2 MB, free: 4.637 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.731e-05/0.6329, allocations: 30.83 kB / 378.2 MB, free: 4.613 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/0.6331, allocations: 27.5 kB / 378.2 MB, free: 4.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001647/0.6347, allocations: 0.6242 MB / 378.8 MB, free: 4.113 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.6348, allocations: 0 / 378.8 MB, free: 4.113 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000103/0.6349, allocations: 19.67 kB / 378.9 MB, free: 4.098 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.659e-06/0.6349, allocations: 7.938 kB / 378.9 MB, free: 4.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001201/0.6361, allocations: 456.4 kB / 379.3 MB, free: 3.777 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002557/0.6387, allocations: 1.033 MB / 380.3 MB, free: 2.914 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.6402, allocations: 0.6899 MB / 381 MB, free: 2.512 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.286e-05/0.6403, allocations: 7.938 kB / 381 MB, free: 2.504 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001658/0.642, allocations: 0.7663 MB / 381.8 MB, free: 1.852 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 5.621e-06/0.642, allocations: 0 / 381.8 MB, free: 1.852 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.004906/0.6469, allocations: 2.131 MB / 383.9 MB, free: 15.92 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003019/0.6473, allocations: 329 kB / 384.3 MB, free: 15.54 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003784/0.6511, allocations: 1.646 MB / 385.9 MB, free: 13.87 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000246/0.6514, allocations: 45.7 kB / 386 MB, free: 13.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002904/0.6517, allocations: 222.5 kB / 386.2 MB, free: 13.6 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002106/0.6519, allocations: 75.08 kB / 386.2 MB, free: 13.53 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.045e-05/0.652, allocations: 16 kB / 386.3 MB, free: 13.51 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002069/0.6522, allocations: 362.8 kB / 386.6 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001184/0.6534, allocations: 443.9 kB / 387 MB, free: 12.71 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001189/0.6546, allocations: 482 kB / 387.5 MB, free: 12.23 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/0.6558, allocations: 0.587 MB / 388.1 MB, free: 11.6 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.6558, allocations: 0 / 388.1 MB, free: 11.6 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.003184/0.659, allocations: 1.365 MB / 389.5 MB, free: 10.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000318/0.6593, allocations: 289.5 kB / 389.8 MB, free: 9.844 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.609e-06/0.6594, allocations: 0 / 389.8 MB, free: 9.844 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.6594, allocations: 4 kB / 389.8 MB, free: 9.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.194e-05/0.6594, allocations: 4 kB / 389.8 MB, free: 9.836 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.465e-05/0.6595, allocations: 3.984 kB / 389.8 MB, free: 9.832 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006296/0.6601, allocations: 51.88 kB / 389.8 MB, free: 9.781 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002823/0.6604, allocations: 155.9 kB / 390 MB, free: 9.629 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: 43 ($PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.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.001907/0.6623, allocations: 0.9388 MB / 390.9 MB, free: 8.633 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003191/0.6627, allocations: 130.5 kB / 391 MB, free: 8.504 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005839/0.6633, allocations: 199.8 kB / 391.2 MB, free: 8.301 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/0.6633, allocations: 4 kB / 391.2 MB, free: 8.297 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.6633, allocations: 7.938 kB / 391.2 MB, free: 8.289 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.6633, allocations: 3.984 kB / 391.2 MB, free: 8.285 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005326/0.6686, allocations: 2.344 MB / 393.6 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.687e-06/0.6687, allocations: 3.984 kB / 393.6 MB, free: 5.824 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.643e-05/0.6687, allocations: 3.938 kB / 393.6 MB, free: 5.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.732e-06/0.6687, allocations: 0 / 393.6 MB, free: 5.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001234/0.6689, allocations: 39.98 kB / 393.6 MB, free: 5.781 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.251e-06/0.6689, allocations: 8 kB / 393.6 MB, free: 5.773 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.6689, allocations: 0 / 393.6 MB, free: 5.773 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00369/0.6726, allocations: 1.641 MB / 395.3 MB, free: 4.062 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00208/0.6747, allocations: 0.6513 MB / 395.9 MB, free: 3.391 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003821/0.6752, allocations: 63.91 kB / 396 MB, free: 3.328 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006443/0.6758, allocations: 51.8 kB / 396 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009546/0.6768, allocations: 359.6 kB / 396.4 MB, free: 2.926 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002792/0.6771, allocations: 163.8 kB / 396.6 MB, free: 2.766 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002941/0.68, allocations: 1.204 MB / 397.8 MB, free: 1.559 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.92e-07/0.6801, allocations: 0 / 397.8 MB, free: 1.559 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001059/0.6812, allocations: 152 kB / 397.9 MB, free: 1.41 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.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.0005878/0.6818, allocations: 189.7 kB / 398.1 MB, free: 1.211 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.006247/0.688, allocations: 1.917 MB / 400 MB, free: 15.2 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/0.6881, allocations: 0 / 400 MB, free: 15.2 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003907/0.6921, allocations: 1.397 MB / 401.4 MB, free: 13.7 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002626/0.6947, allocations: 292.1 kB / 401.7 MB, free: 13.42 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006866/0.7016, allocations: 2.945 MB / 404.6 MB, free: 10.44 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001434/0.7031, allocations: 1.166 MB / 405.8 MB, free: 9.246 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003266/0.7035, allocations: 79.19 kB / 405.9 MB, free: 9.168 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.927e-05/0.7036, allocations: 27.44 kB / 405.9 MB, free: 9.141 MB / 330.7 MB Notification: Performance of SimCode: time 1.232e-06/0.7036, allocations: 0 / 405.9 MB, free: 9.141 MB / 330.7 MB Notification: Performance of Templates: time 0.03629/0.7399, allocations: 15.47 MB / 421.4 MB, free: 9.277 MB / 346.7 MB