Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.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.DFFREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRL.dataOut.1.|dFFREGSRL.dataOut.2.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL") Notification: Performance of loadModel(Modelica): time 1.678/1.678, allocations: 171.1 MB / 187.3 MB, free: 1.055 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003476/0.0003476, allocations: 8 kB / 233.8 MB, free: 3.078 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08418/0.08455, allocations: 38.77 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3576/0.4422, allocations: 72.93 MB / 345.5 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/0.4425, allocations: 76.16 kB / 345.5 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1077/0.5502, allocations: 31.71 MB / 377.3 MB, free: 6.152 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.026e-06/0.5503, allocations: 0 / 377.3 MB, free: 6.152 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.436e-05/0.5503, allocations: 16 kB / 377.3 MB, free: 6.137 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.002359/0.5527, allocations: 1.467 MB / 378.7 MB, free: 4.641 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.5528, allocations: 12.03 kB / 378.7 MB, free: 4.629 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003088/0.5531, allocations: 134.4 kB / 378.9 MB, free: 4.496 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001097/0.5542, allocations: 0.5149 MB / 379.4 MB, free: 3.969 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.552e-05/0.5543, allocations: 26.48 kB / 379.4 MB, free: 3.949 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.5544, allocations: 27.31 kB / 379.4 MB, free: 3.926 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/0.556, allocations: 0.6268 MB / 380.1 MB, free: 3.441 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.5561, allocations: 0 / 380.1 MB, free: 3.441 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.801e-05/0.5562, allocations: 19.62 kB / 380.1 MB, free: 3.426 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.5562, allocations: 0 / 380.1 MB, free: 3.426 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001159/0.5574, allocations: 465.1 kB / 380.5 MB, free: 3.105 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002446/0.5598, allocations: 1.038 MB / 381.6 MB, free: 2.238 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001592/0.5615, allocations: 0.6949 MB / 382.3 MB, free: 1.832 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.663e-05/0.5616, allocations: 4 kB / 382.3 MB, free: 1.828 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001733/0.5633, allocations: 0.7585 MB / 383 MB, free: 1.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 3.266e-06/0.5633, allocations: 0 / 383 MB, free: 1.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.004875/0.5682, allocations: 2.132 MB / 385.2 MB, free: 15.22 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003334/0.5686, allocations: 328.9 kB / 385.5 MB, free: 14.84 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004034/0.5726, allocations: 1.646 MB / 387.1 MB, free: 13.17 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002686/0.573, allocations: 49.69 kB / 387.2 MB, free: 13.12 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002542/0.5732, allocations: 241 kB / 387.4 MB, free: 12.88 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002124/0.5735, allocations: 83.09 kB / 387.5 MB, free: 12.8 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.104e-05/0.5736, allocations: 15.98 kB / 387.5 MB, free: 12.78 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.5737, allocations: 322.8 kB / 387.8 MB, free: 12.46 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/0.5749, allocations: 443.9 kB / 388.3 MB, free: 12.02 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001206/0.5762, allocations: 474.6 kB / 388.7 MB, free: 11.55 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.5773, allocations: 0.5909 MB / 389.3 MB, free: 10.91 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.5774, allocations: 0 / 389.3 MB, free: 10.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00328/0.5807, allocations: 1.33 MB / 390.7 MB, free: 9.52 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003717/0.5811, allocations: 285.5 kB / 390.9 MB, free: 9.191 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.5811, allocations: 0 / 390.9 MB, free: 9.191 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.481e-05/0.5811, allocations: 4 kB / 390.9 MB, free: 9.188 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.711e-05/0.5812, allocations: 3.984 kB / 390.9 MB, free: 9.184 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.5812, allocations: 4 kB / 390.9 MB, free: 9.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000779/0.582, allocations: 51.88 kB / 391 MB, free: 9.129 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003845/0.5824, allocations: 155.9 kB / 391.1 MB, free: 8.977 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: 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.002257/0.5847, allocations: 0.9325 MB / 392.1 MB, free: 7.984 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003173/0.585, allocations: 130.5 kB / 392.2 MB, free: 7.855 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007006/0.5857, allocations: 199.8 kB / 392.4 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/0.5858, allocations: 11.92 kB / 392.4 MB, free: 7.641 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.5858, allocations: 0 / 392.4 MB, free: 7.641 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.5858, allocations: 4 kB / 392.4 MB, free: 7.637 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005335/0.5912, allocations: 2.356 MB / 394.8 MB, free: 5.168 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.5912, allocations: 0 / 394.8 MB, free: 5.168 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.17e-05/0.5912, allocations: 4 kB / 394.8 MB, free: 5.164 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.5913, allocations: 0 / 394.8 MB, free: 5.164 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001287/0.5914, allocations: 39.97 kB / 394.8 MB, free: 5.125 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.822e-06/0.5914, allocations: 4 kB / 394.8 MB, free: 5.121 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.5914, allocations: 3.938 kB / 394.8 MB, free: 5.117 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0037/0.5951, allocations: 1.634 MB / 396.5 MB, free: 3.414 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002004/0.5972, allocations: 0.6513 MB / 397.1 MB, free: 2.742 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003784/0.5976, allocations: 67.95 kB / 397.2 MB, free: 2.676 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006485/0.5983, allocations: 43.81 kB / 397.2 MB, free: 2.633 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009709/0.5993, allocations: 359.6 kB / 397.6 MB, free: 2.281 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003322/0.5996, allocations: 155.9 kB / 397.7 MB, free: 2.129 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00314/0.6028, allocations: 1.208 MB / 398.9 MB, free: 0.918 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.52e-07/0.6028, allocations: 0 / 398.9 MB, free: 0.918 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009686/0.6038, allocations: 152 kB / 399.1 MB, free: 0.7695 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,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.0004009/0.6042, allocations: 189.7 kB / 399.3 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003946/0.6082, allocations: 1.924 MB / 401.2 MB, free: 14.55 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.6083, allocations: 0 / 401.2 MB, free: 14.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002387/0.6107, allocations: 1.393 MB / 402.6 MB, free: 13.06 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002078/0.6128, allocations: 311.8 kB / 402.9 MB, free: 12.76 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007206/0.62, allocations: 3.025 MB / 405.9 MB, free: 9.695 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001475/0.6215, allocations: 1.173 MB / 407.1 MB, free: 8.496 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.88e-05/0.6217, allocations: 27.44 kB / 407.1 MB, free: 8.469 MB / 330.7 MB Notification: Performance of SimCode: time 1.443e-06/0.6217, allocations: 0 / 407.1 MB, free: 8.469 MB / 330.7 MB Notification: Performance of Templates: time 0.02733/0.649, allocations: 10.91 MB / 418 MB, free: 13.33 MB / 346.7 MB