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.002039/0.002039, allocations: 182.7 kB / 13.64 MB, free: 1.676 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.471/1.471, allocations: 194.3 MB / 208.4 MB, free: 6.703 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.001628/0.001628, allocations: 114.3 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.559e-05/2.561e-05, allocations: 4 kB / 304.9 MB, free: 29.78 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07846/0.0785, allocations: 44.5 MB / 349.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2835/0.362, allocations: 77.92 MB / 427.4 MB, free: 10.46 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002017/0.3623, allocations: 74.45 kB / 427.4 MB, free: 10.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06246/0.4248, allocations: 37.66 MB / 465.1 MB, free: 1.934 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.17e-06/0.4248, allocations: 3.984 kB / 465.1 MB, free: 1.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.072e-05/0.4249, allocations: 8 kB / 465.1 MB, free: 1.922 MB / 314.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.0009828/0.4259, allocations: 1.015 MB / 466.1 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.4259, allocations: 8.031 kB / 466.1 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.4261, allocations: 86.97 kB / 466.2 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006294/0.4267, allocations: 420.7 kB / 466.6 MB, free: 364 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.07e-05/0.4267, allocations: 26.31 kB / 466.6 MB, free: 344 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.716e-05/0.4268, allocations: 23.94 kB / 466.7 MB, free: 324 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007637/0.4276, allocations: 0.5134 MB / 467.2 MB, free: 15.92 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.4276, allocations: 3.984 kB / 467.2 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.306e-05/0.4277, allocations: 14.69 kB / 467.2 MB, free: 15.9 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.4277, allocations: 7.984 kB / 467.2 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004831/0.4282, allocations: 359.2 kB / 467.6 MB, free: 15.65 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001296/0.4295, allocations: 0.8685 MB / 468.4 MB, free: 14.9 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005779/0.4301, allocations: 0.4944 MB / 468.9 MB, free: 14.6 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005526/0.4306, allocations: 0.4939 MB / 469.4 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.165e-06/0.4306, allocations: 0 / 469.4 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007432/0.4314, allocations: 0.6532 MB / 470.1 MB, free: 13.73 MB / 330.7 MB Notification: Performance of pre-optimization done (n=34): time 1.684e-06/0.4314, allocations: 4 kB / 470.1 MB, free: 13.72 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.001581/0.433, allocations: 1.171 MB / 471.2 MB, free: 12.73 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001796/0.4332, allocations: 277.6 kB / 471.5 MB, free: 12.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001369/0.4346, allocations: 1.034 MB / 472.5 MB, free: 11.38 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.741e-05/0.4347, allocations: 37.7 kB / 472.6 MB, free: 11.34 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.4348, allocations: 154 kB / 472.7 MB, free: 11.19 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.4349, allocations: 75.16 kB / 472.8 MB, free: 11.11 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.35e-05/0.4349, allocations: 19.88 kB / 472.8 MB, free: 11.09 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.4351, allocations: 346.8 kB / 473.2 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004838/0.4356, allocations: 348.2 kB / 473.5 MB, free: 10.41 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004689/0.4361, allocations: 356.5 kB / 473.9 MB, free: 10.06 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000522/0.4366, allocations: 497.3 kB / 474.3 MB, free: 9.531 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.4366, allocations: 3.953 kB / 474.3 MB, free: 9.527 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001389/0.438, allocations: 1.121 MB / 475.5 MB, free: 8.355 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001783/0.4382, allocations: 247.1 kB / 475.7 MB, free: 8.074 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.463e-06/0.4382, allocations: 0 / 475.7 MB, free: 8.074 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.4382, allocations: 0 / 475.7 MB, free: 8.074 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.852e-05/0.4383, allocations: 4 kB / 475.7 MB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.4383, allocations: 0 / 475.7 MB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003393/0.4386, allocations: 43.88 kB / 475.8 MB, free: 8.027 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001731/0.4388, allocations: 156.1 kB / 475.9 MB, free: 7.875 MB / 330.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.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.0003662/0.4392, allocations: 411.3 kB / 476.3 MB, free: 7.422 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/0.4393, allocations: 87.06 kB / 476.4 MB, free: 7.336 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002765/0.4396, allocations: 151.8 kB / 476.5 MB, free: 7.184 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.4396, allocations: 4 kB / 476.5 MB, free: 7.18 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.4396, allocations: 4 kB / 476.5 MB, free: 7.176 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.4396, allocations: 0 / 476.5 MB, free: 7.176 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002378/0.442, allocations: 1.954 MB / 478.5 MB, free: 5.121 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.442, allocations: 0 / 478.5 MB, free: 5.121 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.152e-05/0.4421, allocations: 4 kB / 478.5 MB, free: 5.117 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.4421, allocations: 0 / 478.5 MB, free: 5.117 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.608e-05/0.4421, allocations: 35.98 kB / 478.5 MB, free: 5.082 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.4422, allocations: 4 kB / 478.5 MB, free: 5.078 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.4422, allocations: 0 / 478.5 MB, free: 5.078 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001683/0.4439, allocations: 1.384 MB / 479.9 MB, free: 3.633 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008406/0.4447, allocations: 0.5659 MB / 480.5 MB, free: 3.047 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001642/0.4449, allocations: 63.95 kB / 480.6 MB, free: 2.984 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002878/0.4452, allocations: 23.98 kB / 480.6 MB, free: 2.961 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003973/0.4456, allocations: 243.7 kB / 480.8 MB, free: 2.723 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001772/0.4458, allocations: 159.9 kB / 481 MB, free: 2.566 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001137/0.4469, allocations: 0.8539 MB / 481.8 MB, free: 1.719 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4469, allocations: 0 / 481.8 MB, free: 1.719 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000438/0.4474, allocations: 128 kB / 482 MB, free: 1.594 MB / 330.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,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.0002638/0.4476, allocations: 180.4 kB / 482.1 MB, free: 1.406 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001637/0.4493, allocations: 1.511 MB / 483.6 MB, free: 15.81 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.4493, allocations: 0 / 483.6 MB, free: 15.81 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009717/0.4503, allocations: 1.117 MB / 484.8 MB, free: 14.61 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.4513, allocations: 280.9 kB / 485 MB, free: 14.33 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002319/0.4537, allocations: 1.718 MB / 486.8 MB, free: 12.59 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006985/0.4544, allocations: 1.046 MB / 487.8 MB, free: 11.51 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001278/0.4545, allocations: 33.52 kB / 487.8 MB, free: 11.47 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.45e-05/0.4546, allocations: 15.44 kB / 487.8 MB, free: 11.46 MB / 346.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4546, allocations: 0 / 487.8 MB, free: 11.46 MB / 346.7 MB Notification: Performance of Templates: time 0.01785/0.4724, allocations: 13.55 MB / 0.4896 GB, free: 13.63 MB / 362.7 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)