Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH") Notification: Performance of loadModel(Modelica): time 1.686/1.686, allocations: 171.2 MB / 187.3 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005695/0.0005697, allocations: 8 kB / 233.8 MB, free: 3.086 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1018, allocations: 38.77 MB / 272.5 MB, free: 12.24 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3929/0.4947, allocations: 72.89 MB / 345.4 MB, free: 1.023 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/0.4951, allocations: 75.17 kB / 345.5 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1048/0.5999, allocations: 30.43 MB / 375.9 MB, free: 7.441 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6, allocations: 0 / 375.9 MB, free: 7.441 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.045e-05/0.6, allocations: 20 kB / 376 MB, free: 7.422 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.002426/0.6025, allocations: 1.466 MB / 377.4 MB, free: 5.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.6025, allocations: 12.03 kB / 377.4 MB, free: 5.918 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003992/0.6029, allocations: 138.4 kB / 377.6 MB, free: 5.781 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001264/0.6042, allocations: 0.5072 MB / 378.1 MB, free: 5.262 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.175e-05/0.6044, allocations: 31.75 kB / 378.1 MB, free: 5.234 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001431/0.6045, allocations: 27.94 kB / 378.1 MB, free: 5.211 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/0.6062, allocations: 0.6235 MB / 378.8 MB, free: 4.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.6062, allocations: 0 / 378.8 MB, free: 4.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001039/0.6063, allocations: 23.73 kB / 378.8 MB, free: 4.715 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.6064, allocations: 0 / 378.8 MB, free: 4.715 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001183/0.6075, allocations: 461.8 kB / 379.2 MB, free: 4.395 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002462/0.61, allocations: 1.035 MB / 380.3 MB, free: 3.531 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/0.6116, allocations: 0.6878 MB / 381 MB, free: 3.129 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.6116, allocations: 4 kB / 381 MB, free: 3.125 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001748/0.6134, allocations: 0.7697 MB / 381.7 MB, free: 2.469 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 3.768e-06/0.6134, allocations: 3.938 kB / 381.7 MB, free: 2.465 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.004816/0.6183, allocations: 2.135 MB / 383.9 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002685/0.6186, allocations: 325 kB / 384.2 MB, free: 184 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003955/0.6225, allocations: 1.646 MB / 385.8 MB, free: 14.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002768/0.6229, allocations: 45.69 kB / 385.9 MB, free: 14.46 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002924/0.6232, allocations: 248.9 kB / 386.1 MB, free: 14.22 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002529/0.6234, allocations: 79.16 kB / 386.2 MB, free: 14.14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.915e-05/0.6235, allocations: 12 kB / 386.2 MB, free: 14.13 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.6237, allocations: 322.8 kB / 386.5 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001289/0.625, allocations: 443.9 kB / 387 MB, free: 13.37 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/0.6263, allocations: 470.7 kB / 387.4 MB, free: 12.9 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001141/0.6275, allocations: 0.5909 MB / 388 MB, free: 12.26 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.6275, allocations: 0 / 388 MB, free: 12.26 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.003244/0.6308, allocations: 1.33 MB / 389.3 MB, free: 10.87 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003269/0.6311, allocations: 286.6 kB / 389.6 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.689e-06/0.6312, allocations: 3.938 kB / 389.6 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.57e-05/0.6312, allocations: 7.984 kB / 389.6 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.422e-05/0.6313, allocations: 0 / 389.6 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.355e-06/0.6313, allocations: 4 kB / 389.6 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006836/0.632, allocations: 47.94 kB / 389.7 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000352/0.6323, allocations: 155.9 kB / 389.8 MB, free: 10.33 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.002006/0.6344, allocations: 0.9363 MB / 390.8 MB, free: 9.332 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003155/0.6347, allocations: 134.5 kB / 390.9 MB, free: 9.199 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006263/0.6353, allocations: 199.8 kB / 391.1 MB, free: 8.996 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.6354, allocations: 7.938 kB / 391.1 MB, free: 8.988 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.6354, allocations: 4 kB / 391.1 MB, free: 8.984 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.6354, allocations: 0 / 391.1 MB, free: 8.984 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005395/0.6408, allocations: 2.352 MB / 393.5 MB, free: 6.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.623e-06/0.6408, allocations: 0 / 393.5 MB, free: 6.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.442e-05/0.6409, allocations: 8 kB / 393.5 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.6409, allocations: 0 / 393.5 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001288/0.641, allocations: 39.97 kB / 393.5 MB, free: 6.473 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.6411, allocations: 4 kB / 393.5 MB, free: 6.469 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.6411, allocations: 0 / 393.5 MB, free: 6.469 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00364/0.6447, allocations: 1.641 MB / 395.2 MB, free: 4.758 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001815/0.6466, allocations: 0.6552 MB / 395.8 MB, free: 4.082 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003514/0.647, allocations: 59.97 kB / 395.9 MB, free: 4.023 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006211/0.6476, allocations: 47.81 kB / 395.9 MB, free: 3.977 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009809/0.6486, allocations: 355.6 kB / 396.3 MB, free: 3.629 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003102/0.6489, allocations: 159.9 kB / 396.4 MB, free: 3.473 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002934/0.6519, allocations: 1.212 MB / 397.6 MB, free: 2.258 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.81e-07/0.6519, allocations: 0 / 397.6 MB, free: 2.258 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001023/0.653, allocations: 148 kB / 397.8 MB, free: 2.113 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,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.0004167/0.6534, allocations: 197.6 kB / 398 MB, free: 1.906 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003758/0.6572, allocations: 1.92 MB / 399.9 MB, free: 15.89 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.6572, allocations: 0 / 399.9 MB, free: 15.89 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002315/0.6595, allocations: 1.393 MB / 401.3 MB, free: 14.39 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002109/0.6617, allocations: 303.4 kB / 401.6 MB, free: 14.1 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006991/0.6687, allocations: 3.037 MB / 404.6 MB, free: 11.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001467/0.6702, allocations: 1.173 MB / 405.8 MB, free: 9.824 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.69e-05/0.6704, allocations: 27.44 kB / 405.8 MB, free: 9.797 MB / 330.7 MB Notification: Performance of SimCode: time 1.222e-06/0.6704, allocations: 0 / 405.8 MB, free: 9.797 MB / 330.7 MB Notification: Performance of Templates: time 0.025/0.6954, allocations: 10.9 MB / 416.7 MB, free: 14.68 MB / 346.7 MB