Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.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.FlipFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop") translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.005056/0.005056, allocations: 166.3 kB / 15.11 MB, free: 5.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.191/1.191, allocations: 170.8 MB / 186.6 MB, free: 1.117 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.001638/0.001638, allocations: 114.6 kB / 226.2 MB, free: 10.12 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003516/0.0003517, allocations: 11.98 kB / 274.1 MB, free: 10.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2576, allocations: 38.77 MB / 312.9 MB, free: 38.79 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09392/0.3516, allocations: 73.06 MB / 386 MB, free: 1.449 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/0.3519, allocations: 75.95 kB / 386 MB, free: 1.375 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2793/0.6312, allocations: 42.53 MB / 428.6 MB, free: 86.4 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.6312, allocations: 0 / 428.6 MB, free: 86.4 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.687e-05/0.6313, allocations: 7.375 kB / 428.6 MB, free: 86.4 MB / 314.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.001064/0.6323, allocations: 0.7354 MB / 429.3 MB, free: 85.93 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.6324, allocations: 9.375 kB / 429.3 MB, free: 85.93 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001355/0.6325, allocations: 43.81 kB / 429.4 MB, free: 85.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000607/0.6331, allocations: 349.7 kB / 429.7 MB, free: 85.7 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.382e-05/0.6332, allocations: 25.53 kB / 429.7 MB, free: 85.7 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.347e-05/0.6333, allocations: 32.36 kB / 429.8 MB, free: 85.7 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000949/0.6342, allocations: 493.2 kB / 430.2 MB, free: 85.65 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.6343, allocations: 4.656 kB / 430.2 MB, free: 85.65 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.527e-05/0.6344, allocations: 14.12 kB / 430.3 MB, free: 85.65 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.6344, allocations: 7.875 kB / 430.3 MB, free: 85.65 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008263/0.6352, allocations: 385 kB / 430.6 MB, free: 85.65 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001785/0.637, allocations: 1.062 MB / 431.7 MB, free: 85.22 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009769/0.638, allocations: 459.9 kB / 432.2 MB, free: 85.1 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.305e-05/0.6381, allocations: 3.844 kB / 432.2 MB, free: 85.1 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004851/0.6386, allocations: 341.6 kB / 432.5 MB, free: 85 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.477e-06/0.6386, allocations: 0 / 432.5 MB, free: 85 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.001228/0.6398, allocations: 0.7117 MB / 433.2 MB, free: 84.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.427e-05/0.6399, allocations: 111.8 kB / 433.3 MB, free: 84.64 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002206/0.6401, allocations: 276.8 kB / 433.6 MB, free: 84.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.934e-05/0.6402, allocations: 37.64 kB / 433.6 MB, free: 84.44 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.247e-05/0.6403, allocations: 180.3 kB / 433.8 MB, free: 84.3 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.609e-05/0.6404, allocations: 66.19 kB / 433.9 MB, free: 84.26 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.616e-05/0.6404, allocations: 18.19 kB / 433.9 MB, free: 84.25 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.916e-05/0.6405, allocations: 333.1 kB / 434.2 MB, free: 83.93 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003143/0.6408, allocations: 178.4 kB / 434.4 MB, free: 83.88 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003317/0.6412, allocations: 229.1 kB / 434.6 MB, free: 83.79 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003603/0.6415, allocations: 257.9 kB / 434.8 MB, free: 83.66 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.6415, allocations: 0 / 434.8 MB, free: 83.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009731/0.6425, allocations: 0.6296 MB / 435.5 MB, free: 83.44 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.753e-05/0.6426, allocations: 62.3 kB / 435.5 MB, free: 83.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.6426, allocations: 0 / 435.5 MB, free: 83.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.6426, allocations: 6.938 kB / 435.5 MB, free: 83.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.6427, allocations: 58.06 kB / 435.6 MB, free: 83.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.6428, allocations: 4.031 kB / 435.6 MB, free: 83.37 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003163/0.6431, allocations: 55.23 kB / 435.7 MB, free: 83.35 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002684/0.6434, allocations: 289.6 kB / 435.9 MB, free: 83.33 MB / 314.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 () * Number of clocked 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.0002988/0.6437, allocations: 285.6 kB / 436.2 MB, free: 83.1 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.661e-05/0.6437, allocations: 33.27 kB / 436.3 MB, free: 83.09 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.246e-05/0.6438, allocations: 30.34 kB / 436.3 MB, free: 83.07 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.6438, allocations: 10.05 kB / 436.3 MB, free: 83.07 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.6438, allocations: 0 / 436.3 MB, free: 83.07 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.6438, allocations: 3.891 kB / 436.3 MB, free: 83.07 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004634/0.6443, allocations: 456.5 kB / 436.7 MB, free: 82.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.6443, allocations: 3.953 kB / 436.7 MB, free: 82.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.304e-05/0.6444, allocations: 47.78 kB / 436.8 MB, free: 82.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.6444, allocations: 3.625 kB / 436.8 MB, free: 82.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.786e-05/0.6445, allocations: 46.59 kB / 436.8 MB, free: 82.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.6445, allocations: 4 kB / 436.8 MB, free: 82.68 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.6445, allocations: 0 / 436.8 MB, free: 82.68 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008625/0.6454, allocations: 0.5905 MB / 437.4 MB, free: 82.38 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002981/0.6457, allocations: 196.1 kB / 437.6 MB, free: 82.22 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.419e-05/0.6458, allocations: 19.92 kB / 437.6 MB, free: 82.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002341/0.646, allocations: 39.56 kB / 437.7 MB, free: 82.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002149/0.6463, allocations: 79.38 kB / 437.8 MB, free: 82.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002429/0.6465, allocations: 281.7 kB / 438 MB, free: 82.14 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001594/0.6467, allocations: 199.9 kB / 438.2 MB, free: 82 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6467, allocations: 0 / 438.2 MB, free: 82 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003882/0.6471, allocations: 87.47 kB / 438.3 MB, free: 81.99 MB / 314.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) * Number of clocked states: 0 () * 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.0002263/0.6473, allocations: 147.9 kB / 438.5 MB, free: 81.88 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008529/0.6482, allocations: 0.5438 MB / 439 MB, free: 81.61 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.6482, allocations: 3.688 kB / 439 MB, free: 81.61 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004496/0.6486, allocations: 343.6 kB / 439.3 MB, free: 81.41 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001064/0.6497, allocations: 284.9 kB / 439.6 MB, free: 81.29 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/0.6508, allocations: 0.7644 MB / 440.4 MB, free: 80.78 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002645/0.6511, allocations: 0.8078 MB / 441.2 MB, free: 80.02 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001209/0.6523, allocations: 0.7495 MB / 441.9 MB, free: 79.52 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006461/0.653, allocations: 260.1 kB / 442.2 MB, free: 79.35 MB / 314.7 MB Notification: Performance of SimCode: time 4.11e-07/0.653, allocations: 0 / 442.2 MB, free: 79.35 MB / 314.7 MB Notification: Performance of Templates: time 0.01214/0.6651, allocations: 9.902 MB / 452.1 MB, free: 69.76 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1)