Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.DFFREGL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGL") translateModel(Modelica.Electrical.Digital.Examples.DFFREGL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001543/0.001543, allocations: 187.9 kB / 8.351 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.323/1.323, allocations: 194.3 MB / 203.1 MB, free: 9.324 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001614/0.001614, allocations: 114.1 kB / 248.1 MB, free: 6.352 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.839e-05/1.842e-05, allocations: 7.938 kB / 298.1 MB, free: 8.242 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1066, allocations: 44.5 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2908/0.3975, allocations: 77.26 MB / 419.8 MB, free: 18.52 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000283/0.3978, allocations: 69.09 kB / 419.9 MB, free: 18.48 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06648/0.4643, allocations: 37.42 MB / 457.3 MB, free: 4.102 MB / 331.1 MB Notification: Performance of FrontEnd: time 3.667e-06/0.4644, allocations: 0 / 457.3 MB, free: 4.102 MB / 331.1 MB Notification: Performance of Transformations before backend: time 3.074e-05/0.4644, allocations: 15.94 kB / 457.3 MB, free: 4.086 MB / 331.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001434/0.4658, allocations: 1.016 MB / 458.3 MB, free: 3.031 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.4659, allocations: 8.031 kB / 458.4 MB, free: 3.023 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002131/0.4661, allocations: 86.97 kB / 458.4 MB, free: 2.938 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006394/0.4668, allocations: 419.9 kB / 458.9 MB, free: 2.516 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.838e-05/0.4668, allocations: 18.92 kB / 458.9 MB, free: 2.5 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.546e-05/0.4669, allocations: 20 kB / 458.9 MB, free: 2.48 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005131/0.4674, allocations: 341.8 kB / 459.2 MB, free: 2.246 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006714/0.4681, allocations: 0.4898 MB / 459.7 MB, free: 1.863 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.4681, allocations: 0 / 459.7 MB, free: 1.863 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.356e-05/0.4682, allocations: 12 kB / 459.7 MB, free: 1.852 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.4682, allocations: 4 kB / 459.7 MB, free: 1.848 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001264/0.4695, allocations: 0.8279 MB / 460.6 MB, free: 1.148 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005843/0.4701, allocations: 0.4909 MB / 461 MB, free: 0.8477 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005757/0.4707, allocations: 497.3 kB / 461.5 MB, free: 0.543 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.309e-05/0.4707, allocations: 0 / 461.5 MB, free: 0.543 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007471/0.4715, allocations: 0.6471 MB / 462.2 MB, free: 15.85 MB / 347.1 MB Notification: Performance of pre-optimization done (n=34): time 2.364e-06/0.4715, allocations: 3.938 kB / 462.2 MB, free: 15.85 MB / 347.1 MB Notification: Performance of matching and sorting (n=34): time 0.001353/0.4728, allocations: 0.9095 MB / 463.1 MB, free: 14.93 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001634/0.473, allocations: 279.3 kB / 463.4 MB, free: 14.61 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00135/0.4744, allocations: 0.9878 MB / 464.4 MB, free: 13.61 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 7.434e-05/0.4744, allocations: 37.7 kB / 464.4 MB, free: 13.57 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.4746, allocations: 146 kB / 464.5 MB, free: 13.42 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00011/0.4747, allocations: 75.11 kB / 464.6 MB, free: 13.34 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.932e-05/0.4747, allocations: 12 kB / 464.6 MB, free: 13.33 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.4749, allocations: 342.8 kB / 465 MB, free: 12.99 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004532/0.4753, allocations: 348.1 kB / 465.3 MB, free: 12.65 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004174/0.4758, allocations: 332.5 kB / 465.6 MB, free: 12.32 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003078/0.4761, allocations: 245.1 kB / 465.9 MB, free: 12.09 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.4761, allocations: 0 / 465.9 MB, free: 12.09 MB / 347.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001161/0.4773, allocations: 0.8527 MB / 466.7 MB, free: 11.23 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001517/0.4774, allocations: 244.8 kB / 466.9 MB, free: 10.95 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.4774, allocations: 3.984 kB / 467 MB, free: 10.94 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.4775, allocations: 0 / 467 MB, free: 10.94 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.168e-05/0.4775, allocations: 4 kB / 467 MB, free: 10.94 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.046e-06/0.4775, allocations: 7.938 kB / 467 MB, free: 10.93 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003374/0.4778, allocations: 47.81 kB / 467 MB, free: 10.88 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001697/0.478, allocations: 148.7 kB / 467.2 MB, free: 10.74 MB / 347.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 40 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGL.dFFR.reset,dFFREGL.dFFR.reset,$PRE.dFFREGL.dFFR.clock,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 7 * 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.000325/0.4784, allocations: 410.7 kB / 467.6 MB, free: 10.29 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.4785, allocations: 87.06 kB / 467.6 MB, free: 10.21 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002323/0.4787, allocations: 152.1 kB / 467.8 MB, free: 10.05 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.4787, allocations: 0 / 467.8 MB, free: 10.05 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.4787, allocations: 8 kB / 467.8 MB, free: 10.05 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.4787, allocations: 0 / 467.8 MB, free: 10.05 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001962/0.4807, allocations: 1.622 MB / 469.4 MB, free: 8.379 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.4807, allocations: 0 / 469.4 MB, free: 8.379 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.665e-05/0.4808, allocations: 8 kB / 469.4 MB, free: 8.371 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.4808, allocations: 3.938 kB / 469.4 MB, free: 8.367 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.335e-05/0.4808, allocations: 35.98 kB / 469.5 MB, free: 8.332 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.4808, allocations: 0 / 469.5 MB, free: 8.332 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.4808, allocations: 7.984 kB / 469.5 MB, free: 8.324 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001415/0.4823, allocations: 1.076 MB / 470.6 MB, free: 7.23 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007722/0.4831, allocations: 0.5581 MB / 471.1 MB, free: 6.652 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/0.4832, allocations: 59.97 kB / 471.2 MB, free: 6.594 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002876/0.4835, allocations: 27.97 kB / 471.2 MB, free: 6.566 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003796/0.4839, allocations: 239.7 kB / 471.4 MB, free: 6.332 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001703/0.4841, allocations: 163.9 kB / 471.6 MB, free: 6.172 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.001045/0.4851, allocations: 0.8187 MB / 472.4 MB, free: 5.355 MB / 347.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4852, allocations: 0 / 472.4 MB, free: 5.355 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0004621/0.4856, allocations: 120 kB / 472.5 MB, free: 5.238 MB / 347.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.dFFR.reset,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.next_assign_val[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.clock,dFFREGL.dFFR.reset,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGL.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 7 * 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.0002499/0.4859, allocations: 185.6 kB / 472.7 MB, free: 5.043 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.001472/0.4874, allocations: 1.476 MB / 474.2 MB, free: 3.48 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 1.43e-05/0.4874, allocations: 4 kB / 474.2 MB, free: 3.477 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009543/0.4883, allocations: 1.101 MB / 475.3 MB, free: 2.289 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/0.4895, allocations: 279.9 kB / 475.6 MB, free: 2.023 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002467/0.492, allocations: 1.696 MB / 477.3 MB, free: 304 kB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007375/0.4928, allocations: 1.043 MB / 478.3 MB, free: 15.22 MB / 363.1 MB Notification: Performance of simCode: alias equations: time 0.0001397/0.4929, allocations: 39.23 kB / 478.3 MB, free: 15.18 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.779e-05/0.4929, allocations: 19.44 kB / 478.4 MB, free: 15.17 MB / 363.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4929, allocations: 0 / 478.4 MB, free: 15.17 MB / 363.1 MB Notification: Performance of Templates: time 0.0168/0.5098, allocations: 13.09 MB / 491.4 MB, free: 1.832 MB / 363.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGL.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGL.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGL.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGL.pipe 2>&1)