Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL") translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00151/0.00151, allocations: 167.3 kB / 12.72 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.348/1.348, allocations: 170.6 MB / 183.8 MB, free: 11.42 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001574/0.001574, allocations: 110.8 kB / 223.2 MB, free: 4.043 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.346e-05/2.363e-05, allocations: 4 kB / 268.9 MB, free: 20.91 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0654/0.06544, allocations: 38.76 MB / 307.6 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.244/0.3095, allocations: 72.86 MB / 380.5 MB, free: 3.371 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001944/0.3097, allocations: 69.97 kB / 380.6 MB, free: 3.336 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05648/0.3662, allocations: 31.85 MB / 412.4 MB, free: 8.406 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.058e-06/0.3663, allocations: 3.984 kB / 412.4 MB, free: 8.402 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.597e-05/0.3663, allocations: 23.94 kB / 412.4 MB, free: 8.379 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.001227/0.3675, allocations: 1.273 MB / 413.7 MB, free: 7.082 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.3676, allocations: 8.031 kB / 413.7 MB, free: 7.074 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001733/0.3678, allocations: 129.5 kB / 413.8 MB, free: 6.949 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007163/0.3685, allocations: 0.5154 MB / 414.4 MB, free: 6.418 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.395e-05/0.3685, allocations: 25.92 kB / 414.4 MB, free: 6.398 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.843e-05/0.3686, allocations: 27.25 kB / 414.4 MB, free: 6.375 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008641/0.3695, allocations: 0.6132 MB / 415 MB, free: 5.906 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.3695, allocations: 4 kB / 415 MB, free: 5.902 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.142e-05/0.3696, allocations: 19.17 kB / 415 MB, free: 5.887 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.3696, allocations: 0 / 415 MB, free: 5.887 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005842/0.3702, allocations: 449.1 kB / 415.5 MB, free: 5.582 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001453/0.3717, allocations: 1.041 MB / 416.5 MB, free: 4.711 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007367/0.3724, allocations: 0.6827 MB / 417.2 MB, free: 4.316 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006956/0.3731, allocations: 0.6644 MB / 417.9 MB, free: 3.906 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.297e-05/0.3731, allocations: 4 kB / 417.9 MB, free: 3.902 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009447/0.3741, allocations: 0.7653 MB / 418.6 MB, free: 3.102 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 2.535e-06/0.3741, allocations: 4 kB / 418.6 MB, free: 3.098 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.001986/0.3761, allocations: 1.396 MB / 420 MB, free: 1.645 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002491/0.3764, allocations: 329 kB / 420.4 MB, free: 1.262 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001905/0.3783, allocations: 1.438 MB / 421.8 MB, free: 15.81 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.608e-05/0.3784, allocations: 49.69 kB / 421.8 MB, free: 15.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.3785, allocations: 210.6 kB / 422 MB, free: 15.54 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.3786, allocations: 91.06 kB / 422.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.012e-05/0.3787, allocations: 16 kB / 422.2 MB, free: 15.44 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.3789, allocations: 370.8 kB / 422.5 MB, free: 15.07 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005878/0.3795, allocations: 440 kB / 422.9 MB, free: 14.63 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005733/0.38, allocations: 440.2 kB / 423.4 MB, free: 14.2 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006049/0.3806, allocations: 0.584 MB / 424 MB, free: 13.57 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3807, allocations: 0 / 424 MB, free: 13.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001644/0.3823, allocations: 1.327 MB / 425.3 MB, free: 12.19 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001942/0.3825, allocations: 289.5 kB / 425.6 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.3825, allocations: 0 / 425.6 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.3826, allocations: 7.953 kB / 425.6 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.79e-05/0.3826, allocations: 0 / 425.6 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.3826, allocations: 8 kB / 425.6 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000364/0.383, allocations: 47.81 kB / 425.6 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001806/0.3832, allocations: 151.9 kB / 425.8 MB, free: 11.64 MB / 314.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.dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,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,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,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 () * 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.0003902/0.3836, allocations: 462.5 kB / 426.2 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001454/0.3837, allocations: 130.5 kB / 426.4 MB, free: 11.01 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003368/0.3841, allocations: 199.9 kB / 426.6 MB, free: 10.81 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.3841, allocations: 7.953 kB / 426.6 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3841, allocations: 0 / 426.6 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3841, allocations: 0 / 426.6 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002807/0.3869, allocations: 2.305 MB / 428.9 MB, free: 8.387 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3869, allocations: 0 / 428.9 MB, free: 8.387 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.527e-05/0.3869, allocations: 11.92 kB / 428.9 MB, free: 8.375 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.3869, allocations: 0 / 428.9 MB, free: 8.375 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.626e-05/0.387, allocations: 43.94 kB / 428.9 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.387, allocations: 0 / 428.9 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.387, allocations: 3.938 kB / 428.9 MB, free: 8.328 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001957/0.389, allocations: 1.602 MB / 430.5 MB, free: 6.656 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001069/0.3901, allocations: 0.6474 MB / 431.2 MB, free: 5.988 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000187/0.3903, allocations: 63.95 kB / 431.2 MB, free: 5.926 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000354/0.3907, allocations: 55.86 kB / 431.3 MB, free: 5.871 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005619/0.3912, allocations: 359.6 kB / 431.6 MB, free: 5.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001848/0.3914, allocations: 155.9 kB / 431.8 MB, free: 5.367 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001737/0.3932, allocations: 1.198 MB / 433 MB, free: 4.164 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.3932, allocations: 3.938 kB / 433 MB, free: 4.16 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000534/0.3937, allocations: 152 kB / 433.1 MB, free: 4.012 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,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) * 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.0002843/0.394, allocations: 187.2 kB / 433.3 MB, free: 3.816 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001952/0.396, allocations: 1.898 MB / 435.2 MB, free: 1.82 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.396, allocations: 0 / 435.2 MB, free: 1.82 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001241/0.3972, allocations: 1.386 MB / 436.6 MB, free: 344 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001254/0.3985, allocations: 309.2 kB / 436.9 MB, free: 36 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003691/0.4022, allocations: 2.308 MB / 439.2 MB, free: 13.69 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009483/0.4032, allocations: 1.162 MB / 440.4 MB, free: 12.5 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002275/0.4034, allocations: 83.67 kB / 440.5 MB, free: 12.43 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.682e-05/0.4035, allocations: 31.44 kB / 440.5 MB, free: 12.39 MB / 330.7 MB Notification: Performance of SimCode: time 9.32e-07/0.4035, allocations: 0 / 440.5 MB, free: 12.39 MB / 330.7 MB Notification: Performance of Templates: time 0.0212/0.4247, allocations: 15.41 MB / 455.9 MB, free: 12.55 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe 2>&1)