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.001276/0.001276, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001224/0.001223, allocations: 177.3 kB / 15.94 MB, free: 228 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.883/1.883, allocations: 205.4 MB / 222.1 MB, free: 5.535 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.0005046/0.0005046, allocations: 12 kB / 278.9 MB, free: 12.72 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.3335, allocations: 47.57 MB / 326.4 MB, free: 1.473 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002352/0.3359, allocations: 1.734 MB / 328.2 MB, free: 104 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002634/0.3386, allocations: 1.102 MB / 329.3 MB, free: 15.28 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001386/0.3388, allocations: 2.781 kB / 329.3 MB, free: 15.28 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002096/0.339, allocations: 37.11 kB / 329.3 MB, free: 15.24 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.3391, allocations: 43.03 kB / 329.4 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005262/0.3397, allocations: 108.8 kB / 329.5 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005114/0.3402, allocations: 268.8 kB / 329.7 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003386/0.3405, allocations: 125.6 kB / 329.8 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008977/0.3415, allocations: 0.5164 MB / 330.4 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004089/0.3419, allocations: 249.3 kB / 330.6 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.42e-05/0.342, allocations: 10.53 kB / 330.6 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.198e-05/0.342, allocations: 9.75 kB / 330.6 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002334/0.3423, allocations: 123.5 kB / 330.7 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.3424, allocations: 84.11 kB / 330.8 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009021/0.3433, allocations: 0.7748 MB / 331.6 MB, free: 13.83 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3434, allocations: 4 kB / 331.6 MB, free: 13.83 MB / 270.1 MB Notification: Performance of FrontEnd: time 5.13e-06/0.3434, allocations: 0.9688 kB / 331.6 MB, free: 13.83 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.335e-05/0.3434, allocations: 3.938 kB / 331.6 MB, free: 13.82 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.001372/0.3448, allocations: 0.7174 MB / 332.3 MB, free: 13.16 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.3448, allocations: 8.75 kB / 332.3 MB, free: 13.16 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001606/0.345, allocations: 55.95 kB / 332.4 MB, free: 13.13 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000614/0.3456, allocations: 337.4 kB / 332.7 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.517e-05/0.3457, allocations: 32.28 kB / 332.8 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.935e-05/0.3458, allocations: 35.38 kB / 332.8 MB, free: 12.81 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001065/0.3468, allocations: 487.4 kB / 333.3 MB, free: 12.54 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.3469, allocations: 0 / 333.3 MB, free: 12.54 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.935e-05/0.347, allocations: 18.12 kB / 333.3 MB, free: 12.53 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.347, allocations: 8 kB / 333.3 MB, free: 12.52 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007854/0.3478, allocations: 386.4 kB / 333.7 MB, free: 12.14 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002149/0.3499, allocations: 1.112 MB / 334.8 MB, free: 10.98 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001225/0.3512, allocations: 475.5 kB / 335.2 MB, free: 10.5 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.078e-05/0.3512, allocations: 4.281 kB / 335.2 MB, free: 10.5 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007324/0.352, allocations: 356.3 kB / 335.6 MB, free: 10.14 MB / 270.1 MB Notification: Performance of pre-optimization done (n=35): time 2.836e-06/0.352, allocations: 0 / 335.6 MB, free: 10.14 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.001634/0.3536, allocations: 0.7422 MB / 336.3 MB, free: 9.379 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.3538, allocations: 118.8 kB / 336.5 MB, free: 9.238 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004145/0.3542, allocations: 294.5 kB / 336.7 MB, free: 8.941 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 9.129e-05/0.3543, allocations: 41.69 kB / 336.8 MB, free: 8.895 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001666/0.3545, allocations: 168.7 kB / 336.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.3546, allocations: 83.02 kB / 337 MB, free: 8.641 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-05/0.3546, allocations: 8 kB / 337 MB, free: 8.633 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002141/0.3549, allocations: 346.8 kB / 337.4 MB, free: 8.285 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003811/0.3553, allocations: 184.8 kB / 337.6 MB, free: 8.105 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004649/0.3557, allocations: 248.5 kB / 337.8 MB, free: 7.848 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004624/0.3562, allocations: 263.2 kB / 338.1 MB, free: 7.578 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3562, allocations: 0 / 338.1 MB, free: 7.578 MB / 270.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001253/0.3575, allocations: 0.6564 MB / 338.7 MB, free: 6.902 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.109e-05/0.3576, allocations: 63.39 kB / 338.8 MB, free: 6.828 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.3576, allocations: 0 / 338.8 MB, free: 6.828 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.3576, allocations: 4 kB / 338.8 MB, free: 6.824 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.3577, allocations: 59.91 kB / 338.8 MB, free: 6.766 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.477e-06/0.3578, allocations: 0 / 338.8 MB, free: 6.766 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003795/0.3581, allocations: 63.77 kB / 338.9 MB, free: 6.703 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003855/0.3585, allocations: 279.7 kB / 339.2 MB, free: 6.43 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.0004612/0.359, allocations: 289.1 kB / 339.5 MB, free: 6.125 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.707e-05/0.3591, allocations: 31.62 kB / 339.5 MB, free: 6.094 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.401e-05/0.3592, allocations: 38.95 kB / 339.5 MB, free: 6.059 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.3592, allocations: 4 kB / 339.5 MB, free: 6.055 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.3592, allocations: 4 kB / 339.5 MB, free: 6.051 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.3592, allocations: 0 / 339.5 MB, free: 6.051 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006637/0.3599, allocations: 481.2 kB / 340 MB, free: 5.531 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.3599, allocations: 3.938 kB / 340 MB, free: 5.527 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001073/0.36, allocations: 51.91 kB / 340.1 MB, free: 5.477 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.36, allocations: 0 / 340.1 MB, free: 5.477 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.469e-05/0.3601, allocations: 47.97 kB / 340.1 MB, free: 5.43 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.3601, allocations: 0 / 340.1 MB, free: 5.43 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3601, allocations: 0 / 340.1 MB, free: 5.43 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.3613, allocations: 0.6216 MB / 340.7 MB, free: 4.777 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004015/0.3617, allocations: 200.7 kB / 340.9 MB, free: 4.562 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.3618, allocations: 12 kB / 340.9 MB, free: 4.551 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002507/0.362, allocations: 47.81 kB / 341 MB, free: 4.504 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002612/0.3623, allocations: 87.91 kB / 341.1 MB, free: 4.418 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003541/0.3627, allocations: 279.7 kB / 341.3 MB, free: 4.145 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002823/0.363, allocations: 198 kB / 341.5 MB, free: 3.953 MB / 270.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.363, allocations: 0 / 341.5 MB, free: 3.953 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005132/0.3635, allocations: 99.84 kB / 341.6 MB, free: 3.855 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.0003344/0.3638, allocations: 137.8 kB / 341.8 MB, free: 3.715 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001174/0.365, allocations: 0.5686 MB / 342.3 MB, free: 3.121 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.365, allocations: 0 / 342.3 MB, free: 3.121 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005723/0.3656, allocations: 362.5 kB / 342.7 MB, free: 2.742 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001285/0.3669, allocations: 272.7 kB / 343 MB, free: 2.477 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/0.3686, allocations: 0.7892 MB / 343.7 MB, free: 1.66 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005548/0.3692, allocations: 0.8149 MB / 344.6 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.001735/0.3709, allocations: 0.751 MB / 345.3 MB, free: 64 kB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000709/0.3717, allocations: 266.9 kB / 345.6 MB, free: 15.8 MB / 286.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3717, allocations: 0 / 345.6 MB, free: 15.8 MB / 286.1 MB Notification: Performance of Templates: time 0.01693/0.3886, allocations: 10.01 MB / 355.6 MB, free: 5.562 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: