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.DFFREGSRL.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.DFFREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRL.dataOut.1.|dFFREGSRL.dataOut.2.",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRL") Notification: Performance of loadModel(Modelica): time 2.261/2.261, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004949/0.000495, allocations: 12 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1163, allocations: 44.51 MB / 309 MB, free: 364 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.491/0.6074, allocations: 78.26 MB / 387.3 MB, free: 15.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002617/0.6077, allocations: 73.73 kB / 387.4 MB, free: 15.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1135/0.7212, allocations: 32.64 MB / 420 MB, free: 6.762 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.02e-05/0.7213, allocations: 0 / 420 MB, free: 6.762 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.226e-05/0.7214, allocations: 11.59 kB / 420 MB, free: 6.762 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.002274/0.7237, allocations: 1.505 MB / 421.5 MB, free: 5.516 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.7237, allocations: 7.75 kB / 421.5 MB, free: 5.516 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003571/0.7241, allocations: 129.7 kB / 421.7 MB, free: 5.453 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.7253, allocations: 0.5125 MB / 422.2 MB, free: 5.098 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.7254, allocations: 23.09 kB / 422.2 MB, free: 5.098 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001313/0.7256, allocations: 25.75 kB / 422.2 MB, free: 5.098 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001609/0.7272, allocations: 0.6334 MB / 422.9 MB, free: 4.91 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.7272, allocations: 0 / 422.9 MB, free: 4.91 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/0.7274, allocations: 20.17 kB / 422.9 MB, free: 4.906 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.7274, allocations: 4 kB / 422.9 MB, free: 4.902 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001172/0.7286, allocations: 469.2 kB / 423.3 MB, free: 4.828 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002681/0.7313, allocations: 1.077 MB / 424.4 MB, free: 4.246 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001441/0.7328, allocations: 0.706 MB / 425.1 MB, free: 4.141 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.402e-05/0.7329, allocations: 4.078 kB / 425.1 MB, free: 4.137 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001488/0.7343, allocations: 0.7726 MB / 425.9 MB, free: 3.789 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.747e-06/0.7344, allocations: 0 / 425.9 MB, free: 3.789 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.004195/0.7386, allocations: 2.153 MB / 428.1 MB, free: 2.91 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001991/0.7388, allocations: 327.3 kB / 428.4 MB, free: 2.582 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003815/0.7427, allocations: 1.832 MB / 430.2 MB, free: 1.797 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002747/0.743, allocations: 45.11 kB / 430.3 MB, free: 1.766 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003035/0.7433, allocations: 234.1 kB / 430.5 MB, free: 1.645 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001891/0.7435, allocations: 88.86 kB / 430.6 MB, free: 1.598 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.722e-05/0.7436, allocations: 11.66 kB / 430.6 MB, free: 1.598 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.7438, allocations: 381.2 kB / 431 MB, free: 1.254 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00101/0.7448, allocations: 448.2 kB / 431.4 MB, free: 1.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/0.7458, allocations: 488.1 kB / 431.9 MB, free: 1.078 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009212/0.7468, allocations: 0.5858 MB / 432.5 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.7468, allocations: 0 / 432.5 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002875/0.7497, allocations: 1.376 MB / 433.8 MB, free: 292 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002597/0.75, allocations: 289.1 kB / 434.1 MB, free: 16 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.75, allocations: 0 / 434.1 MB, free: 16 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.168e-05/0.75, allocations: 3.875 kB / 434.1 MB, free: 16 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.298e-05/0.7501, allocations: 3.969 kB / 434.1 MB, free: 16 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.7501, allocations: 12 kB / 434.1 MB, free: 4 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007193/0.7509, allocations: 46.55 kB / 434.2 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002459/0.7511, allocations: 154.3 kB / 434.3 MB, free: 15.97 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.00237/0.7535, allocations: 0.9838 MB / 435.3 MB, free: 15.13 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003374/0.7539, allocations: 130.5 kB / 435.4 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008414/0.7547, allocations: 258.9 kB / 435.7 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.7548, allocations: 4 kB / 435.7 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/0.7548, allocations: 3.984 kB / 435.7 MB, free: 14.76 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.7548, allocations: 3.781 kB / 435.7 MB, free: 14.76 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005958/0.7608, allocations: 2.427 MB / 438.1 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/0.7608, allocations: 0 / 438.1 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.38e-05/0.7609, allocations: 3.938 kB / 438.1 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.678e-06/0.7609, allocations: 11.98 kB / 438.1 MB, free: 12.74 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001481/0.7611, allocations: 42.03 kB / 438.2 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/0.7611, allocations: 3.953 kB / 438.2 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.7611, allocations: 0 / 438.2 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003906/0.765, allocations: 1.656 MB / 439.8 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002152/0.7672, allocations: 0.6727 MB / 440.5 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003897/0.7676, allocations: 66.02 kB / 440.6 MB, free: 10.76 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006683/0.7683, allocations: 41.47 kB / 440.6 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001099/0.7695, allocations: 361 kB / 441 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000337/0.7698, allocations: 156.8 kB / 441.1 MB, free: 10.31 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0039/0.7737, allocations: 1.337 MB / 442.5 MB, free: 8.984 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.432e-06/0.7738, allocations: 0 / 442.5 MB, free: 8.984 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00109/0.7749, allocations: 152 kB / 442.6 MB, free: 8.836 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.0004481/0.7754, allocations: 189.7 kB / 442.8 MB, free: 8.637 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004118/0.7795, allocations: 1.94 MB / 444.7 MB, free: 6.598 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.7796, allocations: 4 kB / 444.7 MB, free: 6.594 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002568/0.7822, allocations: 1.393 MB / 446.1 MB, free: 5.102 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002191/0.7844, allocations: 303.7 kB / 446.4 MB, free: 4.809 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008045/0.7925, allocations: 3.092 MB / 449.5 MB, free: 1.684 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001961/0.7945, allocations: 1.22 MB / 450.7 MB, free: 444 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005568/0.7951, allocations: 155 kB / 450.9 MB, free: 288 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.092e-05/0.7952, allocations: 31.44 kB / 450.9 MB, free: 256 kB / 330.7 MB Notification: Performance of SimCode: time 1.343e-06/0.7952, allocations: 0 / 450.9 MB, free: 256 kB / 330.7 MB Notification: Performance of Templates: time 0.05342/0.8487, allocations: 16.69 MB / 467.6 MB, free: 15.18 MB / 362.7 MB