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.00155/0.00155, allocations: 170.5 kB / 12.72 MB, free: 2.594 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.224/1.224, allocations: 170.6 MB / 183.8 MB, free: 11.49 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.001637/0.001637, allocations: 107.4 kB / 223.2 MB, free: 4.113 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.46e-05/2.462e-05, allocations: 4 kB / 268.9 MB, free: 20.93 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06384/0.06388, allocations: 38.77 MB / 307.6 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2672/0.3311, allocations: 72.98 MB / 380.6 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001567/0.3313, allocations: 63.72 kB / 380.7 MB, free: 3.191 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07828/0.4096, allocations: 42.85 MB / 423.5 MB, free: 14.57 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4096, allocations: 0 / 423.5 MB, free: 14.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.161e-05/0.4097, allocations: 8 kB / 423.5 MB, free: 14.57 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.0008587/0.4105, allocations: 0.6896 MB / 424.2 MB, free: 13.82 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.4106, allocations: 12.03 kB / 424.2 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/0.4107, allocations: 43.53 kB / 424.3 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004992/0.4112, allocations: 339.2 kB / 424.6 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.601e-05/0.4112, allocations: 36.72 kB / 424.6 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.467e-05/0.4113, allocations: 31.95 kB / 424.7 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000765/0.4121, allocations: 471.5 kB / 425.1 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.4121, allocations: 0 / 425.1 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.164e-05/0.4122, allocations: 15.94 kB / 425.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.4122, allocations: 12 kB / 425.2 MB, free: 12.83 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005963/0.4128, allocations: 354.9 kB / 425.5 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001614/0.4144, allocations: 1.062 MB / 426.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008598/0.4153, allocations: 406.7 kB / 427 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000276/0.4156, allocations: 160.8 kB / 427.1 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.436e-05/0.4157, allocations: 4 kB / 427.1 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004806/0.4162, allocations: 321.3 kB / 427.4 MB, free: 10.46 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 1.994e-06/0.4162, allocations: 0 / 427.4 MB, free: 10.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.0009631/0.4172, allocations: 0.5139 MB / 428 MB, free: 9.934 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.909e-05/0.4172, allocations: 110.8 kB / 428.1 MB, free: 9.801 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002905/0.4175, allocations: 278.8 kB / 428.3 MB, free: 9.523 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.106e-05/0.4176, allocations: 37.7 kB / 428.4 MB, free: 9.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.4177, allocations: 172.7 kB / 428.5 MB, free: 9.309 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.145e-05/0.4178, allocations: 75.16 kB / 428.6 MB, free: 9.234 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.661e-05/0.4179, allocations: 12 kB / 428.6 MB, free: 9.223 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.418, allocations: 334.8 kB / 429 MB, free: 8.887 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002856/0.4183, allocations: 164.7 kB / 429.1 MB, free: 8.723 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003177/0.4186, allocations: 213.4 kB / 429.3 MB, free: 8.5 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003493/0.419, allocations: 224.9 kB / 429.5 MB, free: 8.27 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.419, allocations: 4 kB / 429.5 MB, free: 8.266 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009341/0.4199, allocations: 0.6018 MB / 430.1 MB, free: 7.645 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.764e-05/0.42, allocations: 59.41 kB / 430.2 MB, free: 7.574 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.42, allocations: 0 / 430.2 MB, free: 7.574 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.4201, allocations: 7.984 kB / 430.2 MB, free: 7.566 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.4202, allocations: 55.91 kB / 430.3 MB, free: 7.512 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.4202, allocations: 4 kB / 430.3 MB, free: 7.508 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003161/0.4205, allocations: 47.81 kB / 430.3 MB, free: 7.461 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002862/0.4208, allocations: 287.8 kB / 430.6 MB, free: 7.18 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 () * 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.0002218/0.4211, allocations: 204.5 kB / 430.8 MB, free: 6.961 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.808e-05/0.4211, allocations: 31.7 kB / 430.8 MB, free: 6.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.258e-05/0.4212, allocations: 35.08 kB / 430.9 MB, free: 6.891 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.4212, allocations: 4 kB / 430.9 MB, free: 6.887 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.4212, allocations: 4 kB / 430.9 MB, free: 6.883 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.4213, allocations: 3.984 kB / 430.9 MB, free: 6.879 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005207/0.4218, allocations: 461.3 kB / 431.3 MB, free: 6.379 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.4218, allocations: 3.938 kB / 431.3 MB, free: 6.375 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.5e-05/0.4219, allocations: 47.91 kB / 431.4 MB, free: 6.328 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.4219, allocations: 4 kB / 431.4 MB, free: 6.324 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.938e-05/0.422, allocations: 43.97 kB / 431.4 MB, free: 6.281 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.422, allocations: 4 kB / 431.4 MB, free: 6.277 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.422, allocations: 0 / 431.4 MB, free: 6.277 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008466/0.4228, allocations: 0.5586 MB / 432 MB, free: 5.688 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002643/0.4231, allocations: 196.6 kB / 432.2 MB, free: 5.477 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.149e-05/0.4232, allocations: 16 kB / 432.2 MB, free: 5.461 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.4234, allocations: 39.81 kB / 432.2 MB, free: 5.422 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001949/0.4236, allocations: 87.91 kB / 432.3 MB, free: 5.336 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000248/0.4239, allocations: 283.7 kB / 432.6 MB, free: 5.059 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001845/0.4241, allocations: 203 kB / 432.8 MB, free: 4.859 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4241, allocations: 8 kB / 432.8 MB, free: 4.852 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003673/0.4245, allocations: 84 kB / 432.9 MB, free: 4.77 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) * 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.0002003/0.4247, allocations: 137.9 kB / 433 MB, free: 4.629 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000761/0.4255, allocations: 0.5063 MB / 433.5 MB, free: 4.098 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4255, allocations: 4.062 kB / 433.5 MB, free: 4.094 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003838/0.4259, allocations: 330.6 kB / 433.9 MB, free: 3.746 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.427, allocations: 276.4 kB / 434.1 MB, free: 3.477 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009593/0.4279, allocations: 0.5267 MB / 434.6 MB, free: 2.93 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.4283, allocations: 0.8113 MB / 435.5 MB, free: 2.09 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001262/0.4296, allocations: 0.747 MB / 436.2 MB, free: 1.34 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006723/0.4302, allocations: 262.8 kB / 436.5 MB, free: 1.082 MB / 314.7 MB Notification: Performance of SimCode: time 7.21e-07/0.4302, allocations: 0 / 436.5 MB, free: 1.082 MB / 314.7 MB Notification: Performance of Templates: time 0.01393/0.4442, allocations: 9.896 MB / 446.4 MB, free: 6.961 MB / 330.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)