Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.DFFREGL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGL") translateModel(Modelica.Electrical.Digital.Examples.DFFREGL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.1+maint.om/package.mo): time 0.002273/0.002273, allocations: 178 kB / 7.447 MB, free: 2 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.195/1.195, allocations: 170.6 MB / 178.4 MB, free: 15.44 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001577/0.001577, allocations: 103.9 kB / 217.7 MB, free: 8.227 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.123e-06/7.143e-06, allocations: 0 / 261.7 MB, free: 26.65 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08259/0.08261, allocations: 38.76 MB / 300.5 MB, free: 3.898 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2639/0.3466, allocations: 71.88 MB / 372.4 MB, free: 12.58 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/0.3469, allocations: 68.64 kB / 372.4 MB, free: 12.55 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.07152/0.4185, allocations: 36.64 MB / 409.1 MB, free: 14.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.455e-05/0.4185, allocations: 15.94 kB / 409.1 MB, free: 14.45 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.00122/0.4198, allocations: 1.001 MB / 410.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.4198, allocations: 16.02 kB / 410.1 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/0.42, allocations: 86.97 kB / 410.2 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007409/0.4207, allocations: 431.5 kB / 410.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.22e-05/0.4208, allocations: 16 kB / 410.6 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.309e-05/0.4209, allocations: 24 kB / 410.7 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005343/0.4214, allocations: 352.1 kB / 411 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007257/0.4222, allocations: 0.4916 MB / 411.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.4222, allocations: 0 / 411.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.751e-05/0.4222, allocations: 8 kB / 411.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.4223, allocations: 8 kB / 411.5 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001506/0.4238, allocations: 0.8406 MB / 412.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006318/0.4244, allocations: 0.4984 MB / 412.9 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006236/0.4251, allocations: 484.7 kB / 413.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.4251, allocations: 4 kB / 413.3 MB, free: 10.03 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007427/0.4258, allocations: 0.6119 MB / 413.9 MB, free: 9.379 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 3.166e-06/0.4258, allocations: 0 / 413.9 MB, free: 9.379 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.001256/0.4271, allocations: 0.7495 MB / 414.7 MB, free: 8.625 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001862/0.4273, allocations: 283.3 kB / 415 MB, free: 8.293 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001398/0.4287, allocations: 0.9956 MB / 416 MB, free: 7.293 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.641e-05/0.4288, allocations: 45.64 kB / 416 MB, free: 7.242 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.541e-05/0.4289, allocations: 114 kB / 416.1 MB, free: 7.125 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001102/0.429, allocations: 71.17 kB / 416.2 MB, free: 7.055 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.787e-05/0.4291, allocations: 16 kB / 416.2 MB, free: 7.039 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.4292, allocations: 346.8 kB / 416.5 MB, free: 6.691 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004633/0.4297, allocations: 340.2 kB / 416.9 MB, free: 6.359 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004799/0.4302, allocations: 340.5 kB / 417.2 MB, free: 6.027 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003391/0.4305, allocations: 249.3 kB / 417.4 MB, free: 5.785 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.4305, allocations: 0 / 417.4 MB, free: 5.785 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001042/0.4316, allocations: 0.712 MB / 418.2 MB, free: 5.066 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.4316, allocations: 11.91 kB / 418.2 MB, free: 5.055 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.4316, allocations: 0 / 418.2 MB, free: 5.055 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.4316, allocations: 0 / 418.2 MB, free: 5.055 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.723e-05/0.4317, allocations: 11.98 kB / 418.2 MB, free: 5.043 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.4317, allocations: 0 / 418.2 MB, free: 5.043 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003561/0.4321, allocations: 35.88 kB / 418.2 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001934/0.4323, allocations: 144.2 kB / 418.4 MB, free: 4.867 MB / 298.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.0004117/0.4327, allocations: 406 kB / 418.8 MB, free: 4.418 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.4328, allocations: 90.97 kB / 418.8 MB, free: 4.328 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003219/0.4331, allocations: 151.7 kB / 419 MB, free: 4.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.4332, allocations: 0 / 419 MB, free: 4.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.872e-06/0.4332, allocations: 0 / 419 MB, free: 4.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.4332, allocations: 0 / 419 MB, free: 4.18 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002/0.4352, allocations: 1.47 MB / 420.5 MB, free: 2.664 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.4352, allocations: 4 kB / 420.5 MB, free: 2.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.318e-06/0.4352, allocations: 0 / 420.5 MB, free: 2.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/0.4352, allocations: 4 kB / 420.5 MB, free: 2.656 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.776e-05/0.4353, allocations: 31.98 kB / 420.5 MB, free: 2.625 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.4353, allocations: 4 kB / 420.5 MB, free: 2.621 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/0.4353, allocations: 7.969 kB / 420.5 MB, free: 2.613 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00128/0.4366, allocations: 0.9198 MB / 421.4 MB, free: 1.676 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009822/0.4376, allocations: 0.5776 MB / 422 MB, free: 1.078 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001971/0.4378, allocations: 63.97 kB / 422.1 MB, free: 1.016 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003484/0.4382, allocations: 35.88 kB / 422.1 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004385/0.4386, allocations: 239.8 kB / 422.3 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001924/0.4388, allocations: 155.9 kB / 422.5 MB, free: 0.5898 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.001157/0.44, allocations: 0.8266 MB / 423.3 MB, free: 15.76 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005216/0.4405, allocations: 112 kB / 423.4 MB, free: 15.65 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,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.0003215/0.4409, allocations: 180.5 kB / 423.6 MB, free: 15.47 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001397/0.4423, allocations: 1.078 MB / 424.7 MB, free: 14.35 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.4423, allocations: 0 / 424.7 MB, free: 14.35 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000992/0.4433, allocations: 0.9215 MB / 425.6 MB, free: 13.38 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/0.4445, allocations: 283.8 kB / 425.9 MB, free: 13.11 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003343/0.4478, allocations: 1.703 MB / 427.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00105/0.4489, allocations: 1.057 MB / 428.6 MB, free: 10.29 MB / 314.7 MB Notification: Performance of SimCode: time 1.713e-06/0.4489, allocations: 4 kB / 428.6 MB, free: 10.28 MB / 314.7 MB Notification: Performance of Templates: time 0.01978/0.4687, allocations: 12.98 MB / 441.6 MB, free: 13.03 MB / 330.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGL.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGL.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGL.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGL.pipe 2>&1)