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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.617/1.617, allocations: 171.2 MB / 184.3 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.828e-05/2.843e-05, allocations: 4 kB / 228.8 MB, free: 15.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2028/0.2029, allocations: 38.78 MB / 267.6 MB, free: 9.445 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.106/0.309, allocations: 72.86 MB / 340.4 MB, free: 492 kB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002246/0.3092, allocations: 63.97 kB / 340.5 MB, free: 428 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2663/0.5755, allocations: 31.85 MB / 372.4 MB, free: 74.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.098e-06/0.5756, allocations: 0 / 372.4 MB, free: 74.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.27e-05/0.5756, allocations: 16 kB / 372.4 MB, free: 74.19 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.001161/0.5768, allocations: 1.278 MB / 373.7 MB, free: 72.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.5768, allocations: 15.97 kB / 373.7 MB, free: 72.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002048/0.5771, allocations: 130.5 kB / 373.8 MB, free: 72.69 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007167/0.5778, allocations: 0.509 MB / 374.3 MB, free: 72.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.788e-05/0.5778, allocations: 24 kB / 374.3 MB, free: 72.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.578, allocations: 28 kB / 374.4 MB, free: 72.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.579, allocations: 0.6221 MB / 375 MB, free: 71.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.5791, allocations: 4.031 kB / 375 MB, free: 71.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.16e-05/0.5792, allocations: 16 kB / 375 MB, free: 71.47 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.703e-06/0.5792, allocations: 0 / 375 MB, free: 71.47 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007542/0.5799, allocations: 451.8 kB / 375.4 MB, free: 71.03 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.5817, allocations: 1.038 MB / 376.5 MB, free: 69.94 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009305/0.5827, allocations: 0.6781 MB / 377.2 MB, free: 69.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008763/0.5836, allocations: 0.6789 MB / 377.8 MB, free: 68.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.485e-05/0.5836, allocations: 0 / 377.8 MB, free: 68.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001047/0.5847, allocations: 0.7476 MB / 378.6 MB, free: 67.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 3.689e-06/0.5847, allocations: 0 / 378.6 MB, free: 67.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.002256/0.587, allocations: 1.396 MB / 380 MB, free: 66.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001492/0.5872, allocations: 325 kB / 380.3 MB, free: 65.96 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00254/0.5897, allocations: 1.446 MB / 381.7 MB, free: 64.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001696/0.5899, allocations: 45.7 kB / 381.8 MB, free: 64.45 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001472/0.5901, allocations: 233 kB / 382 MB, free: 64.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/0.5902, allocations: 96.47 kB / 382.1 MB, free: 64.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.966e-05/0.5903, allocations: 12 kB / 382.1 MB, free: 64.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.588e-05/0.5904, allocations: 334.8 kB / 382.5 MB, free: 63.78 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007479/0.5912, allocations: 440 kB / 382.9 MB, free: 63.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007169/0.5919, allocations: 444.2 kB / 383.3 MB, free: 62.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006644/0.5926, allocations: 0.5803 MB / 383.9 MB, free: 62.28 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.5926, allocations: 3.938 kB / 383.9 MB, free: 62.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002018/0.5946, allocations: 1.293 MB / 385.2 MB, free: 60.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001819/0.5948, allocations: 285.5 kB / 385.5 MB, free: 60.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.5948, allocations: 4 kB / 385.5 MB, free: 60.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.5949, allocations: 0 / 385.5 MB, free: 60.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.194e-05/0.5949, allocations: 3.938 kB / 385.5 MB, free: 60.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.5949, allocations: 11.97 kB / 385.5 MB, free: 60.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005192/0.5955, allocations: 43.88 kB / 385.5 MB, free: 60.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001965/0.5957, allocations: 157.3 kB / 385.7 MB, free: 60.39 MB / 298.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.000423/0.5961, allocations: 473.1 kB / 386.1 MB, free: 59.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002158/0.5964, allocations: 130.5 kB / 386.3 MB, free: 59.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005138/0.5969, allocations: 196 kB / 386.5 MB, free: 59.55 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.574e-06/0.5969, allocations: 0 / 386.5 MB, free: 59.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.5969, allocations: 4 kB / 386.5 MB, free: 59.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.465e-06/0.5969, allocations: 0 / 386.5 MB, free: 59.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003485/0.6004, allocations: 2.322 MB / 388.8 MB, free: 57.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.639e-06/0.6005, allocations: 0 / 388.8 MB, free: 57.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.96e-05/0.6005, allocations: 0 / 388.8 MB, free: 57.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.383e-06/0.6005, allocations: 0 / 388.8 MB, free: 57.12 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.891e-05/0.6006, allocations: 39.97 kB / 388.8 MB, free: 57.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.6006, allocations: 4 kB / 388.8 MB, free: 57.08 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.088e-06/0.6007, allocations: 0 / 388.8 MB, free: 57.08 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002376/0.603, allocations: 1.599 MB / 390.4 MB, free: 55.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00126/0.6043, allocations: 0.6628 MB / 391.1 MB, free: 54.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002358/0.6046, allocations: 63.97 kB / 391.2 MB, free: 54.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004773/0.6051, allocations: 35.97 kB / 391.2 MB, free: 54.63 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006289/0.6057, allocations: 359.1 kB / 391.5 MB, free: 54.28 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001941/0.6059, allocations: 157.7 kB / 391.7 MB, free: 54.13 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001914/0.6079, allocations: 1.202 MB / 392.9 MB, free: 52.92 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.15e-07/0.6079, allocations: 0 / 392.9 MB, free: 52.92 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00067/0.6086, allocations: 148 kB / 393 MB, free: 52.78 MB / 298.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.0002751/0.6089, allocations: 197.6 kB / 393.2 MB, free: 52.58 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00216/0.611, allocations: 1.893 MB / 395.1 MB, free: 50.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.639e-06/0.6111, allocations: 0 / 395.1 MB, free: 50.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001291/0.6124, allocations: 1.386 MB / 396.5 MB, free: 49.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/0.6136, allocations: 299.4 kB / 396.8 MB, free: 48.82 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003983/0.6176, allocations: 2.408 MB / 399.2 MB, free: 46.37 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008935/0.6186, allocations: 1.166 MB / 400.4 MB, free: 45.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.257e-05/0.6186, allocations: 27.44 kB / 400.4 MB, free: 45.15 MB / 298.7 MB Notification: Performance of SimCode: time 1.543e-06/0.6186, allocations: 0 / 400.4 MB, free: 45.15 MB / 298.7 MB Notification: Performance of Templates: time 0.01526/0.6339, allocations: 10.88 MB / 411.3 MB, free: 34.05 MB / 298.7 MB