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.001627/0.001628, 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.00293/0.00293, allocations: 194.3 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.826/1.826, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.001252/0.001252, allocations: 55.91 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3415, allocations: 46.64 MB / 325.3 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003567/0.3451, allocations: 2.129 MB / 327.4 MB, free: 152 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.003266/0.3484, allocations: 1.155 MB / 328.6 MB, free: 15.26 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001892/0.3486, allocations: 8.125 kB / 328.6 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002977/0.349, allocations: 46.3 kB / 328.6 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001448/0.3491, allocations: 37.39 kB / 328.7 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000759/0.3499, allocations: 177.4 kB / 328.9 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007766/0.3507, allocations: 465 kB / 329.3 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004077/0.3511, allocations: 151.2 kB / 329.5 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.3522, allocations: 0.838 MB / 330.3 MB, free: 14.33 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003891/0.3526, allocations: 260.5 kB / 330.6 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00013/0.3527, allocations: 45.69 kB / 330.6 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001178/0.3528, allocations: 43.09 kB / 330.6 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002247/0.3531, allocations: 152.7 kB / 330.8 MB, free: 14.07 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002743/0.3534, allocations: 218.4 kB / 331 MB, free: 13.91 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001103/0.3545, allocations: 0.9117 MB / 331.9 MB, free: 13.18 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.044e-06/0.3545, allocations: 1.125 kB / 331.9 MB, free: 13.18 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3545, allocations: 0 / 331.9 MB, free: 13.18 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.3545, allocations: 0 / 331.9 MB, free: 13.18 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.001578/0.3561, allocations: 0.8679 MB / 332.8 MB, free: 12.37 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.3562, allocations: 16.03 kB / 332.8 MB, free: 12.36 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/0.3563, allocations: 48.47 kB / 332.8 MB, free: 12.31 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000464/0.3568, allocations: 347.4 kB / 333.2 MB, free: 11.93 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.389e-05/0.3568, allocations: 25.03 kB / 333.2 MB, free: 11.9 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.956e-05/0.3569, allocations: 32.38 kB / 333.2 MB, free: 11.87 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008874/0.3578, allocations: 498 kB / 333.7 MB, free: 11.38 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.149e-05/0.3579, allocations: 0 / 333.7 MB, free: 11.38 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.06e-05/0.3579, allocations: 16 kB / 333.7 MB, free: 11.36 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.358, allocations: 8 kB / 333.7 MB, free: 11.36 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007523/0.3587, allocations: 378.4 kB / 334.1 MB, free: 10.98 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001902/0.3606, allocations: 1.128 MB / 335.2 MB, free: 9.809 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.3618, allocations: 435.5 kB / 335.7 MB, free: 9.375 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003725/0.3622, allocations: 177.3 kB / 335.8 MB, free: 9.199 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.957e-05/0.3623, allocations: 4.281 kB / 335.8 MB, free: 9.195 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007498/0.363, allocations: 356.2 kB / 336.2 MB, free: 8.836 MB / 270.1 MB Notification: Performance of pre-optimization done (n=35): time 2.134e-06/0.363, allocations: 0 / 336.2 MB, free: 8.836 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.001552/0.3646, allocations: 0.7237 MB / 336.9 MB, free: 8.094 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.104e-05/0.3647, allocations: 118.8 kB / 337 MB, free: 7.953 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003531/0.365, allocations: 298.4 kB / 337.3 MB, free: 7.656 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 7.076e-05/0.3651, allocations: 45.69 kB / 337.4 MB, free: 7.605 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.3653, allocations: 180.7 kB / 337.5 MB, free: 7.422 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.3654, allocations: 83 kB / 337.6 MB, free: 7.34 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002856/0.3657, allocations: 189.9 kB / 337.8 MB, free: 7.148 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.3659, allocations: 338.8 kB / 338.1 MB, free: 6.809 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003819/0.3663, allocations: 180.8 kB / 338.3 MB, free: 6.633 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004119/0.3667, allocations: 240.5 kB / 338.6 MB, free: 6.383 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008295/0.3676, allocations: 0.5145 MB / 339.1 MB, free: 5.828 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3676, allocations: 0 / 339.1 MB, free: 5.828 MB / 270.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001119/0.3687, allocations: 0.641 MB / 339.7 MB, free: 5.168 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.922e-05/0.3688, allocations: 71.36 kB / 339.8 MB, free: 5.086 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.3688, allocations: 0 / 339.8 MB, free: 5.086 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.3688, allocations: 4 kB / 339.8 MB, free: 5.082 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.369, allocations: 59.91 kB / 339.8 MB, free: 5.023 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.369, allocations: 3.938 kB / 339.8 MB, free: 5.02 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002251/0.3692, allocations: 31.83 kB / 339.9 MB, free: 4.988 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003253/0.3696, allocations: 283.7 kB / 340.2 MB, free: 4.711 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.0004749/0.3701, allocations: 293.1 kB / 340.4 MB, free: 4.402 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.917e-05/0.3702, allocations: 31.62 kB / 340.5 MB, free: 4.371 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.3703, allocations: 38.95 kB / 340.5 MB, free: 4.332 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.3703, allocations: 4 kB / 340.5 MB, free: 4.328 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.3703, allocations: 0 / 340.5 MB, free: 4.328 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.3703, allocations: 3.984 kB / 340.5 MB, free: 4.324 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006521/0.371, allocations: 477.2 kB / 341 MB, free: 3.809 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.371, allocations: 4 kB / 341 MB, free: 3.805 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.3711, allocations: 59.89 kB / 341 MB, free: 3.746 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.105e-06/0.3711, allocations: 0 / 341 MB, free: 3.746 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.136e-05/0.3712, allocations: 43.98 kB / 341.1 MB, free: 3.703 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.3712, allocations: 7.984 kB / 341.1 MB, free: 3.695 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3712, allocations: 0 / 341.1 MB, free: 3.695 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.3723, allocations: 0.6091 MB / 341.7 MB, free: 3.055 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002631/0.3726, allocations: 196.7 kB / 341.9 MB, free: 2.844 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.3727, allocations: 16 kB / 341.9 MB, free: 2.828 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.3728, allocations: 15.98 kB / 341.9 MB, free: 2.812 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002275/0.3731, allocations: 87.91 kB / 342 MB, free: 2.727 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002666/0.3733, allocations: 279.7 kB / 342.3 MB, free: 2.453 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002495/0.3736, allocations: 209.8 kB / 342.5 MB, free: 2.25 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3736, allocations: 0 / 342.5 MB, free: 2.25 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004842/0.3741, allocations: 95.84 kB / 342.6 MB, free: 2.156 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.0002411/0.3743, allocations: 141.8 kB / 342.7 MB, free: 2.008 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001194/0.3755, allocations: 0.5998 MB / 343.3 MB, free: 1.383 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.3756, allocations: 4 kB / 343.3 MB, free: 1.379 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005556/0.3761, allocations: 362.6 kB / 343.7 MB, free: 1 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00133/0.3775, allocations: 329 kB / 344 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001633/0.3791, 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.0005206/0.3797, allocations: 0.8075 MB / 345.5 MB, free: 15.1 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.001625/0.3813, allocations: 0.7471 MB / 346.3 MB, free: 14.35 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007585/0.3821, allocations: 270.8 kB / 346.5 MB, free: 14.09 MB / 286.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3821, allocations: 0 / 346.5 MB, free: 14.09 MB / 286.1 MB Notification: Performance of Templates: time 0.01724/0.3993, allocations: 10.9 MB / 357.4 MB, free: 2.953 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)