Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGL.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_Modelica.Electrical.Digital.Examples.DFFREGL") Notification: Performance of loadModel(Modelica): time 2.114/2.114, allocations: 171.1 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003653/0.0003655, allocations: 8 kB / 233.8 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08503/0.08542, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3692/0.4547, allocations: 72.7 MB / 345.3 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/0.455, allocations: 73.08 kB / 345.4 MB, free: 0.625 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1297/0.5847, allocations: 37.33 MB / 382.7 MB, free: 1.492 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5848, allocations: 0 / 382.7 MB, free: 1.492 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.507e-05/0.5848, allocations: 12 kB / 382.7 MB, free: 1.48 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001903/0.5868, allocations: 1.131 MB / 383.9 MB, free: 264 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.5868, allocations: 12.02 kB / 383.9 MB, free: 252 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002533/0.5871, allocations: 90.97 kB / 384 MB, free: 160 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009717/0.5881, allocations: 415.6 kB / 384.4 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.722e-05/0.5882, allocations: 16 kB / 384.4 MB, free: 15.69 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000123/0.5883, allocations: 27.95 kB / 384.4 MB, free: 15.66 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/0.5898, allocations: 0.506 MB / 384.9 MB, free: 15.15 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.5898, allocations: 0 / 384.9 MB, free: 15.15 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.121e-05/0.5899, allocations: 12 kB / 384.9 MB, free: 15.14 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.5899, allocations: 8 kB / 384.9 MB, free: 15.13 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009975/0.5909, allocations: 360 kB / 385.3 MB, free: 14.78 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002206/0.5932, allocations: 0.8676 MB / 386.2 MB, free: 13.86 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.5945, allocations: 0.5101 MB / 386.7 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/0.5945, allocations: 4 kB / 386.7 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001442/0.596, allocations: 0.6431 MB / 387.3 MB, free: 12.65 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 4.037e-06/0.596, allocations: 0 / 387.3 MB, free: 12.65 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.004225/0.6003, allocations: 1.787 MB / 389.1 MB, free: 10.76 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002618/0.6006, allocations: 283.3 kB / 389.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003401/0.604, allocations: 1.156 MB / 390.5 MB, free: 9.262 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003045/0.6044, allocations: 49.62 kB / 390.6 MB, free: 9.207 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000231/0.6046, allocations: 146 kB / 390.7 MB, free: 9.059 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002006/0.6048, allocations: 75.16 kB / 390.8 MB, free: 8.984 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.601e-05/0.6049, allocations: 8 kB / 390.8 MB, free: 8.977 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001972/0.6051, allocations: 346.8 kB / 391.1 MB, free: 8.629 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001259/0.6064, allocations: 340.1 kB / 391.5 MB, free: 8.297 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001595/0.608, allocations: 379 kB / 391.9 MB, free: 7.918 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001648/0.6097, allocations: 495.4 kB / 392.3 MB, free: 7.391 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.158e-06/0.6098, allocations: 0 / 392.3 MB, free: 7.391 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.004999/0.6148, allocations: 1.129 MB / 393.5 MB, free: 6.211 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003699/0.6152, allocations: 243.9 kB / 393.7 MB, free: 5.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.6153, allocations: 0 / 393.7 MB, free: 5.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/0.6153, allocations: 64 / 393.7 MB, free: 5.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.96e-05/0.6154, allocations: 11.98 kB / 393.7 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.528e-05/0.6154, allocations: 3.953 kB / 393.7 MB, free: 5.914 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00076/0.6162, allocations: 43.83 kB / 393.8 MB, free: 5.871 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004936/0.6167, allocations: 160.1 kB / 393.9 MB, free: 5.715 MB / 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: 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.002662/0.6194, allocations: 0.7524 MB / 394.7 MB, free: 4.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003744/0.6198, allocations: 94.97 kB / 394.8 MB, free: 4.816 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007321/0.6205, allocations: 147.7 kB / 394.9 MB, free: 4.668 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/0.6206, allocations: 0 / 394.9 MB, free: 4.668 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.858e-06/0.6206, allocations: 0 / 394.9 MB, free: 4.668 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/0.6206, allocations: 7.938 kB / 394.9 MB, free: 4.66 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007003/0.6276, allocations: 1.967 MB / 396.9 MB, free: 2.594 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/0.6277, allocations: 4 kB / 396.9 MB, free: 2.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.559e-05/0.6278, allocations: 7.938 kB / 396.9 MB, free: 2.582 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.118e-05/0.6278, allocations: 0 / 396.9 MB, free: 2.582 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001816/0.628, allocations: 35.98 kB / 396.9 MB, free: 2.547 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.299e-05/0.6281, allocations: 3.953 kB / 396.9 MB, free: 2.543 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.6281, allocations: 0 / 396.9 MB, free: 2.543 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005045/0.6331, allocations: 1.396 MB / 398.3 MB, free: 1.086 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002409/0.6356, allocations: 0.562 MB / 398.9 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004672/0.6361, allocations: 59.97 kB / 398.9 MB, free: 456 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008919/0.637, allocations: 39.88 kB / 399 MB, free: 416 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001002/0.6381, allocations: 251.7 kB / 399.2 MB, free: 164 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004224/0.6385, allocations: 159.8 kB / 399.4 MB, free: 4 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003517/0.6421, allocations: 0.8615 MB / 400.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.263e-06/0.6421, allocations: 0 / 400.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001361/0.6435, allocations: 120 kB / 400.4 MB, free: 15.03 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.0005793/0.6441, allocations: 188.4 kB / 400.6 MB, free: 14.83 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004592/0.6487, allocations: 1.516 MB / 402.1 MB, free: 13.23 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/0.6488, allocations: 0 / 402.1 MB, free: 13.23 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002936/0.6518, allocations: 1.113 MB / 403.2 MB, free: 12.03 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003013/0.6548, allocations: 294.5 kB / 403.5 MB, free: 11.75 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008283/0.6632, allocations: 2.124 MB / 405.6 MB, free: 9.598 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001748/0.665, allocations: 1.042 MB / 406.6 MB, free: 8.527 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003848/0.6655, allocations: 41.48 kB / 406.7 MB, free: 8.488 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.66e-05/0.6656, allocations: 15.44 kB / 406.7 MB, free: 8.473 MB / 330.7 MB Notification: Performance of SimCode: time 2.134e-06/0.6656, allocations: 0 / 406.7 MB, free: 8.473 MB / 330.7 MB Notification: Performance of Templates: time 0.04449/0.7101, allocations: 13.53 MB / 420.2 MB, free: 10.7 MB / 346.7 MB