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.DFFREGL.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.DFFREGL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGL.dFFR.clock|dFFREGL.dFFR.reset|dFFREGL.delay.inertialDelaySensitive.1..x|dFFREGL.delay.inertialDelaySensitive.1..y|dFFREGL.delay.inertialDelaySensitive.2..x|dFFREGL.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGL") Notification: Performance of loadModel(Modelica): time 2.178/2.178, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004823/0.0004824, allocations: 12 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1108, allocations: 44.52 MB / 309.1 MB, free: 364 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4708/0.5816, allocations: 78 MB / 387.1 MB, free: 15.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002785/0.5819, allocations: 71.09 kB / 387.1 MB, free: 15.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1379/0.7198, allocations: 37.48 MB / 424.6 MB, free: 5.504 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.7199, allocations: 0 / 424.6 MB, free: 5.504 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.722e-05/0.7199, allocations: 6.406 kB / 424.6 MB, free: 5.504 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001505/0.7215, allocations: 1.133 MB / 425.7 MB, free: 4.523 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.7215, allocations: 11.62 kB / 425.8 MB, free: 4.523 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000192/0.7217, allocations: 85.72 kB / 425.8 MB, free: 4.48 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000792/0.7225, allocations: 424.4 kB / 426.3 MB, free: 4.18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.743e-05/0.7226, allocations: 22.3 kB / 426.3 MB, free: 4.176 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/0.7227, allocations: 22.5 kB / 426.3 MB, free: 4.176 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.724, allocations: 0.5131 MB / 426.8 MB, free: 4.016 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.724, allocations: 3.938 kB / 426.8 MB, free: 4.012 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.517e-05/0.7241, allocations: 14.75 kB / 426.8 MB, free: 4.012 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.7241, allocations: 3.875 kB / 426.8 MB, free: 4.012 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008519/0.725, allocations: 376.5 kB / 427.2 MB, free: 3.941 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001825/0.7268, allocations: 0.8575 MB / 428.1 MB, free: 3.457 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009844/0.7278, allocations: 0.5132 MB / 428.6 MB, free: 3.367 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.793e-05/0.7279, allocations: 7.953 kB / 428.6 MB, free: 3.359 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001184/0.7291, allocations: 0.6579 MB / 429.2 MB, free: 3.031 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 4.439e-06/0.7291, allocations: 0 / 429.2 MB, free: 3.031 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.003495/0.7326, allocations: 1.819 MB / 431.1 MB, free: 2.242 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001536/0.7328, allocations: 275.9 kB / 431.3 MB, free: 1.953 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002246/0.7351, allocations: 1.168 MB / 432.5 MB, free: 1.461 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001501/0.7352, allocations: 44.08 kB / 432.5 MB, free: 1.426 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.7354, allocations: 144.6 kB / 432.7 MB, free: 1.328 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.7355, allocations: 79.45 kB / 432.8 MB, free: 1.285 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.466e-05/0.7356, allocations: 14.95 kB / 432.8 MB, free: 1.281 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.088e-05/0.7357, allocations: 339.7 kB / 433.1 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007918/0.7365, allocations: 350.8 kB / 433.4 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008289/0.7374, allocations: 382.5 kB / 433.8 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008235/0.7382, allocations: 496.4 kB / 434.3 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/0.7383, allocations: 0 / 434.3 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002384/0.7407, allocations: 1.158 MB / 435.5 MB, free: 15.92 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002657/0.741, allocations: 240.5 kB / 435.7 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.741, allocations: 0 / 435.7 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.5e-05/0.741, allocations: 7.984 kB / 435.7 MB, free: 15.65 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.918e-05/0.7411, allocations: 7 kB / 435.7 MB, free: 15.65 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.7411, allocations: 4 kB / 435.7 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005867/0.7417, allocations: 51.06 kB / 435.8 MB, free: 15.6 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002973/0.742, allocations: 152.1 kB / 435.9 MB, free: 15.45 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: 40 ($PRE.dFFREGL.delay.inertialDelaySensitive[2].y,$PRE.dFFREGL.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGL.dFFR.reset,dFFREGL.dFFR.reset,$PRE.dFFREGL.dFFR.clock,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 7 * 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.001506/0.7435, allocations: 0.757 MB / 436.7 MB, free: 14.74 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002264/0.7438, allocations: 91.02 kB / 436.8 MB, free: 14.65 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003735/0.7442, allocations: 149.9 kB / 436.9 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.7442, allocations: 0 / 436.9 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.7442, allocations: 0 / 436.9 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.7442, allocations: 4 kB / 436.9 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004197/0.7484, allocations: 1.998 MB / 438.9 MB, free: 12.85 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.7485, allocations: 0 / 438.9 MB, free: 12.85 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.927e-05/0.7485, allocations: 4 kB / 438.9 MB, free: 12.85 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.826e-06/0.7485, allocations: 3.984 kB / 438.9 MB, free: 12.84 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001176/0.7487, allocations: 40.97 kB / 439 MB, free: 12.81 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.7487, allocations: 3.938 kB / 439 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.7487, allocations: 4 kB / 439 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003229/0.7519, allocations: 1.41 MB / 440.4 MB, free: 11.53 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00155/0.7535, allocations: 0.5659 MB / 440.9 MB, free: 10.94 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003033/0.7538, allocations: 59.97 kB / 441 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005622/0.7544, allocations: 35.97 kB / 441 MB, free: 10.85 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006703/0.7551, allocations: 235.7 kB / 441.3 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002728/0.7554, allocations: 159.9 kB / 441.4 MB, free: 10.46 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002051/0.7575, allocations: 0.8616 MB / 442.3 MB, free: 9.602 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7575, allocations: 0 / 442.3 MB, free: 9.602 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007728/0.7583, allocations: 120 kB / 442.4 MB, free: 9.484 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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.dFFR.reset,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.next_assign_val[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.clock,dFFREGL.dFFR.reset,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGL.delay.inertialDelaySensitive[2].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 7 * 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.0004046/0.7587, allocations: 192.4 kB / 442.6 MB, free: 9.285 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003005/0.7617, allocations: 1.539 MB / 444.1 MB, free: 7.664 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.7617, allocations: 0 / 444.1 MB, free: 7.664 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001843/0.7636, allocations: 1.109 MB / 445.2 MB, free: 6.469 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001868/0.7655, allocations: 285.1 kB / 445.5 MB, free: 6.199 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007751/0.7733, allocations: 2.163 MB / 447.7 MB, free: 4.004 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002295/0.7756, allocations: 1.035 MB / 448.7 MB, free: 2.934 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004458/0.7761, allocations: 45.48 kB / 448.8 MB, free: 2.887 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.164e-05/0.7762, allocations: 19.44 kB / 448.8 MB, free: 2.871 MB / 330.7 MB Notification: Performance of SimCode: time 2.926e-06/0.7763, allocations: 0 / 448.8 MB, free: 2.871 MB / 330.7 MB Notification: Performance of Templates: time 0.03313/0.8094, allocations: 13.56 MB / 462.3 MB, free: 5.082 MB / 346.7 MB