Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRH.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.DFFREGSRH,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRH") translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRH,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRH") [: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.003423/0.003423, allocations: 171.7 kB / 7.445 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.275/1.275, allocations: 170.6 MB / 178.4 MB, free: 15.39 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.001782/0.001783, allocations: 119.8 kB / 217.7 MB, free: 8.156 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 9.237e-06/9.257e-06, allocations: 0 / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09526/0.09529, allocations: 38.76 MB / 300.5 MB, free: 3.906 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2878/0.3832, allocations: 72.07 MB / 372.6 MB, free: 12.61 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002966/0.3836, allocations: 74.08 kB / 372.6 MB, free: 12.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.06061/0.4442, allocations: 29.82 MB / 402.5 MB, free: 4.16 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.142e-05/0.4444, allocations: 16 kB / 402.5 MB, free: 4.145 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.003295/0.4477, allocations: 1.279 MB / 403.8 MB, free: 2.844 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.708e-05/0.4478, allocations: 11.97 kB / 403.8 MB, free: 2.832 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004758/0.4482, allocations: 130.5 kB / 403.9 MB, free: 2.703 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001233/0.4495, allocations: 0.5263 MB / 404.4 MB, free: 2.164 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.259e-05/0.4496, allocations: 19.88 kB / 404.4 MB, free: 2.148 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001532/0.4497, allocations: 24 kB / 404.5 MB, free: 2.125 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007394/0.4505, allocations: 453.8 kB / 404.9 MB, free: 1.816 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.4516, allocations: 0.5949 MB / 405.5 MB, free: 1.355 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.4516, allocations: 0 / 405.5 MB, free: 1.355 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.114e-05/0.4517, allocations: 19.62 kB / 405.5 MB, free: 1.34 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.4517, allocations: 3.938 kB / 405.5 MB, free: 1.336 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002294/0.454, allocations: 1.018 MB / 406.5 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008612/0.4549, allocations: 0.6815 MB / 407.2 MB, free: 100 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009279/0.4558, allocations: 0.6669 MB / 407.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.709e-05/0.4558, allocations: 0 / 407.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009184/0.4568, allocations: 0.7279 MB / 408.6 MB, free: 14.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 2.996e-06/0.4568, allocations: 0 / 408.6 MB, free: 14.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.001559/0.4583, allocations: 0.9449 MB / 409.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002615/0.4586, allocations: 333 kB / 409.9 MB, free: 13.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002813/0.4614, allocations: 1.386 MB / 411.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.113e-05/0.4615, allocations: 41.7 kB / 411.3 MB, free: 11.97 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.4617, allocations: 150.4 kB / 411.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.4618, allocations: 75.17 kB / 411.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.929e-05/0.4619, allocations: 11.98 kB / 411.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.4621, allocations: 370.8 kB / 411.9 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006318/0.4627, allocations: 440 kB / 412.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006189/0.4633, allocations: 444 kB / 412.8 MB, free: 10.49 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004194/0.4638, allocations: 300.5 kB / 413.1 MB, free: 10.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.4638, allocations: 0 / 413.1 MB, free: 10.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001388/0.4652, allocations: 0.8955 MB / 414 MB, free: 9.297 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.4652, allocations: 7.906 kB / 414 MB, free: 9.289 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.4652, allocations: 0 / 414 MB, free: 9.289 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.628e-05/0.4652, allocations: 4 kB / 414 MB, free: 9.285 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.686e-05/0.4653, allocations: 3.938 kB / 414 MB, free: 9.281 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.4653, allocations: 4 kB / 414 MB, free: 9.277 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004169/0.4657, allocations: 39.88 kB / 414 MB, free: 9.238 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002124/0.4659, allocations: 151.9 kB / 414.2 MB, free: 9.09 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.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.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.000577/0.4665, allocations: 458.4 kB / 414.6 MB, free: 8.586 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002413/0.4668, allocations: 130.5 kB / 414.7 MB, free: 8.457 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006155/0.4674, allocations: 203.7 kB / 414.9 MB, free: 8.254 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.4674, allocations: 0 / 414.9 MB, free: 8.254 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.4674, allocations: 4 kB / 414.9 MB, free: 8.25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.4675, allocations: 4 kB / 414.9 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003097/0.4706, allocations: 1.779 MB / 416.7 MB, free: 6.414 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.4706, allocations: 0 / 416.7 MB, free: 6.414 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.618e-05/0.4706, allocations: 4 kB / 416.7 MB, free: 6.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.99e-06/0.4706, allocations: 0 / 416.7 MB, free: 6.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.232e-05/0.4707, allocations: 47.95 kB / 416.8 MB, free: 6.363 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.4707, allocations: 4 kB / 416.8 MB, free: 6.359 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.4707, allocations: 0 / 416.8 MB, free: 6.359 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001624/0.4724, allocations: 1.12 MB / 417.9 MB, free: 5.219 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001236/0.4736, allocations: 0.6708 MB / 418.6 MB, free: 4.527 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002575/0.4739, allocations: 71.81 kB / 418.6 MB, free: 4.457 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004163/0.4743, allocations: 43.91 kB / 418.7 MB, free: 4.414 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006234/0.4749, allocations: 359.7 kB / 419 MB, free: 4.062 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002185/0.4752, allocations: 167.9 kB / 419.2 MB, free: 3.898 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.001928/0.4771, allocations: 1.142 MB / 420.3 MB, free: 2.754 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007015/0.4778, allocations: 132 kB / 420.5 MB, free: 2.625 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,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.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.0003338/0.4782, allocations: 181.7 kB / 420.6 MB, free: 2.434 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001968/0.4801, allocations: 1.435 MB / 422.1 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.4801, allocations: 0 / 422.1 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001236/0.4814, allocations: 1.169 MB / 423.3 MB, free: 15.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/0.4826, allocations: 306.8 kB / 423.6 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004316/0.487, allocations: 2.313 MB / 425.9 MB, free: 13.08 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001315/0.4883, allocations: 1.192 MB / 427.1 MB, free: 11.86 MB / 314.7 MB Notification: Performance of SimCode: time 5.81e-07/0.4883, allocations: 0 / 427.1 MB, free: 11.86 MB / 314.7 MB Notification: Performance of Templates: time 0.02511/0.5134, allocations: 14.87 MB / 441.9 MB, free: 12.57 MB / 330.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRH.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRH.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRH -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe 2>&1)