Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG.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.DFFREG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG") translateModel(Modelica.Electrical.Digital.Examples.DFFREG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009817/0.0009814, allocations: 179.3 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.16/1.16, allocations: 194.5 MB / 211.6 MB, free: 3.062 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00154/0.00154, allocations: 120.6 kB / 256.9 MB, free: 4.332 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003109/0.000311, allocations: 8 kB / 310.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07494/0.07527, allocations: 44.51 MB / 355.1 MB, free: 2.344 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2267/0.302, allocations: 77.96 MB / 433 MB, free: 11.6 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001816/0.3023, allocations: 71.72 kB / 433.1 MB, free: 11.56 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04493/0.3472, allocations: 27.8 MB / 460.9 MB, free: 2.543 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3472, allocations: 0 / 460.9 MB, free: 2.543 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.743e-05/0.3473, allocations: 8 kB / 460.9 MB, free: 2.535 MB / 330.7 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.00108/0.3483, allocations: 1.143 MB / 462 MB, free: 1.297 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/0.3484, allocations: 8.031 kB / 462.1 MB, free: 1.289 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.3485, allocations: 90.92 kB / 462.1 MB, free: 1.199 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005981/0.3491, allocations: 415.5 kB / 462.5 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.31e-05/0.3492, allocations: 27.94 kB / 462.6 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.188e-05/0.3492, allocations: 27.98 kB / 462.6 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000769/0.35, allocations: 0.5061 MB / 463.1 MB, free: 188 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.35, allocations: 0 / 463.1 MB, free: 188 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.309e-05/0.3501, allocations: 19.98 kB / 463.1 MB, free: 168 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.3501, allocations: 4 kB / 463.1 MB, free: 164 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005331/0.3506, allocations: 375.8 kB / 463.5 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.3519, allocations: 0.8522 MB / 464.3 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006261/0.3526, allocations: 0.5101 MB / 464.9 MB, free: 14.37 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.616e-06/0.3526, allocations: 0 / 464.9 MB, free: 14.37 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007597/0.3534, allocations: 0.6663 MB / 465.5 MB, free: 13.66 MB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 1.703e-06/0.3534, allocations: 0 / 465.5 MB, free: 13.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.002219/0.3556, allocations: 1.795 MB / 467.3 MB, free: 11.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001407/0.3557, allocations: 275.3 kB / 467.6 MB, free: 11.44 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001258/0.357, allocations: 1.031 MB / 468.6 MB, free: 10.4 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.326e-05/0.3571, allocations: 41.7 kB / 468.7 MB, free: 10.36 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.684e-05/0.3572, allocations: 153.9 kB / 468.8 MB, free: 10.2 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.013e-05/0.3573, allocations: 79.14 kB / 468.9 MB, free: 10.12 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.13e-05/0.3573, allocations: 12 kB / 468.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.71e-05/0.3574, allocations: 342.8 kB / 469.2 MB, free: 9.77 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004602/0.3579, allocations: 348.1 kB / 469.6 MB, free: 9.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005195/0.3584, allocations: 387.1 kB / 470 MB, free: 9.043 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004619/0.3589, allocations: 0.4964 MB / 470.4 MB, free: 8.504 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3589, allocations: 0 / 470.4 MB, free: 8.504 MB / 346.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001369/0.3603, allocations: 1.122 MB / 471.6 MB, free: 7.332 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001441/0.3604, allocations: 247.7 kB / 471.8 MB, free: 7.047 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.3605, allocations: 4 kB / 471.8 MB, free: 7.043 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.3605, allocations: 4.062 kB / 471.8 MB, free: 7.039 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.566e-05/0.3605, allocations: 11.98 kB / 471.8 MB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.3605, allocations: 0 / 471.8 MB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/0.3608, allocations: 35.89 kB / 471.9 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001499/0.361, allocations: 160.2 kB / 472 MB, free: 6.836 MB / 346.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: 40 ($PRE.dFFREG.delay.inertialDelaySensitive[2].y,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked 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.0007295/0.3617, allocations: 0.7679 MB / 472.8 MB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.3618, allocations: 91.05 kB / 472.9 MB, free: 5.922 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002018/0.362, allocations: 143.7 kB / 473 MB, free: 5.773 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.362, allocations: 4 kB / 473 MB, free: 5.77 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.362, allocations: 0 / 473 MB, free: 5.77 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.362, allocations: 3.984 kB / 473 MB, free: 5.766 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002292/0.3643, allocations: 1.973 MB / 475 MB, free: 3.691 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.3644, allocations: 4 kB / 475 MB, free: 3.688 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.083e-05/0.3644, allocations: 4 kB / 475 MB, free: 3.684 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.3644, allocations: 0 / 475 MB, free: 3.684 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.295e-05/0.3645, allocations: 39.97 kB / 475 MB, free: 3.645 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.3645, allocations: 0 / 475 MB, free: 3.645 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3645, allocations: 0 / 475 MB, free: 3.645 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00163/0.3661, allocations: 1.389 MB / 476.4 MB, free: 2.195 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008237/0.3669, allocations: 0.5698 MB / 477 MB, free: 1.605 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001665/0.3671, allocations: 55.97 kB / 477.1 MB, free: 1.551 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002744/0.3674, allocations: 39.97 kB / 477.1 MB, free: 1.512 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003485/0.3678, allocations: 239.7 kB / 477.3 MB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000149/0.3679, allocations: 155.9 kB / 477.5 MB, free: 1.125 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001006/0.3689, allocations: 0.8654 MB / 478.4 MB, free: 272 kB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3689, allocations: 0 / 478.4 MB, free: 272 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004114/0.3694, allocations: 124 kB / 478.5 MB, free: 148 kB / 346.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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.delay.inertialDelaySensitive[2].x) * Number of clocked states: 0 () * 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.000226/0.3696, allocations: 188.4 kB / 478.7 MB, free: 15.95 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001554/0.3711, allocations: 1.524 MB / 480.2 MB, free: 14.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3712, allocations: 0 / 480.2 MB, free: 14.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009648/0.3721, allocations: 1.128 MB / 481.3 MB, free: 13.12 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009103/0.3731, allocations: 281.5 kB / 481.6 MB, free: 12.86 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00254/0.3756, allocations: 2.15 MB / 483.7 MB, free: 10.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006695/0.3763, allocations: 1.038 MB / 484.8 MB, free: 9.605 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001121/0.3764, allocations: 35.81 kB / 484.8 MB, free: 9.574 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.628e-05/0.3764, allocations: 19.44 kB / 484.8 MB, free: 9.559 MB / 362.7 MB Notification: Performance of SimCode: time 4.6e-07/0.3764, allocations: 0 / 484.8 MB, free: 9.559 MB / 362.7 MB Notification: Performance of Templates: time 0.0161/0.3926, allocations: 13.56 MB / 498.4 MB, free: 11.74 MB / 378.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1)