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.001004/0.001004, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.009084/0.009084, allocations: 169.4 kB / 16.26 MB, free: 6.652 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.011/2.011, allocations: 205.4 MB / 222.4 MB, free: 5.559 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.0005085/0.0005088, allocations: 8 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3076/0.3082, allocations: 47.59 MB / 327 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.001884/0.3101, allocations: 1.824 MB / 328.9 MB, free: 15.93 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002422/0.3126, allocations: 1.124 MB / 330 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.581e-05/0.3127, allocations: 6.562 kB / 330 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001706/0.3129, allocations: 31.2 kB / 330 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001146/0.313, allocations: 37.8 kB / 330.1 MB, free: 15 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004377/0.3134, allocations: 150.8 kB / 330.2 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004645/0.3139, allocations: 423.4 kB / 330.6 MB, free: 14.63 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/0.3142, allocations: 149.5 kB / 330.8 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009326/0.3151, allocations: 0.7924 MB / 331.6 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003385/0.3155, allocations: 210.2 kB / 331.8 MB, free: 14.15 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.487e-05/0.3156, allocations: 10.19 kB / 331.8 MB, free: 14.15 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.485e-05/0.3156, allocations: 10.88 kB / 331.8 MB, free: 14.15 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001757/0.3158, allocations: 112.2 kB / 331.9 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002412/0.3161, allocations: 200.2 kB / 332.1 MB, free: 13.93 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007813/0.3169, allocations: 0.8857 MB / 333 MB, free: 13.23 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.3169, allocations: 0 / 333 MB, free: 13.23 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3169, allocations: 0 / 333 MB, free: 13.23 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.3169, allocations: 1.062 kB / 333 MB, free: 13.23 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.001121/0.318, allocations: 0.7237 MB / 333.7 MB, free: 12.55 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.3181, allocations: 9.094 kB / 333.7 MB, free: 12.55 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.3182, allocations: 48.84 kB / 333.8 MB, free: 12.52 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004566/0.3187, allocations: 346.4 kB / 334.1 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.41e-05/0.3187, allocations: 29.03 kB / 334.1 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.703e-05/0.3189, allocations: 32.38 kB / 334.1 MB, free: 12.12 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009837/0.3198, allocations: 0.4941 MB / 334.6 MB, free: 11.62 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.3199, allocations: 0 / 334.6 MB, free: 11.62 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.884e-05/0.3199, allocations: 16 kB / 334.7 MB, free: 11.61 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.905e-05/0.32, allocations: 8 kB / 334.7 MB, free: 11.6 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007878/0.3208, allocations: 390.4 kB / 335 MB, free: 11.22 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001839/0.3226, allocations: 1.112 MB / 336.2 MB, free: 10.06 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001188/0.3238, allocations: 475.5 kB / 336.6 MB, free: 9.586 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003532/0.3242, allocations: 181.3 kB / 336.8 MB, free: 9.406 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.329e-05/0.3242, allocations: 8.281 kB / 336.8 MB, free: 9.398 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005727/0.3248, allocations: 352.4 kB / 337.2 MB, free: 9.043 MB / 270.1 MB Notification: Performance of pre-optimization done (n=35): time 2.314e-06/0.3248, allocations: 0 / 337.2 MB, free: 9.043 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.001525/0.3264, allocations: 0.7461 MB / 337.9 MB, free: 8.277 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.573e-05/0.3264, allocations: 110.8 kB / 338 MB, free: 8.145 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003019/0.3268, allocations: 310.4 kB / 338.3 MB, free: 7.836 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001047/0.3269, allocations: 37.7 kB / 338.3 MB, free: 7.793 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.327, allocations: 172.7 kB / 338.5 MB, free: 7.617 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.3271, allocations: 91.08 kB / 338.6 MB, free: 7.527 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.3272, allocations: 65.67 kB / 338.7 MB, free: 7.457 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.3274, allocations: 342.8 kB / 339 MB, free: 7.113 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004157/0.3278, allocations: 184.8 kB / 339.2 MB, free: 6.934 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004899/0.3283, allocations: 248.5 kB / 339.4 MB, free: 6.676 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008841/0.3292, allocations: 0.53 MB / 340 MB, free: 6.105 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.3292, allocations: 0 / 340 MB, free: 6.105 MB / 270.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001199/0.3304, allocations: 0.6565 MB / 340.6 MB, free: 5.43 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.797e-05/0.3305, allocations: 67.39 kB / 340.7 MB, free: 5.352 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.3305, allocations: 0 / 340.7 MB, free: 5.352 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.3306, allocations: 8.031 kB / 340.7 MB, free: 5.344 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001549/0.3307, allocations: 51.91 kB / 340.7 MB, free: 5.293 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.3307, allocations: 4 kB / 340.7 MB, free: 5.289 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003793/0.3311, allocations: 59.73 kB / 340.8 MB, free: 5.23 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003286/0.3315, allocations: 283.7 kB / 341.1 MB, free: 4.953 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.0004353/0.3319, allocations: 293 kB / 341.4 MB, free: 4.645 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.361e-05/0.332, allocations: 31.62 kB / 341.4 MB, free: 4.613 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001126/0.3321, allocations: 34.95 kB / 341.4 MB, free: 4.578 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.3321, allocations: 7.984 kB / 341.4 MB, free: 4.57 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.899e-06/0.3321, allocations: 0 / 341.4 MB, free: 4.57 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.3322, allocations: 0 / 341.4 MB, free: 4.57 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007172/0.3329, allocations: 489.1 kB / 341.9 MB, free: 4.043 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.3329, allocations: 0 / 341.9 MB, free: 4.043 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001107/0.333, allocations: 51.91 kB / 342 MB, free: 3.992 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.465e-06/0.333, allocations: 8 kB / 342 MB, free: 3.984 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.759e-05/0.3331, allocations: 43.97 kB / 342 MB, free: 3.941 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.3331, allocations: 4 kB / 342 MB, free: 3.938 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3331, allocations: 0 / 342 MB, free: 3.938 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001187/0.3343, allocations: 0.6216 MB / 342.6 MB, free: 3.285 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003021/0.3346, allocations: 196.8 kB / 342.8 MB, free: 3.074 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.663e-05/0.3347, allocations: 12 kB / 342.8 MB, free: 3.062 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002339/0.335, allocations: 43.81 kB / 342.9 MB, free: 3.02 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002604/0.3353, allocations: 95.84 kB / 343 MB, free: 2.926 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003002/0.3356, allocations: 283.7 kB / 343.3 MB, free: 2.648 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002451/0.3358, allocations: 201.9 kB / 343.5 MB, free: 2.453 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3358, allocations: 0 / 343.5 MB, free: 2.453 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004581/0.3363, allocations: 99.84 kB / 343.6 MB, free: 2.355 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.0003022/0.3366, allocations: 137.8 kB / 343.7 MB, free: 2.211 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001101/0.3377, allocations: 0.5647 MB / 344.3 MB, free: 1.621 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.3377, allocations: 0 / 344.3 MB, free: 1.621 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005631/0.3383, allocations: 366.5 kB / 344.6 MB, free: 1.238 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001297/0.3396, allocations: 292.7 kB / 344.9 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.3411, allocations: 0.8309 MB / 345.7 MB, free: 92 kB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005856/0.3417, allocations: 0.8072 MB / 346.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.00164/0.3433, allocations: 0.7549 MB / 347.3 MB, free: 14.5 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006642/0.344, allocations: 258.8 kB / 347.5 MB, free: 14.24 MB / 286.1 MB Notification: Performance of SimCode: time 2.7e-07/0.344, allocations: 0 / 347.5 MB, free: 14.24 MB / 286.1 MB Notification: Performance of Templates: time 0.0159/0.3599, allocations: 10.29 MB / 357.8 MB, free: 3.727 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)