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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007817/0.0007856, allocations: 85.7 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008908/0.0008908, allocations: 177.5 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.678/1.678, allocations: 205.4 MB / 223.4 MB, free: 5.238 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007355/0.0007355, allocations: 12 kB / 280.1 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4066/0.4074, allocations: 47.6 MB / 327.7 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002233/0.4097, allocations: 1.731 MB / 329.5 MB, free: 36 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002495/0.4122, allocations: 1.099 MB / 330.6 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.4123, allocations: 10.66 kB / 330.6 MB, free: 15.2 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001714/0.4125, allocations: 35.83 kB / 330.6 MB, free: 15.17 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.847e-05/0.4126, allocations: 29.09 kB / 330.6 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004477/0.413, allocations: 115.8 kB / 330.8 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004404/0.4135, allocations: 397.8 kB / 331.1 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002824/0.4138, allocations: 122 kB / 331.3 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009864/0.4148, allocations: 0.6746 MB / 331.9 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003522/0.4151, allocations: 249.9 kB / 332.2 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.986e-05/0.4152, allocations: 10.25 kB / 332.2 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.027e-05/0.4153, allocations: 9.5 kB / 332.2 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000237/0.4156, allocations: 131.4 kB / 332.3 MB, free: 14.33 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001246/0.4157, allocations: 87.83 kB / 332.4 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007255/0.4164, allocations: 0.774 MB / 333.2 MB, free: 13.65 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.4164, allocations: 3.938 kB / 333.2 MB, free: 13.64 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4164, allocations: 0 / 333.2 MB, free: 13.64 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.4165, allocations: 1.25 kB / 333.2 MB, free: 13.64 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001254/0.4177, allocations: 0.7203 MB / 333.9 MB, free: 12.98 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.868e-05/0.4178, allocations: 14.12 kB / 333.9 MB, free: 12.97 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.4179, allocations: 47 kB / 334 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004591/0.4184, allocations: 341.5 kB / 334.3 MB, free: 12.65 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.819e-05/0.4185, allocations: 24.25 kB / 334.3 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.4186, allocations: 35.25 kB / 334.4 MB, free: 12.63 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009501/0.4195, allocations: 495.2 kB / 334.8 MB, free: 12.23 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.4196, allocations: 0 / 334.8 MB, free: 12.23 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.045e-05/0.4196, allocations: 19.94 kB / 334.9 MB, free: 12.21 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.4197, allocations: 8 kB / 334.9 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007897/0.4204, allocations: 382.4 kB / 335.2 MB, free: 11.83 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001878/0.4223, allocations: 1.124 MB / 336.4 MB, free: 10.65 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001158/0.4235, allocations: 467.5 kB / 336.8 MB, free: 10.19 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003531/0.4239, allocations: 185.3 kB / 337 MB, free: 10 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.141e-05/0.424, allocations: 4.281 kB / 337 MB, free: 10 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006197/0.4246, allocations: 356.4 kB / 337.4 MB, free: 9.641 MB / 270.1 MB Notification: Performance of pre-optimization done (n=35): time 1.974e-06/0.4246, allocations: 0 / 337.4 MB, free: 9.641 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.001468/0.4261, allocations: 0.7306 MB / 338.1 MB, free: 8.891 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.211e-05/0.4262, allocations: 118.8 kB / 338.2 MB, free: 8.75 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003622/0.4266, allocations: 302.4 kB / 338.5 MB, free: 8.445 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.04e-05/0.4266, allocations: 45.69 kB / 338.5 MB, free: 8.395 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.4268, allocations: 168.7 kB / 338.7 MB, free: 8.223 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.4269, allocations: 83 kB / 338.8 MB, free: 8.141 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.555e-05/0.4269, allocations: 8 kB / 338.8 MB, free: 8.133 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.4271, allocations: 346.7 kB / 339.1 MB, free: 7.785 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003736/0.4275, allocations: 188.8 kB / 339.3 MB, free: 7.602 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003966/0.4279, allocations: 240.5 kB / 339.6 MB, free: 7.352 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004323/0.4283, allocations: 259.3 kB / 339.8 MB, free: 7.086 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.4283, allocations: 0 / 339.8 MB, free: 7.086 MB / 270.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001093/0.4294, allocations: 0.6526 MB / 340.5 MB, free: 6.414 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.988e-05/0.4295, allocations: 71.42 kB / 340.5 MB, free: 6.332 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.4295, allocations: 0 / 340.5 MB, free: 6.332 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.4296, allocations: 4 kB / 340.5 MB, free: 6.328 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/0.4297, allocations: 55.91 kB / 340.6 MB, free: 6.273 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.4297, allocations: 0 / 340.6 MB, free: 6.273 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000323/0.4301, allocations: 63.69 kB / 340.7 MB, free: 6.211 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002932/0.4304, allocations: 279.7 kB / 340.9 MB, free: 5.938 MB / 270.1 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[1],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,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[1],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,$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[2],FF.And3.auxiliary_n,FF.And4.x[1],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.x[1],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,$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 (48): * Single equations (assignments): 46 * 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.0003531/0.4307, allocations: 289.1 kB / 341.2 MB, free: 5.633 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.331e-05/0.4308, allocations: 31.62 kB / 341.2 MB, free: 5.602 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.932e-05/0.4309, allocations: 34.95 kB / 341.3 MB, free: 5.57 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.4309, allocations: 7.984 kB / 341.3 MB, free: 5.562 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.4309, allocations: 7.938 kB / 341.3 MB, free: 5.555 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.4309, allocations: 0 / 341.3 MB, free: 5.555 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000545/0.4315, allocations: 485.2 kB / 341.8 MB, free: 5.031 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.4315, allocations: 0 / 341.8 MB, free: 5.031 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.4316, allocations: 55.91 kB / 341.8 MB, free: 4.977 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.4316, allocations: 0 / 341.8 MB, free: 4.977 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.98e-05/0.4317, allocations: 47.97 kB / 341.9 MB, free: 4.93 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.4317, allocations: 0 / 341.9 MB, free: 4.93 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.4317, allocations: 0 / 341.9 MB, free: 4.93 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.4328, allocations: 0.6216 MB / 342.5 MB, free: 4.277 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002493/0.433, allocations: 200.7 kB / 342.7 MB, free: 4.062 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.493e-05/0.4332, allocations: 12 kB / 342.7 MB, free: 4.051 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002061/0.4334, allocations: 43.81 kB / 342.7 MB, free: 4.008 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002054/0.4336, allocations: 87.91 kB / 342.8 MB, free: 3.922 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002811/0.4339, allocations: 283.7 kB / 343.1 MB, free: 3.645 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001935/0.4341, allocations: 198 kB / 343.3 MB, free: 3.453 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4341, allocations: 0 / 343.3 MB, free: 3.453 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003968/0.4345, allocations: 99.84 kB / 343.4 MB, free: 3.355 MB / 270.1 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[1],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[1],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.x[1],FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.x[1],FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (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,K.y,J.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * 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.0002115/0.4347, allocations: 137.8 kB / 343.5 MB, free: 3.215 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.4357, allocations: 0.5647 MB / 344.1 MB, free: 2.625 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.4358, allocations: 0 / 344.1 MB, free: 2.625 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005508/0.4363, allocations: 358.7 kB / 344.4 MB, free: 2.25 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.4375, allocations: 288.5 kB / 344.7 MB, free: 1.969 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001545/0.439, allocations: 0.788 MB / 345.5 MB, free: 1.152 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004817/0.4395, allocations: 0.8033 MB / 346.3 MB, free: 328 kB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.001746/0.4413, allocations: 0.755 MB / 347.1 MB, free: 15.56 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007212/0.442, allocations: 258.8 kB / 347.3 MB, free: 15.3 MB / 286.1 MB Notification: Performance of SimCode: time 4.51e-07/0.442, allocations: 0 / 347.3 MB, free: 15.3 MB / 286.1 MB Notification: Performance of Templates: time 0.01526/0.4573, allocations: 10.03 MB / 357.3 MB, free: 5.055 MB / 286.1 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)