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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002074/0.002074, allocations: 190 kB / 8.135 MB, free: 2.219 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.116/1.116, allocations: 194.2 MB / 202.8 MB, free: 8.777 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.001763/0.001763, allocations: 117.4 kB / 247.7 MB, free: 6.223 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 8.907e-06/8.947e-06, allocations: 4 kB / 297.6 MB, free: 8.016 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09572/0.09574, allocations: 44.48 MB / 342 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2057/0.3015, allocations: 77.18 MB / 419.2 MB, free: 17.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001658/0.3017, allocations: 69.94 kB / 419.3 MB, free: 17.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.06439/0.3661, allocations: 36.8 MB / 456.1 MB, free: 4.055 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.095e-05/0.3662, allocations: 12 kB / 456.1 MB, free: 4.043 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.0009532/0.3672, allocations: 1.012 MB / 457.1 MB, free: 2.992 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.3672, allocations: 12.03 kB / 457.1 MB, free: 2.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001402/0.3674, allocations: 86.97 kB / 457.2 MB, free: 2.895 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006202/0.368, allocations: 436.4 kB / 457.6 MB, free: 2.457 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.356e-05/0.368, allocations: 16 kB / 457.7 MB, free: 2.441 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.249e-05/0.3681, allocations: 23.31 kB / 457.7 MB, free: 2.422 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005034/0.3686, allocations: 355.8 kB / 458 MB, free: 2.172 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007279/0.3694, allocations: 0.4972 MB / 458.5 MB, free: 1.781 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.3694, allocations: 0 / 458.5 MB, free: 1.781 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.744e-05/0.3694, allocations: 8 kB / 458.5 MB, free: 1.773 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.3695, allocations: 4 kB / 458.5 MB, free: 1.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001386/0.3708, allocations: 0.8532 MB / 459.4 MB, free: 1.047 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005757/0.3714, allocations: 0.5059 MB / 459.9 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005649/0.372, allocations: 493.3 kB / 460.4 MB, free: 456 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.139e-05/0.372, allocations: 0 / 460.4 MB, free: 456 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007119/0.3728, allocations: 0.6196 MB / 461 MB, free: 15.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 1.854e-06/0.3728, allocations: 0 / 461 MB, free: 15.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.001174/0.3739, allocations: 0.7759 MB / 461.8 MB, free: 15.17 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001814/0.3741, allocations: 279.3 kB / 462 MB, free: 14.84 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001268/0.3754, allocations: 0.9957 MB / 463 MB, free: 13.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.186e-05/0.3755, allocations: 45.69 kB / 463.1 MB, free: 13.79 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.09e-05/0.3756, allocations: 110 kB / 463.2 MB, free: 13.68 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.3757, allocations: 79.09 kB / 463.3 MB, free: 13.6 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.713e-05/0.3758, allocations: 8 kB / 463.3 MB, free: 13.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.3759, allocations: 350.7 kB / 463.6 MB, free: 13.24 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004497/0.3764, allocations: 352.1 kB / 464 MB, free: 12.89 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004488/0.3768, allocations: 348.5 kB / 464.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003297/0.3772, allocations: 245.1 kB / 464.5 MB, free: 12.32 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3772, allocations: 0 / 464.5 MB, free: 12.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00105/0.3782, allocations: 0.7357 MB / 465.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.3783, allocations: 4 kB / 465.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.3783, allocations: 0 / 465.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.3783, allocations: 8 kB / 465.3 MB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.532e-05/0.3783, allocations: 7.984 kB / 465.3 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.3783, allocations: 0 / 465.3 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003004/0.3786, allocations: 39.81 kB / 465.3 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001656/0.3788, allocations: 153.9 kB / 465.5 MB, free: 11.37 MB / 346.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.0003434/0.3792, allocations: 401.8 kB / 465.9 MB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001393/0.3793, allocations: 86.97 kB / 466 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002615/0.3796, allocations: 151.7 kB / 466.1 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.3796, allocations: 4 kB / 466.1 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/0.3796, allocations: 0 / 466.1 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.3796, allocations: 0 / 466.1 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001914/0.3815, allocations: 1.486 MB / 467.6 MB, free: 9.148 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.3816, allocations: 4 kB / 467.6 MB, free: 9.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.213e-05/0.3816, allocations: 4 kB / 467.6 MB, free: 9.141 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.3816, allocations: 0 / 467.6 MB, free: 9.141 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.841e-05/0.3817, allocations: 35.97 kB / 467.6 MB, free: 9.105 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.3817, allocations: 11.92 kB / 467.7 MB, free: 9.094 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.3817, allocations: 3.984 kB / 467.7 MB, free: 9.09 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001196/0.3829, allocations: 0.9354 MB / 468.6 MB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008857/0.3838, allocations: 0.5815 MB / 469.2 MB, free: 7.535 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001868/0.384, allocations: 63.97 kB / 469.2 MB, free: 7.473 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003181/0.3843, allocations: 31.97 kB / 469.3 MB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003978/0.3847, allocations: 243.7 kB / 469.5 MB, free: 7.203 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000164/0.3849, allocations: 151.9 kB / 469.7 MB, free: 7.055 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.001044/0.386, allocations: 0.8304 MB / 470.5 MB, free: 6.227 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000444/0.3864, allocations: 108 kB / 470.6 MB, free: 6.121 MB / 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,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.0002525/0.3867, allocations: 188.4 kB / 470.8 MB, free: 5.93 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001268/0.3879, allocations: 1.099 MB / 471.9 MB, free: 4.789 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.388, allocations: 0 / 471.9 MB, free: 4.789 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009168/0.3889, allocations: 0.9294 MB / 472.8 MB, free: 3.816 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001121/0.39, allocations: 270.5 kB / 473.1 MB, free: 3.562 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002575/0.3926, allocations: 1.726 MB / 474.8 MB, free: 1.801 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007307/0.3933, allocations: 1.054 MB / 475.8 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of SimCode: time 4.01e-07/0.3934, allocations: 0 / 475.8 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of Templates: time 0.01673/0.4101, allocations: 13.02 MB / 488.9 MB, free: 3.445 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)