Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH") Notification: Performance of loadModel(Modelica): time 2.011/2.011, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003487/0.0003487, allocations: 11.98 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.093/0.09338, allocations: 44.5 MB / 309 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4103/0.5037, allocations: 78.21 MB / 387.2 MB, free: 14.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/0.504, allocations: 74.59 kB / 387.3 MB, free: 14.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09169/0.5958, allocations: 31.08 MB / 418.3 MB, free: 7.172 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.895e-06/0.5958, allocations: 0 / 418.3 MB, free: 7.172 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.114e-05/0.5959, allocations: 18.66 kB / 418.3 MB, free: 7.168 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.002492/0.5984, allocations: 1.493 MB / 419.8 MB, free: 5.93 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.5984, allocations: 7.75 kB / 419.9 MB, free: 5.93 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003994/0.5989, allocations: 132.8 kB / 420 MB, free: 5.863 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00119/0.6001, allocations: 0.5126 MB / 420.5 MB, free: 5.508 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.027e-05/0.6002, allocations: 23.11 kB / 420.5 MB, free: 5.504 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001378/0.6003, allocations: 31.22 kB / 420.5 MB, free: 5.504 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00161/0.6019, allocations: 0.6245 MB / 421.2 MB, free: 5.328 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.602, allocations: 0 / 421.2 MB, free: 5.328 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.513e-05/0.6021, allocations: 11.47 kB / 421.2 MB, free: 5.328 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.6021, allocations: 7.828 kB / 421.2 MB, free: 5.324 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001167/0.6033, allocations: 477.4 kB / 421.7 MB, free: 5.242 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002699/0.6061, allocations: 1.093 MB / 422.7 MB, free: 4.645 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001511/0.6076, allocations: 0.7004 MB / 423.4 MB, free: 4.539 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.6077, allocations: 6.812 kB / 423.5 MB, free: 4.539 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001675/0.6094, allocations: 0.7628 MB / 424.2 MB, free: 4.195 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 4.388e-06/0.6094, allocations: 0 / 424.2 MB, free: 4.195 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.004668/0.6141, allocations: 2.16 MB / 426.4 MB, free: 3.312 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002117/0.6144, allocations: 323 kB / 426.7 MB, free: 2.984 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004154/0.6185, allocations: 1.834 MB / 428.5 MB, free: 2.199 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002525/0.6189, allocations: 41.27 kB / 428.6 MB, free: 2.168 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002787/0.6191, allocations: 248.5 kB / 428.8 MB, free: 2.004 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002265/0.6194, allocations: 77.69 kB / 428.9 MB, free: 1.965 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.714e-05/0.6195, allocations: 15.67 kB / 428.9 MB, free: 1.961 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.844e-05/0.6196, allocations: 330.2 kB / 429.2 MB, free: 1.641 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001043/0.6206, allocations: 445.1 kB / 429.7 MB, free: 1.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001069/0.6217, allocations: 495.5 kB / 430.1 MB, free: 1.465 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009439/0.6227, allocations: 0.5733 MB / 430.7 MB, free: 1.16 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.6227, allocations: 0 / 430.7 MB, free: 1.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002614/0.6254, allocations: 1.351 MB / 432.1 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002163/0.6256, allocations: 286.8 kB / 432.3 MB, free: 432 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.6256, allocations: 0 / 432.3 MB, free: 432 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.6257, allocations: 7.859 kB / 432.4 MB, free: 428 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.748e-05/0.6257, allocations: 7.375 kB / 432.4 MB, free: 428 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.888e-06/0.6257, allocations: 8 kB / 432.4 MB, free: 420 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006221/0.6264, allocations: 45.91 kB / 432.4 MB, free: 408 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002266/0.6266, allocations: 154.5 kB / 432.6 MB, free: 392 kB / 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.001963/0.6286, allocations: 0.9886 MB / 433.6 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003199/0.6289, allocations: 131.4 kB / 433.7 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007816/0.6297, allocations: 254.5 kB / 433.9 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.6297, allocations: 7.812 kB / 433.9 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.6298, allocations: 0 / 433.9 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.6298, allocations: 0 / 433.9 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005029/0.6348, allocations: 2.441 MB / 436.4 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.6349, allocations: 0 / 436.4 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.055e-05/0.6349, allocations: 0 / 436.4 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.6349, allocations: 3.875 kB / 436.4 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001128/0.635, allocations: 38.48 kB / 436.4 MB, free: 14.49 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.635, allocations: 0 / 436.4 MB, free: 14.49 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.155e-06/0.6351, allocations: 0 / 436.4 MB, free: 14.49 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003543/0.6386, allocations: 1.651 MB / 438.1 MB, free: 13.31 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001987/0.6406, allocations: 0.682 MB / 438.8 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003909/0.6411, allocations: 61.59 kB / 438.8 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006367/0.6417, allocations: 50 kB / 438.9 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001037/0.6428, allocations: 354.3 kB / 439.2 MB, free: 12.44 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003644/0.6432, allocations: 160.7 kB / 439.4 MB, free: 12.29 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003948/0.6471, allocations: 1.335 MB / 440.7 MB, free: 11.12 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.292e-06/0.6472, allocations: 0 / 440.7 MB, free: 11.12 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001073/0.6483, allocations: 152 kB / 440.9 MB, free: 10.97 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.0004384/0.6488, allocations: 193.7 kB / 441 MB, free: 10.77 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003901/0.6527, allocations: 1.928 MB / 443 MB, free: 8.738 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.6527, allocations: 0 / 443 MB, free: 8.738 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002472/0.6552, allocations: 1.405 MB / 444.4 MB, free: 7.234 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002057/0.6573, allocations: 310 kB / 444.7 MB, free: 6.938 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007547/0.6649, allocations: 3.208 MB / 447.9 MB, free: 3.688 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001622/0.6666, allocations: 1.208 MB / 449.1 MB, free: 2.449 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.365e-05/0.6667, allocations: 31.44 kB / 449.1 MB, free: 2.418 MB / 330.7 MB Notification: Performance of SimCode: time 1.312e-06/0.6667, allocations: 0 / 449.1 MB, free: 2.418 MB / 330.7 MB Notification: Performance of Templates: time 0.02589/0.6926, allocations: 11.44 MB / 460.6 MB, free: 6.762 MB / 346.7 MB