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.00143/0.001431, allocations: 183.2 kB / 8.354 MB, free: 0.7305 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.304/1.304, allocations: 194.4 MB / 203.1 MB, free: 13.02 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.001596/0.001596, allocations: 119.5 kB / 248.1 MB, free: 28 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.401e-05/1.403e-05, allocations: 4 kB / 298.1 MB, free: 35.51 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07081/0.07084, allocations: 44.5 MB / 342.6 MB, free: 7 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.287/0.3579, allocations: 77.22 MB / 419.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000209/0.3582, allocations: 69.03 kB / 419.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04393/0.4021, allocations: 27.77 MB / 447.6 MB, free: 1.406 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.4022, allocations: 0 / 447.6 MB, free: 1.406 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.189e-05/0.4022, allocations: 8 kB / 447.6 MB, free: 1.398 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0009769/0.4032, allocations: 1.01 MB / 448.6 MB, free: 356 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.4032, allocations: 11.97 kB / 448.7 MB, free: 344 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001865/0.4034, allocations: 94.86 kB / 448.7 MB, free: 248 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006187/0.404, allocations: 414.5 kB / 449.2 MB, free: 15.84 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.869e-05/0.4041, allocations: 23.8 kB / 449.2 MB, free: 15.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.112e-05/0.4042, allocations: 20 kB / 449.2 MB, free: 15.8 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005129/0.4047, allocations: 341.3 kB / 449.5 MB, free: 15.57 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007/0.4054, allocations: 499.5 kB / 450 MB, free: 15.19 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.4054, allocations: 0 / 450 MB, free: 15.19 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.964e-05/0.4055, allocations: 19.73 kB / 450 MB, free: 15.17 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.4055, allocations: 7.953 kB / 450 MB, free: 15.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001297/0.4068, allocations: 0.8195 MB / 450.9 MB, free: 14.48 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005296/0.4074, allocations: 0.4902 MB / 451.4 MB, free: 14.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004906/0.4079, allocations: 495.2 kB / 451.8 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.339e-05/0.4079, allocations: 128 / 451.8 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007238/0.4086, allocations: 0.6465 MB / 452.5 MB, free: 13.32 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 1.883e-06/0.4086, allocations: 0 / 452.5 MB, free: 13.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.001436/0.4101, allocations: 0.9153 MB / 453.4 MB, free: 12.61 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000186/0.4103, allocations: 277.4 kB / 453.7 MB, free: 12.29 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001309/0.4116, allocations: 0.9871 MB / 454.7 MB, free: 11.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.106e-05/0.4117, allocations: 41.08 kB / 454.7 MB, free: 11.44 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.718e-05/0.4118, allocations: 144.7 kB / 454.8 MB, free: 11.33 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.4119, allocations: 77.78 kB / 454.9 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.894e-05/0.412, allocations: 11.62 kB / 454.9 MB, free: 11.26 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.4121, allocations: 349.2 kB / 455.3 MB, free: 10.93 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003957/0.4125, allocations: 341.2 kB / 455.6 MB, free: 10.7 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000396/0.4129, allocations: 338.4 kB / 455.9 MB, free: 10.48 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003025/0.4132, allocations: 242.7 kB / 456.2 MB, free: 10.31 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.4132, allocations: 0 / 456.2 MB, free: 10.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001149/0.4144, allocations: 0.8502 MB / 457 MB, free: 9.664 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001738/0.4146, allocations: 245.2 kB / 457.3 MB, free: 9.398 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.4146, allocations: 4 kB / 457.3 MB, free: 9.395 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.4146, allocations: 0 / 457.3 MB, free: 9.395 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.833e-05/0.4146, allocations: 3.938 kB / 457.3 MB, free: 9.391 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.4147, allocations: 4 kB / 457.3 MB, free: 9.387 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000305/0.415, allocations: 47.19 kB / 457.3 MB, free: 9.344 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001898/0.4152, allocations: 151.5 kB / 457.5 MB, free: 9.199 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: 40 ($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,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,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,$PRE.dFFREG.delay.inertialDelaySensitive[2].y,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 () * 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.0003795/0.4156, allocations: 409.7 kB / 457.9 MB, free: 8.77 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/0.4157, allocations: 90.97 kB / 458 MB, free: 8.68 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002514/0.416, allocations: 153.2 kB / 458.1 MB, free: 8.547 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.416, allocations: 0 / 458.1 MB, free: 8.547 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.416, allocations: 0 / 458.1 MB, free: 8.547 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.416, allocations: 8 kB / 458.1 MB, free: 8.539 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002106/0.4181, allocations: 1.62 MB / 459.7 MB, free: 7.246 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.4181, allocations: 0 / 459.7 MB, free: 7.246 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.424e-05/0.4181, allocations: 4 kB / 459.7 MB, free: 7.242 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.4181, allocations: 0 / 459.7 MB, free: 7.242 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.349e-05/0.4182, allocations: 35.17 kB / 459.8 MB, free: 7.215 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.4182, allocations: 11.92 kB / 459.8 MB, free: 7.203 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.4182, allocations: 4 kB / 459.8 MB, free: 7.199 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001405/0.4196, allocations: 1.068 MB / 460.9 MB, free: 6.348 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008185/0.4205, allocations: 0.5636 MB / 461.4 MB, free: 5.766 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001721/0.4207, allocations: 55.97 kB / 461.5 MB, free: 5.711 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003025/0.421, allocations: 35.88 kB / 461.5 MB, free: 5.676 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003957/0.4214, allocations: 239.7 kB / 461.7 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000175/0.4216, allocations: 159.9 kB / 461.9 MB, free: 5.285 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001147/0.4227, allocations: 0.8187 MB / 462.7 MB, free: 4.469 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4227, allocations: 0 / 462.7 MB, free: 4.469 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004747/0.4232, allocations: 116 kB / 462.8 MB, free: 4.355 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: 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) * 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.0002584/0.4235, allocations: 189.6 kB / 463 MB, free: 4.16 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001455/0.4249, allocations: 1.472 MB / 464.5 MB, free: 2.605 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.425, allocations: 8 kB / 464.5 MB, free: 2.598 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008826/0.4258, allocations: 1.097 MB / 465.6 MB, free: 1.414 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001186/0.427, allocations: 282 kB / 465.9 MB, free: 1.141 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002653/0.4297, allocations: 1.702 MB / 467.6 MB, free: 15.41 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008342/0.4306, allocations: 1.039 MB / 468.6 MB, free: 14.34 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002198/0.4308, allocations: 45.8 kB / 468.7 MB, free: 14.3 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.848e-05/0.4308, allocations: 19.44 kB / 468.7 MB, free: 14.28 MB / 330.7 MB Notification: Performance of SimCode: time 6.41e-07/0.4308, allocations: 0 / 468.7 MB, free: 14.28 MB / 330.7 MB Notification: Performance of Templates: time 0.01758/0.4484, allocations: 13.07 MB / 481.7 MB, free: 0.9453 MB / 330.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)