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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009905/0.0009905, allocations: 178.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.201/1.201, allocations: 194.5 MB / 211.6 MB, free: 3.039 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.001554/0.001554, allocations: 117.2 kB / 256.9 MB, free: 4.332 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002891/0.0002891, allocations: 12 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07565/0.07595, allocations: 44.49 MB / 355.1 MB, free: 2.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2274/0.3034, allocations: 78.36 MB / 433.4 MB, free: 11.2 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001844/0.3037, allocations: 70.62 kB / 433.5 MB, free: 11.17 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07279/0.3765, allocations: 42.52 MB / 476 MB, free: 3.414 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.667e-06/0.3765, allocations: 4 kB / 476 MB, free: 3.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.866e-05/0.3765, allocations: 4 kB / 476 MB, free: 3.406 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.0009517/0.3775, allocations: 0.7321 MB / 476.7 MB, free: 2.617 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.3775, allocations: 12.03 kB / 476.8 MB, free: 2.605 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.3776, allocations: 43.53 kB / 476.8 MB, free: 2.562 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005549/0.3782, allocations: 351 kB / 477.1 MB, free: 2.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.981e-05/0.3783, allocations: 24.66 kB / 477.2 MB, free: 2.156 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.838e-05/0.3783, allocations: 36 kB / 477.2 MB, free: 2.121 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008233/0.3792, allocations: 485.8 kB / 477.7 MB, free: 1.637 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.3792, allocations: 3.984 kB / 477.7 MB, free: 1.633 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.259e-05/0.3793, allocations: 19.98 kB / 477.7 MB, free: 1.613 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.3793, allocations: 12.69 kB / 477.7 MB, free: 1.602 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007137/0.38, allocations: 386.4 kB / 478.1 MB, free: 1.227 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.3816, allocations: 1.062 MB / 479.2 MB, free: 116 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009963/0.3826, allocations: 470.6 kB / 479.6 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.584e-05/0.3827, allocations: 4 kB / 479.6 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005064/0.3832, allocations: 329.3 kB / 479.9 MB, free: 15.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.365e-06/0.3832, allocations: 1.688 kB / 479.9 MB, free: 15.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.001298/0.3845, allocations: 0.7167 MB / 480.7 MB, free: 14.57 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.529e-05/0.3846, allocations: 114.8 kB / 480.8 MB, free: 14.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002584/0.3849, allocations: 273.5 kB / 481 MB, free: 14.16 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.324e-05/0.3849, allocations: 45.7 kB / 481.1 MB, free: 14.11 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.385, allocations: 168.7 kB / 481.2 MB, free: 13.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.097e-05/0.3851, allocations: 79 kB / 481.3 MB, free: 13.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.701e-05/0.3852, allocations: 12 kB / 481.3 MB, free: 13.85 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.3853, allocations: 342.8 kB / 481.7 MB, free: 13.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000349/0.3857, allocations: 172.6 kB / 481.8 MB, free: 13.33 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003731/0.3861, allocations: 229.4 kB / 482.1 MB, free: 13.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004237/0.3865, allocations: 246.4 kB / 482.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3865, allocations: 0 / 482.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001021/0.3876, allocations: 0.6331 MB / 482.9 MB, free: 12.19 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.785e-05/0.3876, allocations: 63.39 kB / 483 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3876, allocations: 0 / 483 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.3876, allocations: 4 kB / 483 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.3878, allocations: 55.91 kB / 483.1 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.3878, allocations: 12.83 kB / 483.1 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002817/0.3881, allocations: 51.77 kB / 483.1 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002391/0.3883, allocations: 287.6 kB / 483.4 MB, free: 11.71 MB / 362.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.0003093/0.3886, allocations: 285.1 kB / 483.7 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.778e-05/0.3887, allocations: 27.72 kB / 483.7 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.666e-05/0.3888, allocations: 34.95 kB / 483.7 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/0.3888, allocations: 4 kB / 483.7 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.3888, allocations: 0.8438 kB / 483.7 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.3888, allocations: 7.984 kB / 483.7 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005168/0.3893, allocations: 461.3 kB / 484.2 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3894, allocations: 0 / 484.2 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.767e-05/0.3894, allocations: 47.91 kB / 484.2 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.3895, allocations: 4 kB / 484.3 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.131e-05/0.3895, allocations: 43.98 kB / 484.3 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.3895, allocations: 0 / 484.3 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3895, allocations: 7.984 kB / 484.3 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009334/0.3905, allocations: 0.5957 MB / 484.9 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003208/0.3908, allocations: 188.7 kB / 485.1 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.799e-05/0.3909, allocations: 16 kB / 485.1 MB, free: 9.898 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.3911, allocations: 39.88 kB / 485.1 MB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.3913, allocations: 79.91 kB / 485.2 MB, free: 9.781 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002275/0.3916, allocations: 279.7 kB / 485.5 MB, free: 9.508 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001749/0.3917, allocations: 201.9 kB / 485.7 MB, free: 9.312 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3917, allocations: 0 / 485.7 MB, free: 9.312 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003717/0.3921, allocations: 88 kB / 485.8 MB, free: 9.227 MB / 362.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.0001782/0.3923, allocations: 137.4 kB / 485.9 MB, free: 9.086 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008581/0.3932, allocations: 0.5494 MB / 486.5 MB, free: 8.512 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3932, allocations: 0 / 486.5 MB, free: 8.512 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004397/0.3936, allocations: 348.6 kB / 486.8 MB, free: 8.148 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009821/0.3946, allocations: 274.6 kB / 487.1 MB, free: 7.887 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.3958, allocations: 0.7646 MB / 487.8 MB, free: 7.094 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003619/0.3962, allocations: 0.812 MB / 488.6 MB, free: 6.25 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001227/0.3974, allocations: 0.7504 MB / 489.4 MB, free: 5.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006343/0.3981, allocations: 258.8 kB / 489.6 MB, free: 5.25 MB / 362.7 MB Notification: Performance of SimCode: time 5.01e-07/0.3981, allocations: 0 / 489.6 MB, free: 5.25 MB / 362.7 MB Notification: Performance of Templates: time 0.01307/0.4111, allocations: 9.901 MB / 499.5 MB, free: 11.14 MB / 378.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)