Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREG.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.DFFREG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREG") translateModel(Modelica.Electrical.Digital.Examples.DFFREG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.1+maint.om/package.mo): time 0.002338/0.002339, allocations: 178.1 kB / 7.448 MB, free: 2.52 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.089/1.089, 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.001683/0.001683, allocations: 111.8 kB / 217.7 MB, free: 8.145 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.356e-06/8.396e-06, allocations: 0 / 261.7 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08567/0.08569, allocations: 38.77 MB / 300.5 MB, free: 3.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2747/0.3605, allocations: 71.83 MB / 372.3 MB, free: 12.62 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002422/0.3608, allocations: 65.34 kB / 372.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.06295/0.4238, allocations: 27.14 MB / 399.5 MB, free: 6.613 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.72e-05/0.4238, allocations: 12 kB / 399.5 MB, free: 6.602 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001415/0.4253, allocations: 1.012 MB / 400.6 MB, free: 5.551 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.4253, allocations: 12.02 kB / 400.6 MB, free: 5.539 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002168/0.4255, allocations: 86.97 kB / 400.7 MB, free: 5.453 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008271/0.4264, allocations: 424.5 kB / 401.1 MB, free: 5.027 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.455e-05/0.4264, allocations: 23.02 kB / 401.1 MB, free: 5.008 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.768e-05/0.4265, allocations: 23.94 kB / 401.1 MB, free: 4.984 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005207/0.4271, allocations: 347.7 kB / 401.5 MB, free: 4.742 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006952/0.4278, allocations: 0.4912 MB / 401.9 MB, free: 4.359 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.4278, allocations: 4 kB / 402 MB, free: 4.355 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.702e-05/0.4279, allocations: 11.98 kB / 402 MB, free: 4.344 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.4279, allocations: 0 / 402 MB, free: 4.344 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001452/0.4293, allocations: 0.8489 MB / 402.8 MB, free: 3.625 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005496/0.4299, allocations: 498.9 kB / 403.3 MB, free: 3.328 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005473/0.4304, allocations: 486.9 kB / 403.8 MB, free: 3.047 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.225e-05/0.4305, allocations: 128 / 403.8 MB, free: 3.047 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006958/0.4312, allocations: 0.6188 MB / 404.4 MB, free: 2.512 MB / 282.7 MB Notification: Performance of pre-optimization done (n=34): time 4.378e-06/0.4312, allocations: 4 kB / 404.4 MB, free: 2.508 MB / 282.7 MB Notification: Performance of matching and sorting (n=34): time 0.001156/0.4324, allocations: 0.7518 MB / 405.1 MB, free: 1.914 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001575/0.4325, allocations: 287.7 kB / 405.4 MB, free: 1.594 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001392/0.4339, allocations: 0.9876 MB / 406.4 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.789e-05/0.434, allocations: 36.83 kB / 406.5 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.911e-05/0.4341, allocations: 119.8 kB / 406.6 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.4342, allocations: 79.55 kB / 406.6 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.085e-05/0.4343, allocations: 12.5 kB / 406.7 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.4344, allocations: 346.7 kB / 407 MB, free: 212 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004703/0.4349, allocations: 340.3 kB / 407.3 MB, free: 15.87 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004331/0.4354, allocations: 344.5 kB / 407.7 MB, free: 15.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003807/0.4357, allocations: 241.4 kB / 407.9 MB, free: 15.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.4358, allocations: 4 kB / 407.9 MB, free: 15.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001191/0.437, allocations: 0.7159 MB / 408.6 MB, free: 14.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.437, allocations: 4 kB / 408.6 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.437, allocations: 0 / 408.6 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.437, allocations: 0 / 408.6 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.1e-05/0.4371, allocations: 7.984 kB / 408.6 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.4371, allocations: 0 / 408.6 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003728/0.4375, allocations: 35.83 kB / 408.7 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002031/0.4377, allocations: 148.2 kB / 408.8 MB, free: 14.38 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.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.0004104/0.4381, allocations: 402 kB / 409.2 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.4383, allocations: 90.97 kB / 409.3 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003098/0.4386, allocations: 151.7 kB / 409.4 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.4386, allocations: 0 / 409.4 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.4386, allocations: 0 / 409.4 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.4386, allocations: 4 kB / 409.4 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002183/0.4408, allocations: 1.466 MB / 410.9 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.4408, allocations: 0 / 410.9 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.281e-05/0.4409, allocations: 4 kB / 410.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.214e-06/0.4409, allocations: 7.906 kB / 410.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.354e-05/0.441, allocations: 35.98 kB / 411 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.441, allocations: 0 / 411 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.441, allocations: 3.984 kB / 411 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001396/0.4424, allocations: 0.9239 MB / 411.9 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/0.4434, allocations: 0.5776 MB / 412.5 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001985/0.4436, allocations: 59.97 kB / 412.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003072/0.444, allocations: 35.97 kB / 412.6 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004005/0.4444, allocations: 239.7 kB / 412.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001626/0.4445, allocations: 159.9 kB / 413 MB, free: 10.11 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.001034/0.4456, allocations: 0.8226 MB / 413.8 MB, free: 9.293 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004754/0.4461, allocations: 108 kB / 413.9 MB, free: 9.188 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: 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.0003085/0.4464, allocations: 188.4 kB / 414.1 MB, free: 8.992 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001312/0.4477, allocations: 1.078 MB / 415.1 MB, free: 7.871 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.4477, allocations: 4 kB / 415.1 MB, free: 7.867 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009466/0.4487, allocations: 0.9176 MB / 416.1 MB, free: 6.906 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001089/0.4498, allocations: 283.7 kB / 416.3 MB, free: 6.633 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002601/0.4524, allocations: 1.702 MB / 418 MB, free: 4.898 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000803/0.4532, allocations: 1.053 MB / 419.1 MB, free: 3.816 MB / 298.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4532, allocations: 0 / 419.1 MB, free: 3.816 MB / 298.7 MB Notification: Performance of Templates: time 0.01949/0.4727, allocations: 12.98 MB / 432.1 MB, free: 6.555 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREG.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREG.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREG -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1)