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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001208/0.001208, allocations: 193.3 kB / 16.25 MB, free: 6.625 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.105/2.105, allocations: 205.1 MB / 222.1 MB, free: 4.684 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.001427/0.001427, allocations: 59.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3775/0.3789, allocations: 46.63 MB / 324.8 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.00457/0.3836, allocations: 2.182 MB / 327 MB, free: 192 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.003231/0.3868, allocations: 1.136 MB / 328.2 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002583/0.3871, allocations: 6.531 kB / 328.2 MB, free: 15.31 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002562/0.3875, allocations: 31.17 kB / 328.2 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001357/0.3876, allocations: 39.02 kB / 328.2 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007555/0.3884, allocations: 154.7 kB / 328.4 MB, free: 15.13 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007559/0.3891, allocations: 460.9 kB / 328.8 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000393/0.3896, allocations: 166.8 kB / 329 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001372/0.3909, allocations: 0.8362 MB / 329.8 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004808/0.3914, allocations: 263.6 kB / 330.1 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001229/0.3916, allocations: 42.38 kB / 330.1 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.3917, allocations: 42.78 kB / 330.2 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002535/0.3919, allocations: 160.9 kB / 330.3 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003479/0.3923, allocations: 216.3 kB / 330.5 MB, free: 14 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001061/0.3934, allocations: 0.9189 MB / 331.5 MB, free: 13.27 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.822e-06/0.3934, allocations: 0 / 331.5 MB, free: 13.27 MB / 270.1 MB Notification: Performance of FrontEnd: time 5.07e-06/0.3934, allocations: 3.984 kB / 331.5 MB, free: 13.27 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.131e-05/0.3934, allocations: 1.219 kB / 331.5 MB, free: 13.27 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.001867/0.3953, allocations: 0.8695 MB / 332.3 MB, free: 12.52 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.201e-05/0.3954, allocations: 8.031 kB / 332.3 MB, free: 12.51 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/0.3956, allocations: 48.47 kB / 332.4 MB, free: 12.46 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00068/0.3963, allocations: 347.4 kB / 332.7 MB, free: 12.08 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/0.3963, allocations: 29.03 kB / 332.8 MB, free: 12.05 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.966e-05/0.3964, allocations: 32.38 kB / 332.8 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.3974, allocations: 490.1 kB / 333.3 MB, free: 11.54 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.3975, allocations: 0 / 333.3 MB, free: 11.54 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.292e-05/0.3975, allocations: 20 kB / 333.3 MB, free: 11.52 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.3976, allocations: 4 kB / 333.3 MB, free: 11.51 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007702/0.3983, allocations: 386.3 kB / 333.7 MB, free: 11.13 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/0.4004, allocations: 1.108 MB / 334.8 MB, free: 9.977 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/0.4014, allocations: 443.5 kB / 335.2 MB, free: 9.535 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003565/0.4018, allocations: 173.3 kB / 335.4 MB, free: 9.363 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.644e-05/0.4019, allocations: 4.281 kB / 335.4 MB, free: 9.359 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007768/0.4027, allocations: 356.2 kB / 335.7 MB, free: 9 MB / 270.1 MB Notification: Performance of pre-optimization done (n=35): time 2.384e-06/0.4027, allocations: 4 kB / 335.7 MB, free: 8.996 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.001583/0.4043, allocations: 0.7198 MB / 336.5 MB, free: 8.258 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.4044, allocations: 106.8 kB / 336.6 MB, free: 8.129 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004231/0.4048, allocations: 310.4 kB / 336.9 MB, free: 7.82 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 7.233e-05/0.4049, allocations: 37.7 kB / 336.9 MB, free: 7.777 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001986/0.4051, allocations: 184.6 kB / 337.1 MB, free: 7.59 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.4053, allocations: 79.06 kB / 337.2 MB, free: 7.512 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003161/0.4056, allocations: 189.9 kB / 337.3 MB, free: 7.32 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002662/0.4059, allocations: 346.7 kB / 337.7 MB, free: 6.973 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004391/0.4063, allocations: 176.8 kB / 337.9 MB, free: 6.801 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004962/0.4068, allocations: 240.5 kB / 338.1 MB, free: 6.551 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008619/0.4077, allocations: 0.5184 MB / 338.6 MB, free: 5.992 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4077, allocations: 0 / 338.6 MB, free: 5.992 MB / 270.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00125/0.409, allocations: 0.6487 MB / 339.3 MB, free: 5.324 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.042e-05/0.4091, allocations: 59.41 kB / 339.3 MB, free: 5.254 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.4091, allocations: 8.016 kB / 339.3 MB, free: 5.246 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.374e-05/0.4091, allocations: 4 kB / 339.3 MB, free: 5.242 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001762/0.4093, allocations: 55.91 kB / 339.4 MB, free: 5.188 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.4093, allocations: 11.88 kB / 339.4 MB, free: 5.176 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004717/0.4098, allocations: 47.81 kB / 339.4 MB, free: 5.129 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004016/0.4102, allocations: 287.7 kB / 339.7 MB, free: 4.848 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.0005927/0.4108, allocations: 289.1 kB / 340 MB, free: 4.543 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.411, allocations: 31.62 kB / 340 MB, free: 4.512 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000101/0.4111, allocations: 38.95 kB / 340.1 MB, free: 4.473 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.4111, allocations: 0 / 340.1 MB, free: 4.473 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.4111, allocations: 4 kB / 340.1 MB, free: 4.469 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.4111, allocations: 3.984 kB / 340.1 MB, free: 4.465 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008758/0.412, allocations: 485.1 kB / 340.6 MB, free: 3.941 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.412, allocations: 0 / 340.6 MB, free: 3.941 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001248/0.4122, allocations: 59.91 kB / 340.6 MB, free: 3.883 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.4122, allocations: 0 / 340.6 MB, free: 3.883 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.881e-05/0.4123, allocations: 47.97 kB / 340.7 MB, free: 3.836 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.4123, allocations: 0 / 340.7 MB, free: 3.836 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4123, allocations: 0 / 340.7 MB, free: 3.836 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.4135, allocations: 0.6052 MB / 341.3 MB, free: 3.199 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003205/0.4139, allocations: 192.8 kB / 341.5 MB, free: 2.992 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/0.414, allocations: 16 kB / 341.5 MB, free: 2.977 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002485/0.4142, allocations: 43.81 kB / 341.5 MB, free: 2.934 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003051/0.4146, allocations: 87.91 kB / 341.6 MB, free: 2.848 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003763/0.4149, allocations: 283.7 kB / 341.9 MB, free: 2.57 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002594/0.4152, allocations: 205.9 kB / 342.1 MB, free: 2.371 MB / 270.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4152, allocations: 3.938 kB / 342.1 MB, free: 2.367 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005693/0.4158, allocations: 99.75 kB / 342.2 MB, free: 2.27 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.000311/0.4161, allocations: 141.8 kB / 342.3 MB, free: 2.121 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001247/0.4174, allocations: 0.5959 MB / 342.9 MB, free: 1.5 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.4174, allocations: 0 / 342.9 MB, free: 1.5 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005391/0.4179, allocations: 362.6 kB / 343.3 MB, free: 1.121 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001277/0.4192, allocations: 317.1 kB / 343.6 MB, free: 0.8086 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001652/0.4209, allocations: 0.8251 MB / 344.4 MB, free: 15.95 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004821/0.4214, allocations: 0.8113 MB / 345.2 MB, free: 15.11 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.001779/0.4232, allocations: 0.751 MB / 346 MB, free: 14.36 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007114/0.4239, allocations: 266.8 kB / 346.2 MB, free: 14.1 MB / 286.1 MB Notification: Performance of SimCode: time 1.453e-06/0.4239, allocations: 0 / 346.2 MB, free: 14.1 MB / 286.1 MB Notification: Performance of Templates: time 0.01976/0.4437, allocations: 10.62 MB / 356.8 MB, free: 3.246 MB / 286.1 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)