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.DFFREGSRH.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH") Notification: Performance of loadModel(Modelica): time 1.757/1.757, allocations: 171.3 MB / 179.2 MB, free: 7.598 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.24e-05/2.252e-05, allocations: 4 kB / 222.5 MB, free: 8.711 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07371/0.07376, allocations: 38.76 MB / 261.3 MB, free: 1.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2983/0.3721, allocations: 72.16 MB / 333.4 MB, free: 88 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002365/0.3724, allocations: 70.89 kB / 333.5 MB, free: 52 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1006/0.473, allocations: 30.39 MB / 363.9 MB, free: 5.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.273e-06/0.473, allocations: 0 / 363.9 MB, free: 5.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.356e-05/0.4731, allocations: 12 kB / 363.9 MB, free: 5.258 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.003783/0.4769, allocations: 1.276 MB / 365.2 MB, free: 3.883 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.643e-05/0.477, allocations: 8.031 kB / 365.2 MB, free: 3.875 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006666/0.4777, allocations: 126.5 kB / 365.3 MB, free: 3.75 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002134/0.4799, allocations: 0.5207 MB / 365.8 MB, free: 3.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.4801, allocations: 16 kB / 365.9 MB, free: 3.164 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002649/0.4804, allocations: 35.89 kB / 365.9 MB, free: 3.129 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001828/0.4822, allocations: 439.8 kB / 366.3 MB, free: 2.699 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002541/0.4848, allocations: 0.5793 MB / 366.9 MB, free: 2.113 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.541e-05/0.4849, allocations: 3.984 kB / 366.9 MB, free: 2.109 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001676/0.4851, allocations: 12 kB / 366.9 MB, free: 2.098 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.822e-05/0.4851, allocations: 7.984 kB / 366.9 MB, free: 2.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004315/0.4894, allocations: 1 MB / 367.9 MB, free: 1.047 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002303/0.4918, allocations: 0.6625 MB / 368.6 MB, free: 384 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002194/0.4941, allocations: 0.653 MB / 369.2 MB, free: 15.72 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.221e-05/0.4942, allocations: 4 kB / 369.2 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002716/0.4969, allocations: 0.7591 MB / 370 MB, free: 14.92 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 7.723e-06/0.497, allocations: 0 / 370 MB, free: 14.92 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.004854/0.5018, allocations: 1.078 MB / 371.1 MB, free: 13.83 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005262/0.5024, allocations: 329 kB / 371.4 MB, free: 13.45 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005953/0.5084, allocations: 1.382 MB / 372.8 MB, free: 12.05 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003396/0.5088, allocations: 41.7 kB / 372.8 MB, free: 12.01 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004593/0.5093, allocations: 241 kB / 373.1 MB, free: 11.77 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004205/0.5098, allocations: 87.06 kB / 373.1 MB, free: 11.68 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.5099, allocations: 12 kB / 373.2 MB, free: 11.67 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002804/0.5102, allocations: 322.8 kB / 373.5 MB, free: 11.35 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001682/0.5119, allocations: 431.9 kB / 373.9 MB, free: 10.92 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001736/0.5137, allocations: 432 kB / 374.3 MB, free: 10.5 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.5149, allocations: 288.5 kB / 374.6 MB, free: 10.22 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.527e-05/0.515, allocations: 0 / 374.6 MB, free: 10.22 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.004364/0.5194, allocations: 0.9706 MB / 375.6 MB, free: 9.242 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005625/0.52, allocations: 293.5 kB / 375.9 MB, free: 8.906 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.5201, allocations: 4 kB / 375.9 MB, free: 8.902 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.793e-05/0.5201, allocations: 0 / 375.9 MB, free: 8.902 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.183e-05/0.5202, allocations: 7.938 kB / 375.9 MB, free: 8.895 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.5202, allocations: 3.984 kB / 375.9 MB, free: 8.891 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/0.5214, allocations: 44.02 kB / 375.9 MB, free: 8.848 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005193/0.5219, allocations: 155.9 kB / 376.1 MB, free: 8.695 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 43 ($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,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,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,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,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 () * 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.001136/0.5231, allocations: 470.3 kB / 376.5 MB, free: 8.18 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005435/0.5237, allocations: 130.5 kB / 376.7 MB, free: 8.051 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001113/0.5248, allocations: 196.2 kB / 376.8 MB, free: 7.855 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.447e-06/0.5248, allocations: 0 / 376.8 MB, free: 7.855 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-05/0.5249, allocations: 4 kB / 376.8 MB, free: 7.852 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/0.5249, allocations: 4 kB / 376.9 MB, free: 7.848 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008114/0.533, allocations: 1.916 MB / 378.8 MB, free: 5.883 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.085e-05/0.5331, allocations: 0 / 378.8 MB, free: 5.883 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.445e-05/0.5332, allocations: 0 / 378.8 MB, free: 5.883 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.516e-05/0.5332, allocations: 4 kB / 378.8 MB, free: 5.879 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002765/0.5335, allocations: 43.91 kB / 378.8 MB, free: 5.836 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.428e-05/0.5335, allocations: 3.984 kB / 378.8 MB, free: 5.832 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.333e-06/0.5336, allocations: 0 / 378.8 MB, free: 5.832 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00513/0.5387, allocations: 1.265 MB / 380.1 MB, free: 4.547 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003396/0.5422, allocations: 0.6551 MB / 380.7 MB, free: 3.871 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007419/0.543, allocations: 63.95 kB / 380.8 MB, free: 3.809 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00136/0.5444, allocations: 35.97 kB / 380.8 MB, free: 3.773 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001225/0.5457, allocations: 355.6 kB / 381.2 MB, free: 3.426 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003241/0.546, allocations: 151.9 kB / 381.3 MB, free: 3.277 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002861/0.5489, allocations: 1.134 MB / 382.5 MB, free: 2.141 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.274e-06/0.5489, allocations: 0 / 382.5 MB, free: 2.141 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009666/0.5499, allocations: 144 kB / 382.6 MB, free: 2 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) * 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.0004018/0.5504, allocations: 193.7 kB / 382.8 MB, free: 1.801 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003086/0.5535, allocations: 1.854 MB / 384.6 MB, free: 15.85 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.729e-06/0.5535, allocations: 0 / 384.6 MB, free: 15.85 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002108/0.5556, allocations: 1.37 MB / 386 MB, free: 14.38 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001657/0.5573, allocations: 306.7 kB / 386.3 MB, free: 14.08 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005916/0.5633, allocations: 2.391 MB / 388.7 MB, free: 11.64 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001851/0.5652, allocations: 1.17 MB / 389.9 MB, free: 10.45 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.099e-05/0.5653, allocations: 31.44 kB / 389.9 MB, free: 10.41 MB / 330.7 MB Notification: Performance of SimCode: time 2.027e-06/0.5654, allocations: 0 / 389.9 MB, free: 10.41 MB / 330.7 MB Notification: Performance of Templates: time 0.03317/0.5985, allocations: 10.81 MB / 400.7 MB, free: 15.38 MB / 346.7 MB