Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL.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.DFFREGSRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL") translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL") [: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.002521/0.002521, allocations: 177.5 kB / 7.453 MB, free: 2.508 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.211/1.211, allocations: 170.6 MB / 178.4 MB, free: 15.38 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.001723/0.001723, allocations: 111.8 kB / 217.7 MB, free: 8.145 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.867e-06/8.917e-06, allocations: 4 kB / 261.7 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1108, allocations: 38.76 MB / 300.5 MB, free: 3.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3018/0.4127, allocations: 72.12 MB / 372.6 MB, free: 12.3 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/0.413, allocations: 67.64 kB / 372.7 MB, free: 12.26 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.06195/0.4749, allocations: 31.07 MB / 403.8 MB, free: 2.652 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.419e-05/0.475, allocations: 12 kB / 403.8 MB, free: 2.641 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.00218/0.4772, allocations: 1.281 MB / 405 MB, free: 1.336 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.4773, allocations: 8.031 kB / 405.1 MB, free: 1.328 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003406/0.4776, allocations: 130.4 kB / 405.2 MB, free: 1.199 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/0.4787, allocations: 0.5289 MB / 405.7 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.04e-05/0.4787, allocations: 19.31 kB / 405.7 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.4788, allocations: 27.48 kB / 405.8 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006871/0.4795, allocations: 452.7 kB / 406.2 MB, free: 316 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009923/0.4805, allocations: 0.5959 MB / 406.8 MB, free: 15.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.4806, allocations: 0 / 406.8 MB, free: 15.85 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.02e-05/0.4806, allocations: 12 kB / 406.8 MB, free: 15.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.4807, allocations: 0 / 406.8 MB, free: 15.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001912/0.4826, allocations: 1.025 MB / 407.8 MB, free: 14.99 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008404/0.4834, allocations: 0.6751 MB / 408.5 MB, free: 14.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008705/0.4843, allocations: 0.6627 MB / 409.2 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.4843, allocations: 3.938 kB / 409.2 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008816/0.4852, allocations: 0.7279 MB / 409.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 2.595e-06/0.4852, allocations: 0 / 409.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.001481/0.4867, allocations: 0.9528 MB / 410.9 MB, free: 12.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002344/0.487, allocations: 321 kB / 411.2 MB, free: 12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002162/0.4891, allocations: 1.39 MB / 412.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.594e-05/0.4893, allocations: 45.69 kB / 412.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.4894, allocations: 146.3 kB / 412.7 MB, free: 10.4 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.4895, allocations: 83.11 kB / 412.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.795e-05/0.4896, allocations: 11.98 kB / 412.8 MB, free: 10.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.4898, allocations: 370.7 kB / 413.2 MB, free: 9.934 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006051/0.4904, allocations: 448 kB / 413.6 MB, free: 9.492 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005758/0.491, allocations: 440 kB / 414.1 MB, free: 9.062 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004062/0.4914, allocations: 300.5 kB / 414.4 MB, free: 8.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.4914, allocations: 0 / 414.4 MB, free: 8.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001363/0.4928, allocations: 0.8954 MB / 415.3 MB, free: 7.867 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.4928, allocations: 4 kB / 415.3 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.4928, allocations: 0 / 415.3 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.4928, allocations: 4 kB / 415.3 MB, free: 7.859 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.79e-05/0.4929, allocations: 3.984 kB / 415.3 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/0.4929, allocations: 3.984 kB / 415.3 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004326/0.4933, allocations: 43.97 kB / 415.3 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000196/0.4935, allocations: 151.9 kB / 415.5 MB, free: 7.66 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: 43 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.set,$PRE.dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.reset,$PRE.dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 8 * 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.0004855/0.494, allocations: 458.4 kB / 415.9 MB, free: 7.156 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001964/0.4942, allocations: 134.4 kB / 416 MB, free: 7.023 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000443/0.4947, allocations: 195.8 kB / 416.2 MB, free: 6.828 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.4947, allocations: 3.984 kB / 416.2 MB, free: 6.824 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.4947, allocations: 0 / 416.2 MB, free: 6.824 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.4947, allocations: 3.984 kB / 416.2 MB, free: 6.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003092/0.4978, allocations: 1.775 MB / 418 MB, free: 4.996 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.4979, allocations: 0 / 418 MB, free: 4.996 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.333e-05/0.4979, allocations: 4 kB / 418 MB, free: 4.992 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.596e-06/0.4979, allocations: 4 kB / 418 MB, free: 4.988 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-05/0.498, allocations: 43.91 kB / 418.1 MB, free: 4.945 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.672e-06/0.498, allocations: 3.984 kB / 418.1 MB, free: 4.941 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.498, allocations: 0 / 418.1 MB, free: 4.941 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001596/0.4996, allocations: 1.132 MB / 419.2 MB, free: 3.785 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001257/0.5009, allocations: 0.6669 MB / 419.9 MB, free: 3.098 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002656/0.5012, allocations: 59.97 kB / 419.9 MB, free: 3.039 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004799/0.5017, allocations: 39.97 kB / 420 MB, free: 3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006347/0.5023, allocations: 363.7 kB / 420.3 MB, free: 2.645 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000213/0.5025, allocations: 159.9 kB / 420.5 MB, free: 2.488 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.001852/0.5044, allocations: 1.15 MB / 421.6 MB, free: 1.336 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006169/0.505, allocations: 128 kB / 421.8 MB, free: 1.211 MB / 298.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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.next_assign_val[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.set,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRL.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 8 * 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.0003257/0.5054, allocations: 193.6 kB / 421.9 MB, free: 1.012 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001859/0.5072, allocations: 1.424 MB / 423.4 MB, free: 15.54 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.5072, allocations: 0 / 423.4 MB, free: 15.54 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001492/0.5087, allocations: 1.177 MB / 424.5 MB, free: 14.31 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001716/0.5105, allocations: 306.7 kB / 424.8 MB, free: 14.01 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005038/0.5155, allocations: 2.317 MB / 427.2 MB, free: 11.66 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001249/0.5168, allocations: 1.196 MB / 428.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of SimCode: time 1.182e-06/0.5168, allocations: 0 / 428.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of Templates: time 0.02487/0.5417, allocations: 14.85 MB / 443.2 MB, free: 11.16 MB / 330.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe 2>&1)