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.927/1.927, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003572/0.0003574, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08052/0.0809, allocations: 44.51 MB / 308.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.DFFREGSRH): time 0.00219/0.08314, allocations: 1.442 MB / 309.8 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002504/0.08568, allocations: 1.027 MB / 310.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.915e-05/0.08581, allocations: 4 kB / 310.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001314/0.08596, allocations: 23.78 kB / 310.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003338/0.08631, allocations: 171.7 kB / 311 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003688/0.08669, allocations: 91.81 kB / 311.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000454/0.08716, allocations: 303.5 kB / 311.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002189/0.0874, allocations: 88.86 kB / 311.5 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001158/0.08857, allocations: 0.8266 MB / 312.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003224/0.08891, allocations: 223.4 kB / 312.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001058/0.08904, allocations: 12 kB / 312.5 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.585e-05/0.08914, allocations: 12 kB / 312.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002703/0.08943, allocations: 239.2 kB / 312.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002586/0.0897, allocations: 209.1 kB / 313 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001433/0.09115, allocations: 1.181 MB / 314.2 MB, free: 11.17 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.09117, allocations: 0 / 314.2 MB, free: 11.17 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.09119, allocations: 4 kB / 314.2 MB, free: 11.17 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.09121, allocations: 0 / 314.2 MB, free: 11.17 MB / 266.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.002088/0.09331, allocations: 1.473 MB / 315.7 MB, free: 9.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.09336, allocations: 8.031 kB / 315.7 MB, free: 9.582 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002736/0.09365, allocations: 134.5 kB / 315.8 MB, free: 9.449 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008492/0.09451, allocations: 0.5127 MB / 316.3 MB, free: 8.887 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.149e-05/0.09459, allocations: 24 kB / 316.3 MB, free: 8.863 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.09472, allocations: 31.98 kB / 316.4 MB, free: 8.832 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001455/0.09618, allocations: 0.626 MB / 317 MB, free: 8.199 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.09622, allocations: 0 / 317 MB, free: 8.199 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.988e-05/0.09631, allocations: 12 kB / 317 MB, free: 8.188 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.445e-06/0.09633, allocations: 4 kB / 317 MB, free: 8.184 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.09736, allocations: 467.7 kB / 317.5 MB, free: 7.727 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002265/0.09965, allocations: 1.08 MB / 318.5 MB, free: 6.59 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001299/0.101, allocations: 0.6975 MB / 319.2 MB, free: 5.883 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.616e-06/0.101, allocations: 0 / 319.2 MB, free: 5.883 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001422/0.1024, allocations: 0.7632 MB / 320 MB, free: 5.082 MB / 266.7 MB Notification: Performance of pre-optimization done (n=36): time 3.36e-06/0.1025, allocations: 4 kB / 320 MB, free: 5.078 MB / 266.7 MB Notification: Performance of matching and sorting (n=36): time 0.004146/0.1066, allocations: 2.134 MB / 322.1 MB, free: 2.832 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003018/0.107, allocations: 329 kB / 322.5 MB, free: 2.449 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003667/0.1107, allocations: 1.825 MB / 324.3 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001852/0.1109, allocations: 49.62 kB / 324.3 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003111/0.1112, allocations: 244.9 kB / 324.6 MB, free: 316 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001791/0.1114, allocations: 87.22 kB / 324.7 MB, free: 228 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.053e-05/0.1115, allocations: 12 kB / 324.7 MB, free: 216 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.1117, allocations: 322.8 kB / 325 MB, free: 15.89 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009786/0.1127, allocations: 455.9 kB / 325.4 MB, free: 15.44 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009783/0.1137, allocations: 482.6 kB / 325.9 MB, free: 14.96 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009702/0.1147, allocations: 0.5871 MB / 326.5 MB, free: 14.32 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.211e-06/0.1147, allocations: 7.875 kB / 326.5 MB, free: 14.32 MB / 282.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002724/0.1174, allocations: 1.334 MB / 327.8 MB, free: 12.93 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003001/0.1178, allocations: 293.5 kB / 328.1 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.489e-06/0.1178, allocations: 4.062 kB / 328.1 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.1178, allocations: 0 / 328.1 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.388e-05/0.1179, allocations: 4 kB / 328.1 MB, free: 12.58 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.964e-06/0.1179, allocations: 0 / 328.1 MB, free: 12.58 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000531/0.1184, allocations: 55.81 kB / 328.2 MB, free: 12.53 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002093/0.1187, allocations: 127.9 kB / 328.3 MB, free: 12.4 MB / 282.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.001833/0.1205, allocations: 0.9946 MB / 329.3 MB, free: 11.35 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002746/0.1208, allocations: 130.5 kB / 329.4 MB, free: 11.22 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006528/0.1215, allocations: 247.6 kB / 329.7 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.902e-06/0.1215, allocations: 0 / 329.7 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.258e-06/0.1215, allocations: 0 / 329.7 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.044e-06/0.1215, allocations: 7.984 kB / 329.7 MB, free: 10.97 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004771/0.1263, allocations: 2.445 MB / 332.1 MB, free: 8.41 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.64e-06/0.1263, allocations: 0 / 332.1 MB, free: 8.41 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.214e-05/0.1264, allocations: 4 kB / 332.1 MB, free: 8.406 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.241e-06/0.1264, allocations: 0 / 332.1 MB, free: 8.406 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001166/0.1265, allocations: 43.98 kB / 332.2 MB, free: 8.363 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.1265, allocations: 3.938 kB / 332.2 MB, free: 8.359 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.1265, allocations: 3.984 kB / 332.2 MB, free: 8.355 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003188/0.1297, allocations: 1.657 MB / 333.8 MB, free: 6.629 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001625/0.1314, allocations: 0.6901 MB / 334.5 MB, free: 5.918 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002599/0.1317, allocations: 59.97 kB / 334.6 MB, free: 5.859 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004764/0.1322, allocations: 39.95 kB / 334.6 MB, free: 5.82 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000753/0.133, allocations: 355.6 kB / 335 MB, free: 5.473 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002386/0.1332, allocations: 151.9 kB / 335.1 MB, free: 5.324 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.002831/0.1361, allocations: 1.336 MB / 336.4 MB, free: 3.984 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.105e-06/0.1361, allocations: 0 / 336.4 MB, free: 3.984 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008223/0.1369, allocations: 148 kB / 336.6 MB, free: 3.84 MB / 282.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.0003456/0.1373, allocations: 193.7 kB / 336.8 MB, free: 3.637 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003199/0.1405, allocations: 1.944 MB / 338.7 MB, free: 1.594 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.955e-06/0.1405, allocations: 0 / 338.7 MB, free: 1.594 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002039/0.1426, allocations: 1.393 MB / 340.1 MB, free: 104 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001386/0.144, allocations: 302.3 kB / 340.4 MB, free: 15.81 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006366/0.1504, allocations: 3.196 MB / 343.6 MB, free: 12.57 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001549/0.152, allocations: 1.208 MB / 344.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.838e-05/0.1521, allocations: 35.31 kB / 344.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of SimCode: time 1.862e-06/0.1521, allocations: 0 / 344.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of Templates: time 0.02107/0.1732, allocations: 11.35 MB / 356.2 MB, free: 15.74 MB / 314.7 MB