Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.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.FlipFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop") translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop") [: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.001065/0.001065, allocations: 191.6 kB / 8.135 MB, free: 2.199 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.113/1.113, allocations: 194.2 MB / 202.8 MB, free: 8.664 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.001825/0.001825, allocations: 117 kB / 247.7 MB, free: 6.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 8.456e-06/8.496e-06, allocations: 4 kB / 297.6 MB, free: 7.984 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07237/0.07239, allocations: 44.5 MB / 342.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2038/0.2762, allocations: 77.52 MB / 419.6 MB, free: 17.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001886/0.2764, allocations: 73.89 kB / 419.6 MB, free: 17.41 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.07536/0.3518, allocations: 41.9 MB / 461.5 MB, free: 15.61 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.164e-05/0.3519, allocations: 11.94 kB / 461.6 MB, free: 15.6 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009186/0.3528, allocations: 0.6818 MB / 462.2 MB, free: 14.86 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.3528, allocations: 8.031 kB / 462.2 MB, free: 14.85 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001226/0.353, allocations: 51.44 kB / 462.3 MB, free: 14.8 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004994/0.3535, allocations: 350.6 kB / 462.6 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.618e-05/0.3535, allocations: 12 kB / 462.6 MB, free: 14.4 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.951e-05/0.3536, allocations: 20 kB / 462.7 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006346/0.3542, allocations: 341.1 kB / 463 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007098/0.355, allocations: 428.5 kB / 463.4 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.355, allocations: 0 / 463.4 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.786e-05/0.3551, allocations: 4 kB / 463.4 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.3551, allocations: 4 kB / 463.4 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001721/0.3568, allocations: 1.014 MB / 464.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008053/0.3576, allocations: 386.8 kB / 464.8 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002554/0.3579, allocations: 148.8 kB / 465 MB, free: 12.03 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.908e-05/0.358, allocations: 7.906 kB / 465 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004046/0.3584, allocations: 297.1 kB / 465.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 1.754e-06/0.3584, allocations: 1.781 kB / 465.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.0008034/0.3592, allocations: 435 kB / 465.7 MB, free: 11.29 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.949e-05/0.3593, allocations: 110.8 kB / 465.8 MB, free: 11.15 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.3595, allocations: 260.9 kB / 466.1 MB, free: 10.89 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.907e-05/0.3596, allocations: 37.64 kB / 466.1 MB, free: 10.85 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.761e-05/0.3597, allocations: 148.7 kB / 466.2 MB, free: 10.7 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.3598, allocations: 71.16 kB / 466.3 MB, free: 10.63 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.335e-05/0.3599, allocations: 3.938 kB / 466.3 MB, free: 10.62 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.36, allocations: 338.8 kB / 466.6 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002631/0.3602, allocations: 156.7 kB / 466.8 MB, free: 10.13 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002954/0.3605, allocations: 201 kB / 467 MB, free: 9.918 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002874/0.3608, allocations: 165.4 kB / 467.1 MB, free: 9.758 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3609, allocations: 0 / 467.1 MB, free: 9.758 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008229/0.3617, allocations: 493.1 kB / 467.6 MB, free: 9.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/0.3617, allocations: 4 kB / 467.6 MB, free: 9.266 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.3617, allocations: 8.031 kB / 467.6 MB, free: 9.258 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.3617, allocations: 0 / 467.6 MB, free: 9.258 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001412/0.3619, allocations: 55.91 kB / 467.7 MB, free: 9.203 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.3619, allocations: 11.92 kB / 467.7 MB, free: 9.191 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003088/0.3622, allocations: 46.41 kB / 467.8 MB, free: 9.148 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002591/0.3625, allocations: 283.7 kB / 468 MB, free: 8.871 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 45 ($whenCondition1,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,$PRE.FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And2.y,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,$PRE.FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.And4.y,$PRE.FF.And4.auxiliary_n,FF.RS2.Nor1.auxiliary[2],$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.And1.y,$PRE.FF.And1.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.auxiliary_n,FF.And4.auxiliary_n,$PRE.FF.Not1.auxiliary,FF.RS1.Nor1.auxiliary[2],$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.y,$PRE.FF.And3.auxiliary_n,FF.Not1.auxiliary,CLK.y,$PRE.CLK.t_i,CLK.t_i,J.y,K.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 2 * 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.0002168/0.3627, allocations: 207.3 kB / 468.2 MB, free: 8.652 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.209e-05/0.3628, allocations: 31.62 kB / 468.3 MB, free: 8.621 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.718e-05/0.3629, allocations: 30.95 kB / 468.3 MB, free: 8.59 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.73e-06/0.3629, allocations: 4 kB / 468.3 MB, free: 8.586 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.3629, allocations: 3.938 kB / 468.3 MB, free: 8.582 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.3629, allocations: 0 / 468.3 MB, free: 8.582 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004931/0.3634, allocations: 405.8 kB / 468.7 MB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.3634, allocations: 4 kB / 468.7 MB, free: 8.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001141/0.3635, allocations: 47.97 kB / 468.7 MB, free: 8.098 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.3635, allocations: 4 kB / 468.8 MB, free: 8.094 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.203e-05/0.3636, allocations: 39.97 kB / 468.8 MB, free: 8.055 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.696e-06/0.3636, allocations: 4 kB / 468.8 MB, free: 8.051 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.3637, allocations: 0 / 468.8 MB, free: 8.051 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007568/0.3644, allocations: 472.6 kB / 469.3 MB, free: 7.57 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002696/0.3647, allocations: 204.6 kB / 469.5 MB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000131/0.3648, allocations: 8 kB / 469.5 MB, free: 7.344 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002478/0.3651, allocations: 35.88 kB / 469.5 MB, free: 7.309 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002038/0.3653, allocations: 79.92 kB / 469.6 MB, free: 7.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002381/0.3656, allocations: 275.7 kB / 469.8 MB, free: 6.961 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001576/0.3657, allocations: 189.2 kB / 470 MB, free: 6.777 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003904/0.3661, allocations: 76 kB / 470.1 MB, free: 6.703 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: 33 ($whenCondition1,FF.RS1.Nor1.auxiliary[2],FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.RS2.Nor1.auxiliary[2],FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.y,FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.y,FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.y,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (K.y,J.y,FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And3.auxiliary_n,FF.And2.auxiliary_n,FF.And1.auxiliary_n,FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 1 * 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.0001862/0.3663, allocations: 130.3 kB / 470.2 MB, free: 6.566 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006714/0.367, allocations: 443.1 kB / 470.7 MB, free: 6.121 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.367, allocations: 0 / 470.7 MB, free: 6.121 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003718/0.3674, allocations: 279.2 kB / 470.9 MB, free: 5.836 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001134/0.3685, allocations: 270.9 kB / 471.2 MB, free: 5.582 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001191/0.3697, allocations: 0.5181 MB / 471.7 MB, free: 5.043 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00185/0.3716, allocations: 1.471 MB / 473.2 MB, free: 3.543 MB / 346.7 MB Notification: Performance of SimCode: time 2.344e-06/0.3716, allocations: 4 kB / 473.2 MB, free: 3.539 MB / 346.7 MB Notification: Performance of Templates: time 0.01766/0.3893, allocations: 13.53 MB / 486.7 MB, free: 5.586 MB / 362.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1)