Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.974/1.974, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003665/0.0003666, allocations: 16 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09345/0.09384, allocations: 44.51 MB / 309 MB, free: 1.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3997/0.4936, allocations: 78.25 MB / 387.2 MB, free: 14.89 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002615/0.4939, allocations: 70.61 kB / 387.3 MB, free: 14.89 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09136/0.5853, allocations: 32.63 MB / 419.9 MB, free: 6.535 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5853, allocations: 4 kB / 419.9 MB, free: 6.531 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.716e-05/0.5854, allocations: 11.62 kB / 419.9 MB, free: 6.531 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.00181/0.5872, allocations: 1.5 MB / 421.4 MB, free: 5.293 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.5873, allocations: 7.719 kB / 421.4 MB, free: 5.293 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002229/0.5875, allocations: 127.6 kB / 421.6 MB, free: 5.23 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008602/0.5884, allocations: 0.5173 MB / 422.1 MB, free: 4.875 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.644e-05/0.5884, allocations: 19.19 kB / 422.1 MB, free: 4.875 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001273/0.5886, allocations: 26.16 kB / 422.1 MB, free: 4.875 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/0.59, allocations: 0.6379 MB / 422.8 MB, free: 4.684 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.59, allocations: 4 kB / 422.8 MB, free: 4.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.272e-05/0.5901, allocations: 22.23 kB / 422.8 MB, free: 4.676 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.5901, allocations: 3.875 kB / 422.8 MB, free: 4.676 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/0.5912, allocations: 463.3 kB / 423.3 MB, free: 4.602 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002106/0.5933, allocations: 1.088 MB / 424.3 MB, free: 4.012 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001254/0.5945, allocations: 0.7016 MB / 425 MB, free: 3.906 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.535e-05/0.5946, allocations: 3.688 kB / 425 MB, free: 3.906 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001354/0.5959, allocations: 0.7591 MB / 425.8 MB, free: 3.57 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.857e-06/0.596, allocations: 0 / 425.8 MB, free: 3.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.003915/0.5999, allocations: 2.163 MB / 428 MB, free: 2.68 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001741/0.6001, allocations: 327.4 kB / 428.3 MB, free: 2.355 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003588/0.6037, allocations: 1.824 MB / 430.1 MB, free: 1.574 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002286/0.604, allocations: 48.5 kB / 430.2 MB, free: 1.539 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002261/0.6042, allocations: 252.9 kB / 430.4 MB, free: 1.375 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000169/0.6044, allocations: 79.44 kB / 430.5 MB, free: 1.328 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.436e-05/0.6045, allocations: 15.25 kB / 430.5 MB, free: 1.328 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.119e-05/0.6046, allocations: 329.6 kB / 430.8 MB, free: 1.008 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009883/0.6056, allocations: 454.9 kB / 431.3 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00097/0.6065, allocations: 480 kB / 431.7 MB, free: 0.832 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008633/0.6074, allocations: 0.5826 MB / 432.3 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.6074, allocations: 0 / 432.3 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002545/0.61, allocations: 1.343 MB / 433.7 MB, free: 64 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000285/0.6103, allocations: 291.2 kB / 433.9 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.6103, allocations: 4.062 kB / 434 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.6104, allocations: 3.875 kB / 434 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.994e-05/0.6104, allocations: 7.812 kB / 434 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.6104, allocations: 3.953 kB / 434 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000615/0.611, allocations: 42.88 kB / 434 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002211/0.6113, allocations: 156.7 kB / 434.2 MB, free: 15.76 MB / 330.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.001934/0.6132, allocations: 0.9889 MB / 435.1 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002486/0.6135, allocations: 131.2 kB / 435.3 MB, free: 15.1 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006461/0.6142, allocations: 251.3 kB / 435.5 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.6142, allocations: 7.859 kB / 435.5 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.6142, allocations: 0 / 435.5 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.6142, allocations: 7.938 kB / 435.5 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004902/0.6191, allocations: 2.431 MB / 438 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.6192, allocations: 0 / 438 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.38e-05/0.6192, allocations: 4 kB / 438 MB, free: 13.19 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.563e-06/0.6192, allocations: 0 / 438 MB, free: 13.19 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001209/0.6193, allocations: 41.91 kB / 438 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.6194, allocations: 0 / 438 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.6194, allocations: 3.953 kB / 438 MB, free: 13.15 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003552/0.6229, allocations: 1.664 MB / 439.7 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001835/0.6248, allocations: 0.6756 MB / 440.4 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003362/0.6252, allocations: 70.27 kB / 440.4 MB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005936/0.6258, allocations: 33.41 kB / 440.5 MB, free: 11.17 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009393/0.6267, allocations: 361.4 kB / 440.8 MB, free: 10.9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002808/0.627, allocations: 152.5 kB / 441 MB, free: 10.76 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003444/0.6305, allocations: 1.329 MB / 442.3 MB, free: 9.469 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6305, allocations: 0 / 442.3 MB, free: 9.469 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009276/0.6314, allocations: 152 kB / 442.4 MB, free: 9.32 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.0004088/0.6319, allocations: 202 kB / 442.6 MB, free: 9.109 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003618/0.6355, allocations: 1.932 MB / 444.6 MB, free: 7.078 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.6355, allocations: 0 / 444.6 MB, free: 7.078 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002287/0.6378, allocations: 1.401 MB / 446 MB, free: 5.578 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001974/0.6398, allocations: 309.3 kB / 446.3 MB, free: 5.281 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007536/0.6474, allocations: 3.199 MB / 449.5 MB, free: 2.043 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001749/0.6492, allocations: 1.224 MB / 450.7 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.95e-05/0.6493, allocations: 27.44 kB / 450.7 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of SimCode: time 1.443e-06/0.6493, allocations: 0 / 450.7 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of Templates: time 0.02531/0.6746, allocations: 11.42 MB / 462.1 MB, free: 5.109 MB / 346.7 MB