Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Digital.Examples.FlipFlop") translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.00162/0.00162, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002135/0.002135, allocations: 187 kB / 16.25 MB, free: 6.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.193/2.193, allocations: 205.1 MB / 222.1 MB, free: 4.668 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.001455/0.001455, allocations: 47.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3974/0.3989, allocations: 46.63 MB / 324.8 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.004805/0.4037, allocations: 2.191 MB / 327 MB, free: 204 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.003896/0.4077, allocations: 1.139 MB / 328.2 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004183/0.4082, allocations: 6.906 kB / 328.2 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003806/0.4087, allocations: 35.33 kB / 328.2 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001679/0.4088, allocations: 25.34 kB / 328.2 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.4099, allocations: 159.9 kB / 328.4 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009059/0.4108, allocations: 460.3 kB / 328.8 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005248/0.4114, allocations: 164 kB / 329 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001899/0.4133, allocations: 0.8433 MB / 329.8 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006501/0.414, allocations: 267.4 kB / 330.1 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001545/0.4141, allocations: 43.44 kB / 330.1 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001196/0.4143, allocations: 41.12 kB / 330.2 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002413/0.4145, allocations: 150.8 kB / 330.3 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003089/0.4148, allocations: 222.4 kB / 330.6 MB, free: 14.01 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001102/0.4159, allocations: 0.9122 MB / 331.5 MB, free: 13.29 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.4159, allocations: 3.938 kB / 331.5 MB, free: 13.29 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.416, allocations: 0 / 331.5 MB, free: 13.29 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.738e-05/0.416, allocations: 1.188 kB / 331.5 MB, free: 13.29 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.00185/0.4178, allocations: 0.8742 MB / 332.3 MB, free: 12.54 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.114e-05/0.4179, allocations: 8.031 kB / 332.4 MB, free: 12.53 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001883/0.4181, allocations: 44.47 kB / 332.4 MB, free: 12.49 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006391/0.4188, allocations: 351.4 kB / 332.7 MB, free: 12.1 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.175e-05/0.4188, allocations: 29.03 kB / 332.8 MB, free: 12.07 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.586e-05/0.4189, allocations: 32.38 kB / 332.8 MB, free: 12.04 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00107/0.42, allocations: 490.1 kB / 333.3 MB, free: 11.56 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.4201, allocations: 0 / 333.3 MB, free: 11.56 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.567e-05/0.4201, allocations: 16 kB / 333.3 MB, free: 11.54 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.4202, allocations: 8 kB / 333.3 MB, free: 11.54 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008005/0.421, allocations: 378.4 kB / 333.7 MB, free: 11.16 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002152/0.4231, allocations: 1.112 MB / 334.8 MB, free: 10 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.4243, allocations: 439.5 kB / 335.2 MB, free: 9.566 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003696/0.4247, allocations: 177.3 kB / 335.4 MB, free: 9.391 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.205e-05/0.4248, allocations: 4.281 kB / 335.4 MB, free: 9.387 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00083/0.4256, allocations: 348.2 kB / 335.7 MB, free: 9.035 MB / 270.1 MB Notification: Performance of pre-optimization done (n=35): time 7.514e-06/0.4257, allocations: 7.984 kB / 335.7 MB, free: 9.027 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.001722/0.4274, allocations: 0.7237 MB / 336.5 MB, free: 8.285 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/0.4276, allocations: 110.8 kB / 336.6 MB, free: 8.152 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005504/0.4281, allocations: 306.4 kB / 336.9 MB, free: 7.848 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 9.647e-05/0.4282, allocations: 41.64 kB / 336.9 MB, free: 7.801 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000192/0.4284, allocations: 184.7 kB / 337.1 MB, free: 7.613 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.4286, allocations: 79 kB / 337.2 MB, free: 7.535 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003446/0.4289, allocations: 190 kB / 337.4 MB, free: 7.344 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.4291, allocations: 342.8 kB / 337.7 MB, free: 7 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003977/0.4295, allocations: 188.7 kB / 337.9 MB, free: 6.816 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004736/0.43, allocations: 236.5 kB / 338.1 MB, free: 6.57 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009694/0.431, allocations: 0.5184 MB / 338.6 MB, free: 6.012 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.431, allocations: 0 / 338.6 MB, free: 6.012 MB / 270.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001558/0.4326, allocations: 0.641 MB / 339.3 MB, free: 5.352 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.184e-05/0.4327, allocations: 67.39 kB / 339.3 MB, free: 5.273 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.4327, allocations: 0 / 339.3 MB, free: 5.273 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.889e-05/0.4327, allocations: 8.031 kB / 339.3 MB, free: 5.266 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001887/0.4329, allocations: 55.84 kB / 339.4 MB, free: 5.211 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.735e-05/0.433, allocations: 4 kB / 339.4 MB, free: 5.207 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005128/0.4335, allocations: 47.81 kB / 339.4 MB, free: 5.16 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003923/0.4339, allocations: 291.6 kB / 339.7 MB, free: 4.875 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,$PRE.FF.And2.auxiliary_n,FF.RS2.TD1.x_delayed,$PRE.FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.x[2],FF.RS2.Nor2.x[1],$PRE.FF.And4.auxiliary_n,FF.RS1.TD1.x_delayed,$PRE.FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.x[2],FF.RS1.Nor2.x[1],$PRE.FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And4.x[1],FF.And3.auxiliary_n,FF.And3.x[2],$PRE.FF.And1.auxiliary_n,FF.And1.y,FF.RS2.TD1.x,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary[2],K.y,J.y,CLK.t_i,$PRE.CLK.t_i,FF.Not1.auxiliary,$PRE.FF.And3.auxiliary_n,FF.And3.y,FF.And2.auxiliary_n,FF.And2.auxiliary[2],FF.And2.x[1],FF.And1.auxiliary_n,FF.And1.auxiliary[2],FF.And1.x[1],FF.RS1.TD1.x,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary[2]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005705/0.4345, allocations: 285.1 kB / 340 MB, free: 4.574 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.4346, allocations: 35.61 kB / 340 MB, free: 4.539 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001028/0.4347, allocations: 34.91 kB / 340.1 MB, free: 4.504 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/0.4347, allocations: 4 kB / 340.1 MB, free: 4.5 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.491e-05/0.4347, allocations: 0 / 340.1 MB, free: 4.5 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.4348, allocations: 3.984 kB / 340.1 MB, free: 4.496 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000787/0.4355, allocations: 489.1 kB / 340.6 MB, free: 3.969 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.4356, allocations: 0 / 340.6 MB, free: 3.969 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001209/0.4357, allocations: 47.97 kB / 340.6 MB, free: 3.922 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.633e-06/0.4357, allocations: 8 kB / 340.6 MB, free: 3.914 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/0.4358, allocations: 47.97 kB / 340.7 MB, free: 3.867 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.4358, allocations: 3.938 kB / 340.7 MB, free: 3.863 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.4358, allocations: 0 / 340.7 MB, free: 3.863 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001244/0.4371, allocations: 0.6091 MB / 341.3 MB, free: 3.223 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004518/0.4375, allocations: 188.8 kB / 341.5 MB, free: 3.02 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000151/0.4377, allocations: 12 kB / 341.5 MB, free: 3.008 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002322/0.438, allocations: 47.8 kB / 341.5 MB, free: 2.961 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002574/0.4382, allocations: 83.92 kB / 341.6 MB, free: 2.879 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003376/0.4386, allocations: 287.7 kB / 341.9 MB, free: 2.598 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.000288/0.4389, allocations: 205.9 kB / 342.1 MB, free: 2.398 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4389, allocations: 0 / 342.1 MB, free: 2.398 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005194/0.4394, allocations: 103.8 kB / 342.2 MB, free: 2.297 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002505/0.4397, allocations: 141.8 kB / 342.3 MB, free: 2.148 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.00134/0.441, allocations: 0.5959 MB / 342.9 MB, free: 1.527 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.441, allocations: 0 / 342.9 MB, free: 1.527 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006488/0.4417, allocations: 362.5 kB / 343.3 MB, free: 1.148 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001546/0.4432, allocations: 325.2 kB / 343.6 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001852/0.4451, allocations: 0.8213 MB / 344.4 MB, free: 15.97 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004933/0.4456, allocations: 0.8074 MB / 345.2 MB, free: 15.14 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.001988/0.4476, allocations: 0.7549 MB / 346 MB, free: 14.38 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000776/0.4484, allocations: 258.8 kB / 346.2 MB, free: 14.13 MB / 286.1 MB Notification: Performance of SimCode: time 5.1e-06/0.4484, allocations: 0 / 346.2 MB, free: 14.13 MB / 286.1 MB Notification: Performance of Templates: time 0.02098/0.4694, allocations: 10.64 MB / 356.9 MB, free: 3.266 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1)