Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG.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.DFFREG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG") translateModel(Modelica.Electrical.Digital.Examples.DFFREG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG") [: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.001084/0.001084, allocations: 189.8 kB / 8.135 MB, free: 2.215 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.119/1.119, allocations: 194.2 MB / 202.8 MB, free: 8.652 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.001766/0.001766, allocations: 118.9 kB / 247.7 MB, free: 6.395 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 8.717e-06/8.747e-06, allocations: 4 kB / 297.6 MB, free: 7.988 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06884/0.06886, allocations: 44.49 MB / 342.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1918/0.2607, allocations: 77.14 MB / 419.2 MB, free: 17.89 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001722/0.2609, allocations: 71.81 kB / 419.3 MB, free: 17.86 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.04659/0.3075, allocations: 27.21 MB / 446.5 MB, free: 11.99 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.055e-05/0.3076, allocations: 16 kB / 446.5 MB, free: 11.97 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.0009571/0.3086, allocations: 1.017 MB / 447.5 MB, free: 10.92 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.3086, allocations: 8.031 kB / 447.5 MB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001436/0.3087, allocations: 86.97 kB / 447.6 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006915/0.3094, allocations: 425.9 kB / 448 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.793e-05/0.3095, allocations: 15.06 kB / 448 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.684e-05/0.3096, allocations: 20 kB / 448 MB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005204/0.3101, allocations: 362.7 kB / 448.4 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007703/0.3109, allocations: 0.4954 MB / 448.9 MB, free: 9.719 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.3109, allocations: 3.938 kB / 448.9 MB, free: 9.715 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.313e-05/0.311, allocations: 15.11 kB / 448.9 MB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.311, allocations: 4 kB / 448.9 MB, free: 9.699 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001381/0.3124, allocations: 0.8397 MB / 449.8 MB, free: 8.988 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005698/0.313, allocations: 0.5078 MB / 450.3 MB, free: 8.668 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005062/0.3135, allocations: 491.4 kB / 450.7 MB, free: 8.383 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.383e-05/0.3135, allocations: 7.875 kB / 450.8 MB, free: 8.379 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006692/0.3142, allocations: 0.6145 MB / 451.4 MB, free: 7.844 MB / 330.7 MB Notification: Performance of pre-optimization done (n=34): time 1.964e-06/0.3142, allocations: 0 / 451.4 MB, free: 7.844 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.001159/0.3154, allocations: 0.7716 MB / 452.1 MB, free: 7.234 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001626/0.3155, allocations: 282.3 kB / 452.4 MB, free: 6.914 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00131/0.3169, allocations: 1.002 MB / 453.4 MB, free: 6.09 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.604e-05/0.3169, allocations: 41.08 kB / 453.5 MB, free: 6.047 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.352e-05/0.317, allocations: 116.6 kB / 453.6 MB, free: 5.938 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.3171, allocations: 82.06 kB / 453.6 MB, free: 5.867 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.113e-05/0.3172, allocations: 11.5 kB / 453.7 MB, free: 5.859 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.3173, allocations: 344.4 kB / 454 MB, free: 5.527 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005027/0.3179, allocations: 352.9 kB / 454.3 MB, free: 5.289 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004894/0.3184, allocations: 341.4 kB / 454.7 MB, free: 5.062 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004464/0.3188, allocations: 251.7 kB / 454.9 MB, free: 4.891 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3188, allocations: 0 / 454.9 MB, free: 4.891 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001034/0.3199, allocations: 0.7448 MB / 455.7 MB, free: 4.312 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.3199, allocations: 4 kB / 455.7 MB, free: 4.309 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.3199, allocations: 0 / 455.7 MB, free: 4.309 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.3199, allocations: 4 kB / 455.7 MB, free: 4.305 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.692e-05/0.32, allocations: 3.375 kB / 455.7 MB, free: 4.305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.848e-06/0.32, allocations: 0 / 455.7 MB, free: 4.305 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003243/0.3203, allocations: 43.88 kB / 455.7 MB, free: 4.262 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001601/0.3205, allocations: 149.1 kB / 455.9 MB, free: 4.121 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.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,$PRE.dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.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.0003596/0.3208, allocations: 402 kB / 456.3 MB, free: 3.695 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/0.321, allocations: 83.06 kB / 456.3 MB, free: 3.613 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003044/0.3213, allocations: 154.8 kB / 456.5 MB, free: 3.477 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.3213, allocations: 7.906 kB / 456.5 MB, free: 3.469 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3213, allocations: 0 / 456.5 MB, free: 3.469 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.3213, allocations: 3.984 kB / 456.5 MB, free: 3.465 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001977/0.3233, allocations: 1.482 MB / 458 MB, free: 2.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.3233, allocations: 0 / 458 MB, free: 2.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.352e-05/0.3233, allocations: 8 kB / 458 MB, free: 2.262 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3233, allocations: 0 / 458 MB, free: 2.262 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-05/0.3234, allocations: 39.92 kB / 458 MB, free: 2.227 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.3234, allocations: 0 / 458 MB, free: 2.227 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.3235, allocations: 0 / 458 MB, free: 2.227 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001164/0.3246, allocations: 0.9417 MB / 459 MB, free: 1.469 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000887/0.3255, allocations: 0.5838 MB / 459.6 MB, free: 1.027 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000195/0.3257, allocations: 56.41 kB / 459.6 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003537/0.3261, allocations: 39.59 kB / 459.6 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004138/0.3265, allocations: 245 kB / 459.9 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001693/0.3267, allocations: 157.1 kB / 460 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.001052/0.3277, allocations: 0.8302 MB / 460.9 MB, free: 15.86 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004548/0.3282, allocations: 112 kB / 461 MB, free: 15.75 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,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.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.0002437/0.3285, allocations: 180.5 kB / 461.2 MB, free: 15.56 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001279/0.3298, allocations: 1.099 MB / 462.3 MB, free: 14.42 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3298, allocations: 0 / 462.3 MB, free: 14.42 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009282/0.3307, allocations: 0.9215 MB / 463.2 MB, free: 13.46 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.3319, allocations: 258.5 kB / 463.4 MB, free: 13.21 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002671/0.3346, allocations: 1.738 MB / 465.2 MB, free: 11.45 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007481/0.3353, allocations: 1.058 MB / 466.2 MB, free: 10.36 MB / 346.7 MB Notification: Performance of SimCode: time 4.61e-07/0.3353, allocations: 0 / 466.2 MB, free: 10.36 MB / 346.7 MB Notification: Performance of Templates: time 0.01741/0.3527, allocations: 13.01 MB / 479.2 MB, free: 13.11 MB / 362.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1)