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.002153/0.002153, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002923/0.002924, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.799/1.799, allocations: 205.1 MB / 222.4 MB, free: 4.582 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.002071/0.002071, allocations: 51.94 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3345/0.3366, allocations: 46.63 MB / 325.3 MB, free: 1.828 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003571/0.3402, allocations: 2.138 MB / 327.4 MB, free: 120 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002857/0.3431, allocations: 1.162 MB / 328.6 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003351/0.3434, allocations: 2.906 kB / 328.6 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002331/0.3437, allocations: 47.58 kB / 328.7 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002436/0.344, allocations: 40.94 kB / 328.7 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006021/0.3446, allocations: 173.7 kB / 328.9 MB, free: 15 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007018/0.3453, allocations: 456.5 kB / 329.3 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003386/0.3457, allocations: 158.6 kB / 329.5 MB, free: 14.63 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001001/0.3467, allocations: 0.8385 MB / 330.3 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004524/0.3471, allocations: 253.2 kB / 330.5 MB, free: 14.15 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001757/0.3473, allocations: 42.41 kB / 330.6 MB, free: 14.15 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001636/0.3475, allocations: 42.44 kB / 330.6 MB, free: 14.15 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002113/0.3477, allocations: 152.8 kB / 330.8 MB, free: 14.05 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000324/0.348, allocations: 218.6 kB / 331 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008375/0.3489, allocations: 0.9112 MB / 331.9 MB, free: 13.16 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3489, allocations: 1.5 kB / 331.9 MB, free: 13.16 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3489, allocations: 0 / 331.9 MB, free: 13.16 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.452e-05/0.3489, allocations: 0 / 331.9 MB, free: 13.16 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.001131/0.3501, allocations: 0.8821 MB / 332.8 MB, free: 12.35 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.3501, allocations: 8.031 kB / 332.8 MB, free: 12.34 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.3502, allocations: 44.47 kB / 332.8 MB, free: 12.3 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000416/0.3506, allocations: 347.4 kB / 333.2 MB, free: 11.92 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.856e-05/0.3507, allocations: 29.03 kB / 333.2 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.099e-05/0.3508, allocations: 32.38 kB / 333.2 MB, free: 11.86 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008143/0.3516, allocations: 490.1 kB / 333.7 MB, free: 11.38 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.3516, allocations: 4 kB / 333.7 MB, free: 11.37 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.327e-05/0.3517, allocations: 16 kB / 333.7 MB, free: 11.36 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.3517, allocations: 8 kB / 333.7 MB, free: 11.35 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007255/0.3524, allocations: 378.4 kB / 334.1 MB, free: 10.98 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001726/0.3542, allocations: 1.124 MB / 335.2 MB, free: 9.805 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00103/0.3552, allocations: 443.5 kB / 335.7 MB, free: 9.363 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003478/0.3556, allocations: 177.3 kB / 335.8 MB, free: 9.188 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.479e-05/0.3557, allocations: 4.281 kB / 335.8 MB, free: 9.184 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006009/0.3563, allocations: 348.3 kB / 336.2 MB, free: 8.832 MB / 270.1 MB Notification: Performance of pre-optimization done (n=35): time 1.813e-06/0.3563, allocations: 3.938 kB / 336.2 MB, free: 8.828 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.001366/0.3576, allocations: 0.7198 MB / 336.9 MB, free: 8.09 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.938e-05/0.3577, allocations: 118.8 kB / 337 MB, free: 7.949 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002597/0.358, allocations: 306.4 kB / 337.3 MB, free: 7.645 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.059e-05/0.3581, allocations: 37.7 kB / 337.4 MB, free: 7.602 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.3582, allocations: 184.7 kB / 337.5 MB, free: 7.414 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.3583, allocations: 86.94 kB / 337.6 MB, free: 7.328 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002523/0.3586, allocations: 182 kB / 337.8 MB, free: 7.145 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.3587, allocations: 346.7 kB / 338.1 MB, free: 6.797 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003552/0.359, allocations: 180.8 kB / 338.3 MB, free: 6.621 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003977/0.3595, allocations: 240.5 kB / 338.6 MB, free: 6.371 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007859/0.3602, allocations: 0.5106 MB / 339.1 MB, free: 5.82 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3603, allocations: 0 / 339.1 MB, free: 5.82 MB / 270.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00107/0.3613, allocations: 0.6449 MB / 339.7 MB, free: 5.156 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.148e-05/0.3614, allocations: 63.39 kB / 339.8 MB, free: 5.082 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.3614, allocations: 4 kB / 339.8 MB, free: 5.078 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.3614, allocations: 0 / 339.8 MB, free: 5.078 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001446/0.3616, allocations: 67.78 kB / 339.8 MB, free: 5.012 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.3616, allocations: 4 kB / 339.8 MB, free: 5.008 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001953/0.3618, allocations: 31.83 kB / 339.9 MB, free: 4.977 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002419/0.3621, allocations: 287.7 kB / 340.2 MB, free: 4.695 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.0003185/0.3624, allocations: 285.1 kB / 340.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.724e-05/0.3625, allocations: 35.62 kB / 340.5 MB, free: 4.359 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.383e-05/0.3625, allocations: 34.95 kB / 340.5 MB, free: 4.324 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.3626, allocations: 4 kB / 340.5 MB, free: 4.32 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.3626, allocations: 4 kB / 340.5 MB, free: 4.316 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.3626, allocations: 0 / 340.5 MB, free: 4.316 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004894/0.3631, allocations: 481.2 kB / 341 MB, free: 3.797 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.3631, allocations: 0 / 341 MB, free: 3.797 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.766e-05/0.3632, allocations: 51.91 kB / 341 MB, free: 3.746 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.3632, allocations: 4 kB / 341 MB, free: 3.742 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.398e-05/0.3633, allocations: 43.97 kB / 341.1 MB, free: 3.699 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.3633, allocations: 4 kB / 341.1 MB, free: 3.695 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3633, allocations: 0 / 341.1 MB, free: 3.695 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009832/0.3643, allocations: 0.6129 MB / 341.7 MB, free: 3.051 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002356/0.3645, allocations: 196.7 kB / 341.9 MB, free: 2.84 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.3646, allocations: 19.94 kB / 341.9 MB, free: 2.82 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.3648, allocations: 15.98 kB / 341.9 MB, free: 2.805 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000208/0.365, allocations: 87.91 kB / 342 MB, free: 2.719 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002257/0.3652, allocations: 279.7 kB / 342.3 MB, free: 2.445 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001731/0.3654, allocations: 213.9 kB / 342.5 MB, free: 2.238 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3654, allocations: 0 / 342.5 MB, free: 2.238 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003736/0.3658, allocations: 95.84 kB / 342.6 MB, free: 2.145 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.0001779/0.366, allocations: 141.7 kB / 342.7 MB, free: 1.996 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001017/0.367, allocations: 0.6037 MB / 343.3 MB, free: 1.367 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.367, allocations: 0 / 343.3 MB, free: 1.367 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004919/0.3675, allocations: 354.6 kB / 343.7 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/0.3687, allocations: 333.8 kB / 344 MB, free: 0.668 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001177/0.3699, allocations: 0.7117 MB / 344.7 MB, free: 15.93 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003721/0.3703, allocations: 0.8114 MB / 345.5 MB, free: 15.09 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.001239/0.3715, allocations: 0.747 MB / 346.3 MB, free: 14.34 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006608/0.3722, allocations: 274.8 kB / 346.5 MB, free: 14.07 MB / 286.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3722, allocations: 0 / 346.5 MB, free: 14.07 MB / 286.1 MB Notification: Performance of Templates: time 0.0157/0.3879, allocations: 10.9 MB / 357.4 MB, free: 2.941 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)