Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.695/1.695, allocations: 171.3 MB / 179.2 MB, free: 7.594 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.165e-05/2.175e-05, allocations: 4 kB / 222.5 MB, free: 8.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09869/0.09874, allocations: 38.76 MB / 261.3 MB, free: 1.848 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3311/0.43, allocations: 72.19 MB / 333.5 MB, free: 12 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002395/0.4302, allocations: 70.89 kB / 333.5 MB, free: 15.98 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1352/0.5654, allocations: 31.65 MB / 365.2 MB, free: 3.938 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.5655, allocations: 8 kB / 365.2 MB, free: 3.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.542e-05/0.5655, allocations: 12 kB / 365.2 MB, free: 3.918 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.001698/0.5672, allocations: 1.276 MB / 366.5 MB, free: 2.543 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.5673, allocations: 12.03 kB / 366.5 MB, free: 2.531 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002807/0.5676, allocations: 134.4 kB / 366.6 MB, free: 2.398 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/0.5686, allocations: 0.5168 MB / 367.1 MB, free: 1.832 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.901e-05/0.5687, allocations: 15.98 kB / 367.2 MB, free: 1.816 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.5688, allocations: 28 kB / 367.2 MB, free: 1.789 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008975/0.5698, allocations: 435.8 kB / 367.6 MB, free: 1.363 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001199/0.571, allocations: 0.5871 MB / 368.2 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.571, allocations: 0 / 368.2 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.066e-05/0.5711, allocations: 12 kB / 368.2 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.295e-06/0.5711, allocations: 4 kB / 368.2 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002178/0.5733, allocations: 1.004 MB / 369.2 MB, free: 15.7 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.5745, allocations: 0.6624 MB / 369.9 MB, free: 15.03 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001049/0.5756, allocations: 0.6491 MB / 370.5 MB, free: 14.38 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.5756, allocations: 0 / 370.5 MB, free: 14.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00132/0.5769, allocations: 0.7669 MB / 371.3 MB, free: 13.58 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.958e-06/0.5769, allocations: 0 / 371.3 MB, free: 13.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002386/0.5793, allocations: 1.085 MB / 372.4 MB, free: 12.48 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002833/0.5797, allocations: 321 kB / 372.7 MB, free: 12.11 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00279/0.5825, allocations: 1.378 MB / 374.1 MB, free: 10.72 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001867/0.5827, allocations: 49.69 kB / 374.1 MB, free: 10.66 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000232/0.5829, allocations: 237 kB / 374.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001736/0.5831, allocations: 79.2 kB / 374.4 MB, free: 10.35 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.639e-05/0.5832, allocations: 12 kB / 374.4 MB, free: 10.34 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.5834, allocations: 326.8 kB / 374.8 MB, free: 10.01 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008642/0.5843, allocations: 428 kB / 375.2 MB, free: 9.59 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008505/0.5851, allocations: 432 kB / 375.6 MB, free: 9.168 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005627/0.5857, allocations: 296.5 kB / 375.9 MB, free: 8.879 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.5857, allocations: 0 / 375.9 MB, free: 8.879 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002159/0.5879, allocations: 0.9744 MB / 376.9 MB, free: 7.898 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003135/0.5883, allocations: 289.5 kB / 377.2 MB, free: 7.566 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.017e-06/0.5883, allocations: 0 / 377.2 MB, free: 7.566 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.5883, allocations: 0 / 377.2 MB, free: 7.566 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.574e-05/0.5884, allocations: 7.984 kB / 377.2 MB, free: 7.559 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.439e-06/0.5884, allocations: 7.953 kB / 377.2 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000549/0.5889, allocations: 51.78 kB / 377.2 MB, free: 7.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002523/0.5892, allocations: 151.9 kB / 377.4 MB, free: 7.352 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 43 ($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,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,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,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,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 () * 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.0006019/0.5898, allocations: 458.5 kB / 377.8 MB, free: 6.848 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002399/0.5901, allocations: 134.4 kB / 377.9 MB, free: 6.715 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005988/0.5907, allocations: 208.2 kB / 378.2 MB, free: 6.508 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.483e-06/0.5907, allocations: 0 / 378.2 MB, free: 6.508 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.424e-06/0.5907, allocations: 0 / 378.2 MB, free: 6.508 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.661e-06/0.5907, allocations: 3.953 kB / 378.2 MB, free: 6.504 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003769/0.5945, allocations: 1.912 MB / 380.1 MB, free: 4.543 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.905e-06/0.5946, allocations: 3.938 kB / 380.1 MB, free: 4.539 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.271e-05/0.5946, allocations: 0 / 380.1 MB, free: 4.539 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.095e-06/0.5946, allocations: 7.938 kB / 380.1 MB, free: 4.531 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.5947, allocations: 39.97 kB / 380.1 MB, free: 4.492 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.82e-06/0.5948, allocations: 0 / 380.1 MB, free: 4.492 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.779e-06/0.5948, allocations: 7.953 kB / 380.1 MB, free: 4.484 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002548/0.5973, allocations: 1.249 MB / 381.4 MB, free: 3.215 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001591/0.599, allocations: 0.6552 MB / 382 MB, free: 2.539 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002607/0.5992, allocations: 59.97 kB / 382.1 MB, free: 2.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000515/0.5998, allocations: 43.95 kB / 382.1 MB, free: 2.438 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007899/0.6006, allocations: 351.6 kB / 382.5 MB, free: 2.094 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002573/0.6009, allocations: 163.9 kB / 382.6 MB, free: 1.934 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002484/0.6034, allocations: 1.126 MB / 383.8 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.283e-06/0.6034, allocations: 0 / 383.8 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008848/0.6043, allocations: 144 kB / 383.9 MB, free: 0.6641 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) * 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.0003699/0.6047, allocations: 209.5 kB / 384.1 MB, free: 456 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002813/0.6075, allocations: 1.85 MB / 386 MB, free: 14.5 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.615e-06/0.6075, allocations: 0 / 386 MB, free: 14.5 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00185/0.6094, allocations: 1.362 MB / 387.3 MB, free: 13.04 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001387/0.6108, allocations: 305.4 kB / 387.6 MB, free: 12.74 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004963/0.6158, allocations: 2.387 MB / 390 MB, free: 10.31 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001393/0.6172, allocations: 1.174 MB / 391.2 MB, free: 9.105 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.617e-05/0.6173, allocations: 31.38 kB / 391.2 MB, free: 9.074 MB / 330.7 MB Notification: Performance of SimCode: time 1.682e-06/0.6173, allocations: 0 / 391.2 MB, free: 9.074 MB / 330.7 MB Notification: Performance of Templates: time 0.02036/0.6377, allocations: 10.82 MB / 402 MB, free: 14.04 MB / 346.7 MB