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.DFFREGSRH.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.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH") Notification: Performance of loadModel(Modelica): time 1.767/1.767, allocations: 194.8 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003603/0.0003604, allocations: 12 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07881/0.07919, allocations: 44.5 MB / 308.4 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4243/0.5035, allocations: 78.22 MB / 386.7 MB, free: 18.76 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002893/0.5039, allocations: 67.59 kB / 386.7 MB, free: 18.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08846/0.5924, allocations: 31.08 MB / 417.8 MB, free: 11.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.055e-06/0.5924, allocations: 4 kB / 417.8 MB, free: 11.58 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.544e-05/0.5925, allocations: 19.53 kB / 417.8 MB, free: 11.58 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.001527/0.594, allocations: 1.487 MB / 419.3 MB, free: 10.35 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.5941, allocations: 7.781 kB / 419.3 MB, free: 10.35 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001873/0.5943, allocations: 131.8 kB / 419.5 MB, free: 10.28 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007032/0.595, allocations: 0.5224 MB / 420 MB, free: 9.922 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.195e-05/0.595, allocations: 22.86 kB / 420 MB, free: 9.918 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.911e-05/0.5952, allocations: 26.56 kB / 420 MB, free: 9.918 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001134/0.5963, allocations: 0.6255 MB / 420.7 MB, free: 9.738 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.5963, allocations: 0 / 420.7 MB, free: 9.738 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.177e-05/0.5964, allocations: 15.47 kB / 420.7 MB, free: 9.738 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.212e-06/0.5964, allocations: 3.812 kB / 420.7 MB, free: 9.738 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000841/0.5973, allocations: 473.9 kB / 421.1 MB, free: 9.656 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001793/0.5991, allocations: 1.098 MB / 422.2 MB, free: 9.055 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009699/0.6001, allocations: 0.6975 MB / 422.9 MB, free: 8.953 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.298e-05/0.6001, allocations: 3.75 kB / 422.9 MB, free: 8.953 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001106/0.6012, allocations: 0.7682 MB / 423.7 MB, free: 8.609 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.084e-06/0.6013, allocations: 4 kB / 423.7 MB, free: 8.605 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.003399/0.6047, allocations: 2.132 MB / 425.8 MB, free: 7.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001534/0.6048, allocations: 328.3 kB / 426.2 MB, free: 7.402 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002792/0.6077, allocations: 1.609 MB / 427.8 MB, free: 6.719 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001068/0.6078, allocations: 44.97 kB / 427.8 MB, free: 6.684 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001977/0.608, allocations: 249 kB / 428.1 MB, free: 6.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.6081, allocations: 78.39 kB / 428.1 MB, free: 6.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.207e-05/0.6082, allocations: 16.11 kB / 428.1 MB, free: 6.477 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.486e-05/0.6083, allocations: 329.2 kB / 428.5 MB, free: 6.156 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008629/0.6092, allocations: 449.6 kB / 428.9 MB, free: 6.082 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008685/0.6101, allocations: 484.4 kB / 429.4 MB, free: 5.984 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007651/0.6109, allocations: 0.5772 MB / 430 MB, free: 5.676 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.642e-06/0.6109, allocations: 3.906 kB / 430 MB, free: 5.676 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002161/0.6131, allocations: 1.329 MB / 431.3 MB, free: 5.215 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000188/0.6133, allocations: 294.4 kB / 431.6 MB, free: 4.938 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.676e-06/0.6133, allocations: 3.938 kB / 431.6 MB, free: 4.934 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.6133, allocations: 0 / 431.6 MB, free: 4.934 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.098e-05/0.6134, allocations: 7.906 kB / 431.6 MB, free: 4.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.808e-06/0.6134, allocations: 3.969 kB / 431.6 MB, free: 4.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004896/0.6139, allocations: 46.28 kB / 431.6 MB, free: 4.914 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001961/0.6141, allocations: 153.9 kB / 431.8 MB, free: 4.902 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.dFFREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.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.001446/0.6155, allocations: 0.9976 MB / 432.8 MB, free: 4.305 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001954/0.6158, allocations: 132.5 kB / 432.9 MB, free: 4.238 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005391/0.6163, allocations: 245.4 kB / 433.2 MB, free: 4.105 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.8e-06/0.6163, allocations: 3.875 kB / 433.2 MB, free: 4.105 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.703e-06/0.6163, allocations: 0 / 433.2 MB, free: 4.105 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.043e-06/0.6164, allocations: 3.984 kB / 433.2 MB, free: 4.102 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003876/0.6202, allocations: 2.411 MB / 435.6 MB, free: 3.027 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.032e-06/0.6203, allocations: 0 / 435.6 MB, free: 3.027 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.838e-05/0.6203, allocations: 7.75 kB / 435.6 MB, free: 3.023 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.536e-06/0.6203, allocations: 3.875 kB / 435.6 MB, free: 3.023 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.6204, allocations: 39 kB / 435.6 MB, free: 3.016 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.819e-06/0.6204, allocations: 0 / 435.6 MB, free: 3.016 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.02e-06/0.6205, allocations: 0 / 435.6 MB, free: 3.016 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002682/0.6231, allocations: 1.636 MB / 437.3 MB, free: 2.238 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001431/0.6246, allocations: 0.6902 MB / 437.9 MB, free: 1.707 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002484/0.6249, allocations: 59.41 kB / 438 MB, free: 1.668 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004994/0.6254, allocations: 45.81 kB / 438.1 MB, free: 1.625 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006572/0.6261, allocations: 354.4 kB / 438.4 MB, free: 1.367 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001959/0.6263, allocations: 157 kB / 438.5 MB, free: 1.219 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002407/0.6287, allocations: 1.33 MB / 439.9 MB, free: 120 kB / 314.7 MB Notification: Performance of sort global known variables: time 1.677e-06/0.6287, allocations: 0 / 439.9 MB, free: 120 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007197/0.6295, allocations: 151.3 kB / 440 MB, free: 15.97 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,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.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.0003328/0.6298, allocations: 204.3 kB / 440.2 MB, free: 15.78 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003021/0.6329, allocations: 1.929 MB / 442.2 MB, free: 14.03 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.499e-06/0.6329, allocations: 0 / 442.2 MB, free: 14.03 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001929/0.6348, allocations: 1.401 MB / 443.6 MB, free: 12.53 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001356/0.6362, allocations: 295.8 kB / 443.8 MB, free: 12.24 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006355/0.6426, allocations: 3.2 MB / 447 MB, free: 8.996 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001518/0.6441, allocations: 1.216 MB / 448.3 MB, free: 7.754 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.737e-05/0.6442, allocations: 27.44 kB / 448.3 MB, free: 7.727 MB / 330.7 MB Notification: Performance of SimCode: time 1.577e-06/0.6442, allocations: 4 kB / 448.3 MB, free: 7.723 MB / 330.7 MB Notification: Performance of Templates: time 0.02061/0.6649, allocations: 11.42 MB / 459.7 MB, free: 12.09 MB / 346.7 MB