Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL") Notification: Performance of loadModel(Modelica): time 1.724/1.724, allocations: 194.8 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003657/0.0003657, allocations: 12 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07939/0.07978, allocations: 44.5 MB / 308.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3312/0.411, allocations: 78.26 MB / 386.7 MB, free: 18.78 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/0.4112, allocations: 69.12 kB / 386.8 MB, free: 18.78 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08076/0.492, allocations: 32.63 MB / 419.4 MB, free: 10.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.492, allocations: 0 / 419.4 MB, free: 10.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.521e-05/0.4921, allocations: 15.47 kB / 419.4 MB, free: 10.93 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001487/0.4936, allocations: 1.507 MB / 420.9 MB, free: 9.684 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.4936, allocations: 7.75 kB / 420.9 MB, free: 9.684 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001945/0.4938, allocations: 128.4 kB / 421.1 MB, free: 9.621 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006844/0.4945, allocations: 0.5145 MB / 421.6 MB, free: 9.266 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.035e-05/0.4946, allocations: 22.25 kB / 421.6 MB, free: 9.266 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.4947, allocations: 29.94 kB / 421.6 MB, free: 9.266 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.4959, allocations: 0.6275 MB / 422.3 MB, free: 9.082 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.4959, allocations: 0 / 422.3 MB, free: 9.082 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.309e-05/0.496, allocations: 21.73 kB / 422.3 MB, free: 9.078 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.4961, allocations: 0 / 422.3 MB, free: 9.078 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008223/0.4969, allocations: 474.3 kB / 422.7 MB, free: 8.996 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001798/0.4987, allocations: 1.086 MB / 423.8 MB, free: 8.406 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/0.4998, allocations: 0.7071 MB / 424.5 MB, free: 8.301 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.128e-05/0.4999, allocations: 3.938 kB / 424.5 MB, free: 8.297 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001108/0.501, allocations: 0.7543 MB / 425.3 MB, free: 7.965 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 2.892e-06/0.501, allocations: 0 / 425.3 MB, free: 7.965 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.003352/0.5044, allocations: 2.138 MB / 427.4 MB, free: 7.086 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001482/0.5045, allocations: 328.3 kB / 427.7 MB, free: 6.758 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002753/0.5073, allocations: 1.615 MB / 429.4 MB, free: 6.062 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001461/0.5075, allocations: 45.27 kB / 429.4 MB, free: 6.031 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001877/0.5077, allocations: 244.5 kB / 429.6 MB, free: 5.871 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.5078, allocations: 79.98 kB / 429.7 MB, free: 5.828 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.153e-05/0.5079, allocations: 12.94 kB / 429.7 MB, free: 5.828 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.369e-05/0.508, allocations: 328.9 kB / 430.1 MB, free: 5.508 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008099/0.5088, allocations: 452.6 kB / 430.5 MB, free: 5.434 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000791/0.5096, allocations: 486.4 kB / 431 MB, free: 5.328 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007105/0.5103, allocations: 0.5828 MB / 431.6 MB, free: 5.02 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.362e-06/0.5104, allocations: 3.938 kB / 431.6 MB, free: 5.016 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002349/0.5127, allocations: 1.324 MB / 432.9 MB, free: 4.559 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001884/0.5129, allocations: 290.2 kB / 433.2 MB, free: 4.289 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.513, allocations: 0 / 433.2 MB, free: 4.289 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.513, allocations: 7.828 kB / 433.2 MB, free: 4.285 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.06e-05/0.513, allocations: 3.812 kB / 433.2 MB, free: 4.285 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.709e-06/0.513, allocations: 4.062 kB / 433.2 MB, free: 4.281 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000476/0.5135, allocations: 54.55 kB / 433.2 MB, free: 4.258 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001872/0.5137, allocations: 155.9 kB / 433.4 MB, free: 4.246 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.00144/0.5152, allocations: 0.9845 MB / 434.4 MB, free: 3.66 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000188/0.5154, allocations: 128.6 kB / 434.5 MB, free: 3.598 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005282/0.5159, allocations: 253.3 kB / 434.7 MB, free: 3.461 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.557e-06/0.5159, allocations: 4 kB / 434.7 MB, free: 3.457 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.715e-06/0.516, allocations: 0 / 434.7 MB, free: 3.457 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.324e-06/0.516, allocations: 3.875 kB / 434.8 MB, free: 3.457 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003942/0.5199, allocations: 2.41 MB / 437.2 MB, free: 2.156 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.62e-06/0.52, allocations: 0 / 437.2 MB, free: 2.156 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.193e-05/0.52, allocations: 7.938 kB / 437.2 MB, free: 2.148 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.52, allocations: 4 kB / 437.2 MB, free: 2.145 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.5201, allocations: 43.59 kB / 437.2 MB, free: 2.109 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.5201, allocations: 0 / 437.2 MB, free: 2.109 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.796e-06/0.5202, allocations: 3.953 kB / 437.2 MB, free: 2.105 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002709/0.5229, allocations: 1.637 MB / 438.9 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001367/0.5243, allocations: 0.6694 MB / 439.5 MB, free: 236 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002537/0.5245, allocations: 61.16 kB / 439.6 MB, free: 196 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004973/0.525, allocations: 51.02 kB / 439.6 MB, free: 148 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007161/0.5258, allocations: 352.7 kB / 440 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002452/0.526, allocations: 161.5 kB / 440.1 MB, free: 15.73 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002665/0.5287, allocations: 1.33 MB / 441.5 MB, free: 14.63 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.13e-07/0.5287, allocations: 0 / 441.5 MB, free: 14.63 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000753/0.5295, allocations: 150.9 kB / 441.6 MB, free: 14.49 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: 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.0003368/0.5299, allocations: 193.1 kB / 441.8 MB, free: 14.3 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00301/0.5329, allocations: 1.939 MB / 443.7 MB, free: 12.52 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.5329, allocations: 0 / 443.7 MB, free: 12.52 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001896/0.5348, allocations: 1.397 MB / 445.1 MB, free: 11.02 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001395/0.5362, allocations: 321.1 kB / 445.5 MB, free: 10.71 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006137/0.5424, allocations: 3.2 MB / 448.7 MB, free: 7.477 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001495/0.5439, allocations: 1.212 MB / 449.9 MB, free: 6.238 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.493e-05/0.544, allocations: 27.44 kB / 449.9 MB, free: 6.211 MB / 330.7 MB Notification: Performance of SimCode: time 1.566e-06/0.544, allocations: 0 / 449.9 MB, free: 6.211 MB / 330.7 MB Notification: Performance of Templates: time 0.01952/0.5636, allocations: 11.42 MB / 461.3 MB, free: 10.57 MB / 346.7 MB