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.001291/0.001291, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.01309/0.01309, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.022/2.022, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0004951/0.0004952, allocations: 12.47 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3378/0.3383, allocations: 47.59 MB / 327 MB, free: 1.656 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002464/0.3409, allocations: 1.828 MB / 328.9 MB, free: 192 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002481/0.3434, allocations: 1.128 MB / 330 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.759e-05/0.3435, allocations: 1.875 kB / 330 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001843/0.3437, allocations: 38.92 kB / 330 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001104/0.3438, allocations: 33.28 kB / 330.1 MB, free: 15.26 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004414/0.3442, allocations: 152.2 kB / 330.2 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004833/0.3447, allocations: 422.4 kB / 330.6 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002873/0.345, allocations: 142.4 kB / 330.8 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001073/0.3461, allocations: 0.7912 MB / 331.5 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000331/0.3465, allocations: 218.2 kB / 331.8 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.515e-05/0.3465, allocations: 10.34 kB / 331.8 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.682e-05/0.3466, allocations: 9.812 kB / 331.8 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002101/0.3468, allocations: 109.9 kB / 331.9 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002448/0.3471, allocations: 204.4 kB / 332.1 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008817/0.348, allocations: 0.8814 MB / 333 MB, free: 13.49 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.348, allocations: 0 / 333 MB, free: 13.49 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.348, allocations: 0 / 333 MB, free: 13.49 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.348, allocations: 1.312 kB / 333 MB, free: 13.49 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.001194/0.3492, allocations: 0.7178 MB / 333.7 MB, free: 12.79 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.3493, allocations: 11.97 kB / 333.7 MB, free: 12.78 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.3494, allocations: 52.36 kB / 333.8 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004567/0.3499, allocations: 351.4 kB / 334.1 MB, free: 12.34 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.617e-05/0.3499, allocations: 33.02 kB / 334.1 MB, free: 12.31 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.126e-05/0.35, allocations: 28.38 kB / 334.2 MB, free: 12.28 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009091/0.3509, allocations: 0.4903 MB / 334.6 MB, free: 11.79 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.351, allocations: 3.938 kB / 334.6 MB, free: 11.78 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.495e-05/0.351, allocations: 16 kB / 334.7 MB, free: 11.77 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.3511, allocations: 8 kB / 334.7 MB, free: 11.76 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007693/0.3518, allocations: 386.4 kB / 335 MB, free: 11.38 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0018/0.3536, allocations: 1.108 MB / 336.2 MB, free: 10.22 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.3548, allocations: 471.5 kB / 336.6 MB, free: 9.754 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003562/0.3551, allocations: 181.3 kB / 336.8 MB, free: 9.574 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.678e-05/0.3552, allocations: 8.266 kB / 336.8 MB, free: 9.566 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000616/0.3558, allocations: 356.4 kB / 337.2 MB, free: 9.207 MB / 270.1 MB Notification: Performance of pre-optimization done (n=35): time 2.074e-06/0.3558, allocations: 0 / 337.2 MB, free: 9.207 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.001451/0.3573, allocations: 0.7462 MB / 337.9 MB, free: 8.441 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.155e-05/0.3574, allocations: 110.8 kB / 338 MB, free: 8.309 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003086/0.3577, allocations: 310.4 kB / 338.3 MB, free: 8 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 7.487e-05/0.3578, allocations: 41.7 kB / 338.3 MB, free: 7.953 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.3579, allocations: 172.7 kB / 338.5 MB, free: 7.777 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.358, allocations: 83.08 kB / 338.6 MB, free: 7.695 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.3582, allocations: 69.67 kB / 338.7 MB, free: 7.621 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.3583, allocations: 346.8 kB / 339 MB, free: 7.273 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003765/0.3587, allocations: 188.7 kB / 339.2 MB, free: 7.09 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004447/0.3591, allocations: 248.5 kB / 339.4 MB, free: 6.832 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008586/0.36, allocations: 0.5261 MB / 340 MB, free: 6.266 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.36, allocations: 0 / 340 MB, free: 6.266 MB / 270.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001177/0.3612, allocations: 0.6526 MB / 340.6 MB, free: 5.594 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.066e-05/0.3613, allocations: 67.39 kB / 340.7 MB, free: 5.516 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.3613, allocations: 4 kB / 340.7 MB, free: 5.512 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.3613, allocations: 0 / 340.7 MB, free: 5.512 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.3615, allocations: 55.91 kB / 340.7 MB, free: 5.457 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.3615, allocations: 8.031 kB / 340.7 MB, free: 5.449 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003343/0.3618, allocations: 59.73 kB / 340.8 MB, free: 5.391 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002807/0.3621, allocations: 283.7 kB / 341.1 MB, free: 5.113 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.0003912/0.3625, allocations: 289.1 kB / 341.4 MB, free: 4.809 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.546e-05/0.3626, allocations: 35.56 kB / 341.4 MB, free: 4.773 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.017e-05/0.3627, allocations: 34.95 kB / 341.4 MB, free: 4.738 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.3627, allocations: 4 kB / 341.4 MB, free: 4.734 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.3627, allocations: 4 kB / 341.4 MB, free: 4.73 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.3627, allocations: 0 / 341.4 MB, free: 4.73 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006147/0.3633, allocations: 485.1 kB / 341.9 MB, free: 4.207 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3634, allocations: 4 kB / 341.9 MB, free: 4.203 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.3635, allocations: 47.91 kB / 342 MB, free: 4.156 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3635, allocations: 0 / 342 MB, free: 4.156 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.103e-05/0.3636, allocations: 51.97 kB / 342 MB, free: 4.105 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.3636, allocations: 0 / 342 MB, free: 4.105 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.463e-06/0.3636, allocations: 4 kB / 342 MB, free: 4.102 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001183/0.3648, allocations: 0.6217 MB / 342.6 MB, free: 3.449 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002855/0.3651, allocations: 192.8 kB / 342.8 MB, free: 3.242 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.584e-05/0.3652, allocations: 16 kB / 342.8 MB, free: 3.227 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002262/0.3654, allocations: 47.75 kB / 342.9 MB, free: 3.18 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002994/0.3657, allocations: 87.91 kB / 343 MB, free: 3.094 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003387/0.3661, allocations: 279.7 kB / 343.2 MB, free: 2.82 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002604/0.3663, allocations: 205.9 kB / 343.4 MB, free: 2.621 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3664, allocations: 0 / 343.4 MB, free: 2.621 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005067/0.3669, allocations: 99.84 kB / 343.5 MB, free: 2.523 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.0003145/0.3672, allocations: 133.8 kB / 343.7 MB, free: 2.383 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001058/0.3683, allocations: 0.569 MB / 344.2 MB, free: 1.789 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3683, allocations: 0 / 344.2 MB, free: 1.789 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000704/0.369, allocations: 358.6 kB / 344.6 MB, free: 1.414 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001356/0.3703, allocations: 304.3 kB / 344.9 MB, free: 1.113 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001716/0.3721, allocations: 0.8308 MB / 345.7 MB, free: 260 kB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005812/0.3727, allocations: 0.8111 MB / 346.5 MB, free: 15.41 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.001491/0.3742, allocations: 0.751 MB / 347.3 MB, free: 14.66 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007181/0.3749, allocations: 258.8 kB / 347.5 MB, free: 14.41 MB / 286.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3749, allocations: 0 / 347.5 MB, free: 14.41 MB / 286.1 MB Notification: Performance of Templates: time 0.01796/0.3929, allocations: 10.29 MB / 357.8 MB, free: 3.887 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)