Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.703/1.703, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.616e-05/2.642e-05, allocations: 4 kB / 228.8 MB, free: 15.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2104/0.2104, allocations: 38.76 MB / 267.6 MB, free: 9.438 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1128/0.3233, allocations: 72.82 MB / 340.4 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.3236, allocations: 71.95 kB / 340.5 MB, free: 456 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2649/0.5884, allocations: 30.59 MB / 371.1 MB, free: 75.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.293e-06/0.5885, allocations: 0 / 371.1 MB, free: 75.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.073e-05/0.5885, allocations: 20 kB / 371.1 MB, free: 75.11 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.001128/0.5897, allocations: 1.282 MB / 372.4 MB, free: 73.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.5897, allocations: 12.03 kB / 372.4 MB, free: 73.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001838/0.5899, allocations: 130.4 kB / 372.5 MB, free: 73.6 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006936/0.5906, allocations: 0.5095 MB / 373 MB, free: 73.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.042e-05/0.5907, allocations: 24 kB / 373 MB, free: 73.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.723e-05/0.5908, allocations: 28 kB / 373.1 MB, free: 73.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.5919, allocations: 0.6105 MB / 373.7 MB, free: 72.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.5919, allocations: 3.953 kB / 373.7 MB, free: 72.4 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.408e-05/0.592, allocations: 23.44 kB / 373.7 MB, free: 72.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.66e-06/0.592, allocations: 7.938 kB / 373.7 MB, free: 72.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007468/0.5928, allocations: 455 kB / 374.1 MB, free: 71.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.5945, allocations: 1.036 MB / 375.2 MB, free: 70.85 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000916/0.5954, allocations: 0.6781 MB / 375.9 MB, free: 70.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008651/0.5963, allocations: 0.6725 MB / 376.5 MB, free: 69.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.298e-05/0.5963, allocations: 0 / 376.5 MB, free: 69.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001019/0.5974, allocations: 0.7509 MB / 377.3 MB, free: 68.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 4.594e-06/0.5974, allocations: 4 kB / 377.3 MB, free: 68.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.002272/0.5997, allocations: 1.395 MB / 378.7 MB, free: 67.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001472/0.5999, allocations: 329 kB / 379 MB, free: 66.87 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002308/0.6022, allocations: 1.438 MB / 380.4 MB, free: 65.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001087/0.6023, allocations: 49.7 kB / 380.5 MB, free: 65.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.6025, allocations: 239.6 kB / 380.7 MB, free: 65.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.6026, allocations: 81.72 kB / 380.8 MB, free: 65.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.088e-05/0.6027, allocations: 16 kB / 380.8 MB, free: 65.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.649e-05/0.6028, allocations: 334.8 kB / 381.2 MB, free: 64.7 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007445/0.6035, allocations: 440 kB / 381.6 MB, free: 64.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007119/0.6043, allocations: 444.2 kB / 382 MB, free: 63.83 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006536/0.6049, allocations: 0.5762 MB / 382.6 MB, free: 63.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.515e-06/0.6049, allocations: 0 / 382.6 MB, free: 63.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002054/0.607, allocations: 1.293 MB / 383.9 MB, free: 61.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001798/0.6072, allocations: 289.5 kB / 384.2 MB, free: 61.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.029e-06/0.6072, allocations: 3.938 kB / 384.2 MB, free: 61.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.87e-05/0.6073, allocations: 3.984 kB / 384.2 MB, free: 61.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.159e-05/0.6073, allocations: 7.984 kB / 384.2 MB, free: 61.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.598e-06/0.6073, allocations: 4 kB / 384.2 MB, free: 61.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005098/0.6079, allocations: 47.25 kB / 384.2 MB, free: 61.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001939/0.6081, allocations: 150.4 kB / 384.4 MB, free: 61.32 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 43 ($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,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,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,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,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 () * 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.0004076/0.6085, allocations: 468.4 kB / 384.8 MB, free: 60.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001861/0.6087, allocations: 130.5 kB / 385 MB, free: 60.69 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005015/0.6092, allocations: 199.9 kB / 385.2 MB, free: 60.49 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.749e-06/0.6092, allocations: 8 kB / 385.2 MB, free: 60.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.708e-06/0.6092, allocations: 0 / 385.2 MB, free: 60.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.226e-06/0.6093, allocations: 0 / 385.2 MB, free: 60.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003345/0.6126, allocations: 2.308 MB / 387.5 MB, free: 58.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.506e-06/0.6126, allocations: 3.938 kB / 387.5 MB, free: 58.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.764e-05/0.6127, allocations: 0 / 387.5 MB, free: 58.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.987e-06/0.6127, allocations: 0 / 387.5 MB, free: 58.07 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.814e-05/0.6128, allocations: 47.97 kB / 387.5 MB, free: 58.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.742e-06/0.6128, allocations: 3.75 kB / 387.5 MB, free: 58.02 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.23e-06/0.6128, allocations: 0 / 387.5 MB, free: 58.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002358/0.6152, allocations: 1.598 MB / 389.1 MB, free: 56.36 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001208/0.6164, allocations: 0.6629 MB / 389.8 MB, free: 55.67 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000235/0.6167, allocations: 63.97 kB / 389.9 MB, free: 55.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004863/0.6172, allocations: 39.97 kB / 389.9 MB, free: 55.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006361/0.6178, allocations: 359.6 kB / 390.2 MB, free: 55.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001934/0.618, allocations: 157.7 kB / 390.4 MB, free: 55.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001892/0.62, allocations: 1.194 MB / 391.6 MB, free: 53.87 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.824e-06/0.62, allocations: 0 / 391.6 MB, free: 53.87 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006904/0.6207, allocations: 151.4 kB / 391.7 MB, free: 53.72 MB / 298.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) * 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.0002736/0.621, allocations: 197.7 kB / 391.9 MB, free: 53.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002195/0.6232, allocations: 1.899 MB / 393.8 MB, free: 51.54 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.365e-06/0.6232, allocations: 0 / 393.8 MB, free: 51.54 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001362/0.6246, allocations: 1.382 MB / 395.2 MB, free: 50.06 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001254/0.6258, allocations: 294.2 kB / 395.5 MB, free: 49.77 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004019/0.6299, allocations: 2.412 MB / 397.9 MB, free: 47.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009039/0.6308, allocations: 1.162 MB / 399.1 MB, free: 46.13 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.293e-05/0.6309, allocations: 31.44 kB / 399.1 MB, free: 46.1 MB / 298.7 MB Notification: Performance of SimCode: time 1.824e-06/0.6309, allocations: 0 / 399.1 MB, free: 46.1 MB / 298.7 MB Notification: Performance of Templates: time 0.01538/0.6463, allocations: 10.88 MB / 410 MB, free: 35.02 MB / 298.7 MB