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.DFFREGSRH.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.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRH") Notification: Performance of loadModel(Modelica): time 2.295/2.295, allocations: 194.8 MB / 211.7 MB, free: 2.879 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003894/0.0003895, allocations: 8 kB / 264.5 MB, free: 12.92 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1033, allocations: 44.51 MB / 309 MB, free: 356 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4571/0.5605, allocations: 78.21 MB / 387.3 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/0.5609, allocations: 68.81 kB / 387.3 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1128/0.6736, allocations: 31.09 MB / 418.4 MB, free: 7.484 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.186e-06/0.6737, allocations: 4 kB / 418.4 MB, free: 7.48 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.143e-05/0.6738, allocations: 19.47 kB / 418.4 MB, free: 7.477 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.002606/0.6764, allocations: 1.486 MB / 419.9 MB, free: 6.246 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.6765, allocations: 11.75 kB / 419.9 MB, free: 6.246 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004093/0.6769, allocations: 132.7 kB / 420.1 MB, free: 6.176 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/0.6782, allocations: 0.514 MB / 420.6 MB, free: 5.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7e-05/0.6783, allocations: 25.47 kB / 420.6 MB, free: 5.816 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001391/0.6784, allocations: 30.39 kB / 420.6 MB, free: 5.812 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.68, allocations: 0.6203 MB / 421.3 MB, free: 5.637 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.6801, allocations: 4 kB / 421.3 MB, free: 5.633 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001034/0.6802, allocations: 17.16 kB / 421.3 MB, free: 5.633 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.6802, allocations: 7.875 kB / 421.3 MB, free: 5.629 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/0.6814, allocations: 466.2 kB / 421.7 MB, free: 5.551 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002633/0.6841, allocations: 1.1 MB / 422.8 MB, free: 4.953 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001526/0.6857, allocations: 0.6942 MB / 423.5 MB, free: 4.855 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.6858, allocations: 0 / 423.5 MB, free: 4.855 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001568/0.6873, allocations: 0.7727 MB / 424.3 MB, free: 4.508 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 4.508e-06/0.6874, allocations: 0 / 424.3 MB, free: 4.508 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.004495/0.6919, allocations: 2.157 MB / 426.5 MB, free: 3.625 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002265/0.6922, allocations: 328.1 kB / 426.8 MB, free: 3.297 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004344/0.6965, allocations: 1.828 MB / 428.6 MB, free: 2.516 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002801/0.6969, allocations: 42.58 kB / 428.6 MB, free: 2.484 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000366/0.6973, allocations: 241.1 kB / 428.9 MB, free: 2.359 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000221/0.6975, allocations: 78.08 kB / 429 MB, free: 2.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.6976, allocations: 11.19 kB / 429 MB, free: 2.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.6978, allocations: 383.2 kB / 429.3 MB, free: 1.977 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001086/0.6989, allocations: 453.8 kB / 429.8 MB, free: 1.898 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001056/0.7, allocations: 478 kB / 430.3 MB, free: 1.805 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001009/0.701, allocations: 0.5805 MB / 430.8 MB, free: 1.496 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.7011, allocations: 0 / 430.8 MB, free: 1.496 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00289/0.704, allocations: 1.389 MB / 432.2 MB, free: 1.008 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002406/0.7043, allocations: 283.2 kB / 432.5 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.7043, allocations: 7.969 kB / 432.5 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.365e-05/0.7043, allocations: 3.938 kB / 432.5 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.213e-05/0.7044, allocations: 15.77 kB / 432.5 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.7044, allocations: 0 / 432.5 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006725/0.7051, allocations: 46.31 kB / 432.6 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002345/0.7053, allocations: 151.9 kB / 432.7 MB, free: 0.6953 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.00202/0.7074, allocations: 0.9989 MB / 433.7 MB, free: 100 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002698/0.7077, allocations: 135.1 kB / 433.9 MB, free: 32 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008516/0.7085, allocations: 251.5 kB / 434.1 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.7085, allocations: 0 / 434.1 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.7086, allocations: 0 / 434.1 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.7086, allocations: 0 / 434.1 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005835/0.7144, allocations: 2.435 MB / 436.5 MB, free: 14.38 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/0.7145, allocations: 0 / 436.5 MB, free: 14.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.189e-05/0.7145, allocations: 3.984 kB / 436.5 MB, free: 14.37 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.907e-06/0.7146, allocations: 4 kB / 436.5 MB, free: 14.37 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001904/0.7148, allocations: 38.98 kB / 436.6 MB, free: 14.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.7148, allocations: 0 / 436.6 MB, free: 14.34 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.7148, allocations: 0 / 436.6 MB, free: 14.34 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004107/0.7189, allocations: 1.661 MB / 438.2 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002241/0.7212, allocations: 0.6882 MB / 438.9 MB, free: 12.42 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004264/0.7217, allocations: 64.84 kB / 439 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006688/0.7224, allocations: 38.72 kB / 439 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009767/0.7234, allocations: 353.6 kB / 439.4 MB, free: 12.08 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003195/0.7237, allocations: 154.4 kB / 439.5 MB, free: 11.93 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.005287/0.729, allocations: 1.333 MB / 440.9 MB, free: 10.59 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.132e-06/0.7291, allocations: 0 / 440.9 MB, free: 10.59 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001116/0.7302, allocations: 148 kB / 441 MB, free: 10.45 MB / 330.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.0004552/0.7307, allocations: 201.8 kB / 441.2 MB, free: 10.24 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003978/0.7347, allocations: 1.935 MB / 443.1 MB, free: 8.207 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.7347, allocations: 4 kB / 443.1 MB, free: 8.203 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002395/0.7371, allocations: 1.397 MB / 444.5 MB, free: 6.707 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002095/0.7393, allocations: 299.8 kB / 444.8 MB, free: 6.418 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009538/0.7488, allocations: 3.093 MB / 447.9 MB, free: 3.289 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00282/0.7517, allocations: 1.224 MB / 449.1 MB, free: 2.039 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001/0.7528, allocations: 202.9 kB / 449.3 MB, free: 1.84 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.7529, allocations: 27.44 kB / 449.4 MB, free: 1.812 MB / 330.7 MB Notification: Performance of SimCode: time 1.603e-06/0.7529, allocations: 0 / 449.4 MB, free: 1.812 MB / 330.7 MB Notification: Performance of Templates: time 0.05348/0.8064, allocations: 16.69 MB / 466.1 MB, free: 0.7422 MB / 346.7 MB