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.0009988/0.0009988, allocations: 86.88 kB / 15.06 MB, free: 1.09 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.001176/0.001176, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.849/1.849, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.0004919/0.0004922, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3119, allocations: 47.59 MB / 326.5 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.001788/0.3137, allocations: 1.734 MB / 328.2 MB, free: 20 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002286/0.316, allocations: 1.1 MB / 329.3 MB, free: 15.19 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.3161, allocations: 6.75 kB / 329.3 MB, free: 15.19 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001662/0.3163, allocations: 34.52 kB / 329.4 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001008/0.3164, allocations: 25.72 kB / 329.4 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004508/0.3169, allocations: 120 kB / 329.5 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004354/0.3173, allocations: 396.4 kB / 329.9 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002674/0.3176, allocations: 126.9 kB / 330 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009039/0.3185, allocations: 0.6715 MB / 330.7 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003243/0.3189, allocations: 249.5 kB / 330.9 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.086e-05/0.3189, allocations: 9.344 kB / 330.9 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.263e-05/0.319, allocations: 10.38 kB / 330.9 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001979/0.3192, allocations: 123.4 kB / 331.1 MB, free: 14.33 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.3193, allocations: 91.61 kB / 331.2 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006533/0.32, allocations: 0.7703 MB / 331.9 MB, free: 13.64 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.32, allocations: 0 / 331.9 MB, free: 13.64 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.32, allocations: 3.938 kB / 331.9 MB, free: 13.64 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.32, allocations: 0 / 331.9 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.001128/0.3212, allocations: 0.7333 MB / 332.7 MB, free: 12.96 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.3212, allocations: 9.719 kB / 332.7 MB, free: 12.96 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000149/0.3214, allocations: 51.69 kB / 332.7 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005022/0.3219, allocations: 341.5 kB / 333.1 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.907e-05/0.322, allocations: 23.19 kB / 333.1 MB, free: 12.63 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.8e-05/0.3221, allocations: 36.12 kB / 333.1 MB, free: 12.62 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009056/0.323, allocations: 491.4 kB / 333.6 MB, free: 12.27 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.323, allocations: 3.984 kB / 333.6 MB, free: 12.27 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.444e-05/0.3231, allocations: 12 kB / 333.6 MB, free: 12.25 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/0.3231, allocations: 12 kB / 333.6 MB, free: 12.24 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007218/0.3238, allocations: 382.4 kB / 334 MB, free: 11.87 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001869/0.3257, allocations: 1.12 MB / 335.1 MB, free: 10.7 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.3268, allocations: 467.5 kB / 335.6 MB, free: 10.23 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003615/0.3272, allocations: 189.3 kB / 335.8 MB, free: 10.04 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.616e-05/0.3272, allocations: 4.281 kB / 335.8 MB, free: 10.04 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006375/0.3279, allocations: 344.4 kB / 336.1 MB, free: 9.691 MB / 270.1 MB Notification: Performance of pre-optimization done (n=35): time 2.765e-06/0.3279, allocations: 4 kB / 336.1 MB, free: 9.688 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.001472/0.3294, allocations: 0.7422 MB / 336.8 MB, free: 8.926 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.131e-05/0.3295, allocations: 110.8 kB / 336.9 MB, free: 8.793 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003012/0.3298, allocations: 306.4 kB / 337.2 MB, free: 8.484 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.955e-05/0.3299, allocations: 41.7 kB / 337.3 MB, free: 8.438 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.33, allocations: 168.7 kB / 337.5 MB, free: 8.266 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.946e-05/0.3301, allocations: 82.98 kB / 337.5 MB, free: 8.184 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.819e-05/0.3301, allocations: 15.94 kB / 337.5 MB, free: 8.168 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.3303, allocations: 338.8 kB / 337.9 MB, free: 7.828 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003637/0.3306, allocations: 188.8 kB / 338.1 MB, free: 7.645 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003854/0.331, allocations: 232.5 kB / 338.3 MB, free: 7.402 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004223/0.3315, allocations: 271.2 kB / 338.6 MB, free: 7.125 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3315, allocations: 0 / 338.6 MB, free: 7.125 MB / 270.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001125/0.3326, allocations: 0.6565 MB / 339.2 MB, free: 6.449 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.164e-05/0.3327, allocations: 59.41 kB / 339.3 MB, free: 6.379 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.3327, allocations: 4.031 kB / 339.3 MB, free: 6.375 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.3327, allocations: 7.938 kB / 339.3 MB, free: 6.367 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001761/0.3329, allocations: 59.89 kB / 339.3 MB, free: 6.309 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.3329, allocations: 4 kB / 339.3 MB, free: 6.305 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003264/0.3333, allocations: 51.77 kB / 339.4 MB, free: 6.254 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002957/0.3336, allocations: 283.7 kB / 339.7 MB, free: 5.977 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.0003233/0.3339, allocations: 289.1 kB / 340 MB, free: 5.672 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.904e-05/0.334, allocations: 31.62 kB / 340 MB, free: 5.641 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.79e-05/0.334, allocations: 38.95 kB / 340 MB, free: 5.605 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.3341, allocations: 4 kB / 340 MB, free: 5.602 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.3341, allocations: 0 / 340 MB, free: 5.602 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.3341, allocations: 7.922 kB / 340 MB, free: 5.594 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005227/0.3346, allocations: 477.2 kB / 340.5 MB, free: 5.078 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3346, allocations: 4 kB / 340.5 MB, free: 5.074 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001107/0.3347, allocations: 51.97 kB / 340.6 MB, free: 5.023 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.3348, allocations: 7.922 kB / 340.6 MB, free: 5.016 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.966e-05/0.3348, allocations: 43.98 kB / 340.6 MB, free: 4.973 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.3348, allocations: 4 kB / 340.6 MB, free: 4.969 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3348, allocations: 0 / 340.6 MB, free: 4.969 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009883/0.3358, allocations: 0.6217 MB / 341.2 MB, free: 4.316 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000247/0.3361, allocations: 192.7 kB / 341.4 MB, free: 4.109 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.307e-05/0.3362, allocations: 16 kB / 341.4 MB, free: 4.094 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.3364, allocations: 43.81 kB / 341.5 MB, free: 4.051 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/0.3366, allocations: 87.89 kB / 341.6 MB, free: 3.965 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002674/0.3369, allocations: 283.7 kB / 341.8 MB, free: 3.688 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001963/0.3371, allocations: 205.9 kB / 342 MB, free: 3.488 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3371, allocations: 0 / 342 MB, free: 3.488 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003971/0.3375, allocations: 95.84 kB / 342.1 MB, free: 3.395 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.0002117/0.3377, allocations: 129.8 kB / 342.3 MB, free: 3.262 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0009415/0.3387, allocations: 0.5725 MB / 342.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/0.3387, allocations: 0 / 342.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005013/0.3392, allocations: 362.6 kB / 343.2 MB, free: 2.285 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001078/0.3403, allocations: 284.5 kB / 343.5 MB, free: 2.008 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.3416, allocations: 0.7881 MB / 344.3 MB, free: 1.191 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003697/0.342, allocations: 0.8111 MB / 345.1 MB, free: 360 kB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.001409/0.3434, allocations: 0.751 MB / 345.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006748/0.3441, allocations: 258.8 kB / 346.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3441, allocations: 4 kB / 346.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of Templates: time 0.0153/0.3594, allocations: 10.01 MB / 356.1 MB, free: 5.098 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)