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.00155/0.00155, allocations: 86.48 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.002236/0.002236, 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.893/1.893, allocations: 205.4 MB / 222.1 MB, free: 5.371 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.0005715/0.0005717, allocations: 12 kB / 278.9 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.329, allocations: 47.59 MB / 326.5 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.001913/0.3309, allocations: 1.729 MB / 328.2 MB, free: 56 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002422/0.3334, allocations: 1.104 MB / 329.3 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.3335, allocations: 2.344 kB / 329.3 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001689/0.3337, allocations: 34.7 kB / 329.3 MB, free: 15.19 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.629e-05/0.3338, allocations: 29.59 kB / 329.4 MB, free: 15.17 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004216/0.3342, allocations: 116.2 kB / 329.5 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004324/0.3347, allocations: 401.5 kB / 329.9 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002686/0.3349, allocations: 121.9 kB / 330 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009148/0.3359, allocations: 0.6713 MB / 330.7 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003424/0.3362, allocations: 250 kB / 330.9 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.939e-05/0.3363, allocations: 9.531 kB / 330.9 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.211e-05/0.3364, allocations: 10.66 kB / 330.9 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001889/0.3366, allocations: 122.3 kB / 331.1 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.3367, allocations: 89.2 kB / 331.1 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006443/0.3373, allocations: 0.7773 MB / 331.9 MB, free: 13.68 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.3373, allocations: 4 kB / 331.9 MB, free: 13.67 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.012e-05/0.3373, allocations: 0 / 331.9 MB, free: 13.67 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.3374, allocations: 3.938 kB / 331.9 MB, free: 13.67 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.001064/0.3384, allocations: 0.7217 MB / 332.6 MB, free: 13 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.3385, allocations: 9.312 kB / 332.7 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001223/0.3386, allocations: 51.94 kB / 332.7 MB, free: 12.97 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004319/0.339, allocations: 337.1 kB / 333 MB, free: 12.68 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.801e-05/0.3391, allocations: 31.47 kB / 333.1 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.902e-05/0.3392, allocations: 36.66 kB / 333.1 MB, free: 12.65 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009084/0.3401, allocations: 487 kB / 333.6 MB, free: 12.25 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.3401, allocations: 4 kB / 333.6 MB, free: 12.25 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.178e-05/0.3402, allocations: 16 kB / 333.6 MB, free: 12.23 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.3402, allocations: 8 kB / 333.6 MB, free: 12.22 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007536/0.341, allocations: 390.3 kB / 334 MB, free: 11.84 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00179/0.3428, allocations: 1.124 MB / 335.1 MB, free: 10.66 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/0.3439, allocations: 471.5 kB / 335.6 MB, free: 10.2 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003586/0.3442, allocations: 185.3 kB / 335.8 MB, free: 10.01 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.129e-05/0.3443, allocations: 8.219 kB / 335.8 MB, free: 10 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006244/0.345, allocations: 348.4 kB / 336.1 MB, free: 9.652 MB / 270.1 MB Notification: Performance of pre-optimization done (n=35): time 2.444e-06/0.345, allocations: 0 / 336.1 MB, free: 9.652 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.001498/0.3465, allocations: 0.7384 MB / 336.8 MB, free: 8.895 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.969e-05/0.3466, allocations: 114.8 kB / 337 MB, free: 8.758 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003337/0.3469, allocations: 298.5 kB / 337.2 MB, free: 8.457 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.471e-05/0.347, allocations: 49.69 kB / 337.3 MB, free: 8.402 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.3471, allocations: 172.7 kB / 337.5 MB, free: 8.227 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.3472, allocations: 79 kB / 337.5 MB, free: 8.148 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001747/0.3474, allocations: 12 kB / 337.6 MB, free: 8.137 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.3476, allocations: 342.8 kB / 337.9 MB, free: 7.793 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003722/0.348, allocations: 180.8 kB / 338.1 MB, free: 7.617 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003975/0.3484, allocations: 240.5 kB / 338.3 MB, free: 7.367 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005318/0.3489, allocations: 263.3 kB / 338.6 MB, free: 7.098 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.3489, allocations: 4 kB / 338.6 MB, free: 7.094 MB / 270.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001189/0.3501, allocations: 0.6565 MB / 339.2 MB, free: 6.418 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.955e-05/0.3502, allocations: 63.39 kB / 339.3 MB, free: 6.344 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3502, allocations: 0 / 339.3 MB, free: 6.344 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.3503, allocations: 4 kB / 339.3 MB, free: 6.34 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001603/0.3504, allocations: 59.94 kB / 339.3 MB, free: 6.281 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.3504, allocations: 4 kB / 339.3 MB, free: 6.277 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003296/0.3508, allocations: 59.69 kB / 339.4 MB, free: 6.219 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000353/0.3511, allocations: 279.7 kB / 339.7 MB, free: 5.945 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.0003837/0.3515, allocations: 289.1 kB / 340 MB, free: 5.641 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.505e-05/0.3516, allocations: 31.62 kB / 340 MB, free: 5.609 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.007e-05/0.3517, allocations: 38.95 kB / 340 MB, free: 5.574 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.3517, allocations: 4 kB / 340 MB, free: 5.57 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.3517, allocations: 0 / 340 MB, free: 5.57 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.3517, allocations: 0 / 340 MB, free: 5.57 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006856/0.3524, allocations: 485.2 kB / 340.5 MB, free: 5.047 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3524, allocations: 0 / 340.5 MB, free: 5.047 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.3526, allocations: 51.91 kB / 340.6 MB, free: 4.996 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.3526, allocations: 8 kB / 340.6 MB, free: 4.988 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.537e-05/0.3527, allocations: 43.97 kB / 340.6 MB, free: 4.945 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3527, allocations: 4 kB / 340.6 MB, free: 4.941 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3527, allocations: 0 / 340.6 MB, free: 4.941 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001135/0.3538, allocations: 0.6178 MB / 341.2 MB, free: 4.293 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002951/0.3541, allocations: 196.7 kB / 341.4 MB, free: 4.082 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.3542, allocations: 23.88 kB / 341.4 MB, free: 4.059 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002167/0.3545, allocations: 43.81 kB / 341.5 MB, free: 4.016 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002485/0.3547, allocations: 83.91 kB / 341.6 MB, free: 3.934 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003287/0.3551, allocations: 283.7 kB / 341.8 MB, free: 3.656 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002391/0.3553, allocations: 198 kB / 342 MB, free: 3.465 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3553, allocations: 4 kB / 342 MB, free: 3.461 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004996/0.3558, allocations: 91.84 kB / 342.1 MB, free: 3.371 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.0002919/0.3561, allocations: 141.8 kB / 342.3 MB, free: 3.227 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.3573, allocations: 0.5686 MB / 342.8 MB, free: 2.633 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.3573, allocations: 0 / 342.8 MB, free: 2.633 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006249/0.358, allocations: 354.6 kB / 343.2 MB, free: 2.262 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001205/0.3592, allocations: 276.7 kB / 343.5 MB, free: 1.992 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001875/0.3611, allocations: 0.7958 MB / 344.2 MB, free: 1.168 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005288/0.3616, allocations: 0.8111 MB / 345.1 MB, free: 336 kB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.002126/0.3637, allocations: 0.7548 MB / 345.8 MB, free: 15.57 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008356/0.3646, allocations: 254.8 kB / 346.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of SimCode: time 1.723e-06/0.3646, allocations: 4 kB / 346.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of Templates: time 0.0167/0.3813, allocations: 10.03 MB / 356.1 MB, free: 5.059 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)