Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL") Notification: Performance of loadModel(Modelica): time 1.966/1.966, allocations: 171.1 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003546/0.0003547, allocations: 8 kB / 233.2 MB, free: 0.9258 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1179, allocations: 38.77 MB / 272 MB, free: 10.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3341/0.4521, allocations: 72.94 MB / 345 MB, free: 10.11 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003421/0.4525, allocations: 72.45 kB / 345 MB, free: 10.04 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09845/0.551, allocations: 31.7 MB / 376.7 MB, free: 10.33 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.287e-06/0.551, allocations: 0 / 376.7 MB, free: 10.33 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.949e-05/0.5511, allocations: 16 kB / 376.7 MB, free: 10.32 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.002094/0.5532, allocations: 1.458 MB / 378.2 MB, free: 8.754 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.5532, allocations: 12.03 kB / 378.2 MB, free: 8.742 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002856/0.5535, allocations: 130.4 kB / 378.3 MB, free: 8.613 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009796/0.5545, allocations: 0.5245 MB / 378.9 MB, free: 8.039 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.375e-05/0.5546, allocations: 20 kB / 378.9 MB, free: 8.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.5547, allocations: 31.98 kB / 378.9 MB, free: 7.988 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.5562, allocations: 0.6299 MB / 379.5 MB, free: 7.352 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.5562, allocations: 0 / 379.5 MB, free: 7.352 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.684e-05/0.5563, allocations: 12 kB / 379.6 MB, free: 7.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.532e-06/0.5564, allocations: 4 kB / 379.6 MB, free: 7.336 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.5574, allocations: 455.7 kB / 380 MB, free: 6.891 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002234/0.5596, allocations: 1.049 MB / 381.1 MB, free: 5.785 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001394/0.561, allocations: 0.6936 MB / 381.7 MB, free: 5.082 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.19e-05/0.5611, allocations: 4 kB / 381.8 MB, free: 5.078 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001465/0.5626, allocations: 0.7631 MB / 382.5 MB, free: 4.277 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.789e-06/0.5626, allocations: 0 / 382.5 MB, free: 4.277 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.004151/0.5667, allocations: 2.106 MB / 384.6 MB, free: 2.059 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002872/0.5671, allocations: 329 kB / 384.9 MB, free: 1.676 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002947/0.57, allocations: 1.448 MB / 386.4 MB, free: 220 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001848/0.5702, allocations: 53.69 kB / 386.4 MB, free: 160 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002492/0.5705, allocations: 237 kB / 386.7 MB, free: 15.92 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.5707, allocations: 79.02 kB / 386.8 MB, free: 15.84 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.928e-05/0.5708, allocations: 19.98 kB / 386.8 MB, free: 15.82 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.571, allocations: 330.8 kB / 387.1 MB, free: 15.49 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009936/0.572, allocations: 439.9 kB / 387.5 MB, free: 15.06 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009823/0.573, allocations: 478.1 kB / 388 MB, free: 14.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009544/0.574, allocations: 0.5791 MB / 388.6 MB, free: 13.96 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.51e-06/0.574, allocations: 4 kB / 388.6 MB, free: 13.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002711/0.5767, allocations: 1.307 MB / 389.9 MB, free: 12.59 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003117/0.5771, allocations: 293.5 kB / 390.2 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.5771, allocations: 0 / 390.2 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.5771, allocations: 7.922 kB / 390.2 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.204e-05/0.5772, allocations: 7.938 kB / 390.2 MB, free: 12.24 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.5772, allocations: 4 kB / 390.2 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000559/0.5778, allocations: 43.88 kB / 390.2 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002619/0.578, allocations: 151.9 kB / 390.4 MB, free: 12.04 MB / 330.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.001733/0.5798, allocations: 0.9496 MB / 391.3 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002648/0.5801, allocations: 134.5 kB / 391.5 MB, free: 10.9 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005168/0.5806, allocations: 203.8 kB / 391.7 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.848e-06/0.5806, allocations: 0 / 391.7 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.473e-06/0.5806, allocations: 0 / 391.7 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.995e-06/0.5806, allocations: 0 / 391.7 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004527/0.5852, allocations: 2.332 MB / 394 MB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.367e-06/0.5852, allocations: 0 / 394 MB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.144e-05/0.5853, allocations: 0 / 394 MB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.298e-06/0.5853, allocations: 7.938 kB / 394 MB, free: 8.246 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001187/0.5854, allocations: 39.97 kB / 394 MB, free: 8.207 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.5854, allocations: 0 / 394 MB, free: 8.207 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.212e-06/0.5854, allocations: 0 / 394 MB, free: 8.207 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003201/0.5886, allocations: 1.626 MB / 395.7 MB, free: 6.512 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001564/0.5902, allocations: 0.6513 MB / 396.3 MB, free: 5.84 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002616/0.5905, allocations: 59.97 kB / 396.4 MB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004837/0.591, allocations: 43.86 kB / 396.4 MB, free: 5.738 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007691/0.5918, allocations: 351.7 kB / 396.8 MB, free: 5.395 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002548/0.5921, allocations: 155.9 kB / 396.9 MB, free: 5.242 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002508/0.5946, allocations: 1.208 MB / 398.1 MB, free: 4.031 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.013e-06/0.5946, allocations: 0 / 398.1 MB, free: 4.031 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008638/0.5955, allocations: 152 kB / 398.3 MB, free: 3.883 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,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.0003509/0.5959, allocations: 201.6 kB / 398.5 MB, free: 3.676 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00346/0.5993, allocations: 1.916 MB / 400.4 MB, free: 1.66 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.951e-06/0.5994, allocations: 0 / 400.4 MB, free: 1.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002009/0.6014, allocations: 1.393 MB / 401.8 MB, free: 172 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/0.6028, allocations: 299.7 kB / 402.1 MB, free: 15.88 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005988/0.6089, allocations: 3.04 MB / 405.1 MB, free: 12.79 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001356/0.6103, allocations: 1.166 MB / 406.3 MB, free: 11.6 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.8e-05/0.6104, allocations: 27.44 kB / 406.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of SimCode: time 1.97e-06/0.6104, allocations: 3.938 kB / 406.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of Templates: time 0.02057/0.6309, allocations: 10.91 MB / 417.2 MB, free: 452 kB / 346.7 MB