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.009827/0.009827, allocations: 100.8 kB / 15.73 MB, free: 5.996 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.001639/0.001639, allocations: 195.9 kB / 16.68 MB, free: 5.918 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.205/2.205, allocations: 205.1 MB / 222.6 MB, free: 4.332 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.001299/0.001299, allocations: 59.38 kB / 326.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1379, allocations: 46.62 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.004306/0.1422, allocations: 2.128 MB / 375.3 MB, free: 15.15 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003051/0.1453, allocations: 1.162 MB / 376.5 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.1455, allocations: 4 kB / 376.5 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002563/0.1458, allocations: 47.58 kB / 376.5 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001251/0.1459, allocations: 43.58 kB / 376.5 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006372/0.1466, allocations: 183.6 kB / 376.7 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005575/0.1471, allocations: 455.6 kB / 377.2 MB, free: 13.26 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004261/0.1476, allocations: 164.9 kB / 377.3 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001054/0.1486, allocations: 0.8382 MB / 378.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003291/0.149, allocations: 259 kB / 378.4 MB, free: 12 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.745e-05/0.1491, allocations: 40 kB / 378.5 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.701e-05/0.1492, allocations: 44 kB / 378.5 MB, free: 11.92 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002106/0.1494, allocations: 147.5 kB / 378.6 MB, free: 11.78 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002447/0.1496, allocations: 214.8 kB / 378.9 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009162/0.1506, allocations: 0.9306 MB / 379.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.1506, allocations: 0 / 379.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1506, allocations: 3.938 kB / 379.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.1506, allocations: 0 / 379.8 MB, free: 10.63 MB / 318.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.001351/0.152, allocations: 0.8608 MB / 380.7 MB, free: 9.707 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.152, allocations: 8.031 kB / 380.7 MB, free: 9.699 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.1522, allocations: 52.38 kB / 380.7 MB, free: 9.648 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007047/0.1529, allocations: 351.3 kB / 381.1 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.694e-05/0.1529, allocations: 29.03 kB / 381.1 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.587e-05/0.153, allocations: 32.38 kB / 381.1 MB, free: 9.207 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009474/0.154, allocations: 494.1 kB / 381.6 MB, free: 8.715 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.154, allocations: 4 kB / 381.6 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.009e-05/0.1541, allocations: 19.94 kB / 381.6 MB, free: 8.691 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.1541, allocations: 8 kB / 381.6 MB, free: 8.684 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007876/0.1549, allocations: 374.4 kB / 382 MB, free: 8.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002287/0.1572, allocations: 1.12 MB / 383.1 MB, free: 7.148 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.1584, allocations: 427.5 kB / 383.5 MB, free: 6.723 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003584/0.1588, allocations: 185.2 kB / 383.7 MB, free: 6.539 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.22e-05/0.1588, allocations: 4.281 kB / 383.7 MB, free: 6.535 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007067/0.1595, allocations: 347 kB / 384.1 MB, free: 6.184 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 2.615e-06/0.1596, allocations: 4 kB / 384.1 MB, free: 6.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.001567/0.1611, allocations: 0.7236 MB / 384.8 MB, free: 5.438 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.1613, allocations: 114.8 kB / 384.9 MB, free: 5.301 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005419/0.1618, allocations: 306.3 kB / 385.2 MB, free: 4.996 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001357/0.1619, allocations: 41.7 kB / 385.2 MB, free: 4.949 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.1621, allocations: 180.7 kB / 385.4 MB, free: 4.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.1623, allocations: 87.03 kB / 385.5 MB, free: 4.684 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002885/0.1626, allocations: 186 kB / 385.7 MB, free: 4.496 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0003154/0.1629, allocations: 338.8 kB / 386 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004028/0.1633, allocations: 184.8 kB / 386.2 MB, free: 3.977 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004265/0.1637, allocations: 232.5 kB / 386.4 MB, free: 3.73 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008724/0.1646, allocations: 0.53 MB / 386.9 MB, free: 3.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.1646, allocations: 0 / 386.9 MB, free: 3.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001191/0.1658, allocations: 0.6409 MB / 387.6 MB, free: 2.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.729e-05/0.1659, allocations: 60.5 kB / 387.6 MB, free: 2.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.1659, allocations: 7.969 kB / 387.7 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.1659, allocations: 4 kB / 387.7 MB, free: 2.418 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001542/0.1661, allocations: 63.89 kB / 387.7 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.1661, allocations: 4 kB / 387.7 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/0.1663, allocations: 23.91 kB / 387.7 MB, free: 2.328 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002906/0.1666, allocations: 287.6 kB / 388 MB, free: 2.047 MB / 318.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.0003611/0.167, allocations: 300.9 kB / 388.3 MB, free: 1.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.942e-05/0.1671, allocations: 31.7 kB / 388.4 MB, free: 1.699 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.876e-05/0.1672, allocations: 30.97 kB / 388.4 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.1672, allocations: 4 kB / 388.4 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.328e-05/0.1672, allocations: 7.922 kB / 388.4 MB, free: 1.656 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.1672, allocations: 0 / 388.4 MB, free: 1.656 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000543/0.1678, allocations: 477.2 kB / 388.9 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.1678, allocations: 4 kB / 388.9 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001024/0.1679, allocations: 55.91 kB / 388.9 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.1679, allocations: 0 / 388.9 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.864e-05/0.168, allocations: 47.97 kB / 389 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/0.168, allocations: 0 / 389 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.168, allocations: 0 / 389 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.169, allocations: 0.6053 MB / 389.6 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003141/0.1693, allocations: 196.6 kB / 389.8 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.75e-05/0.1694, allocations: 23.98 kB / 389.8 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001438/0.1696, allocations: 12 kB / 389.8 MB, free: 156 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002479/0.1699, allocations: 95.77 kB / 389.9 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002963/0.1702, allocations: 283.7 kB / 390.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002263/0.1704, allocations: 209.9 kB / 390.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1704, allocations: 0 / 390.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004402/0.1708, allocations: 91.84 kB / 390.5 MB, free: 15.48 MB / 334.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.0002556/0.1711, allocations: 141.8 kB / 390.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001087/0.1722, allocations: 0.5493 MB / 391.2 MB, free: 14.76 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1722, allocations: 0 / 391.2 MB, free: 14.76 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005545/0.1728, allocations: 366.5 kB / 391.5 MB, free: 14.38 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00127/0.1741, allocations: 329 kB / 391.8 MB, free: 14.06 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.1755, allocations: 0.7001 MB / 392.5 MB, free: 13.33 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004681/0.176, allocations: 0.8111 MB / 393.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00152/0.1775, allocations: 0.7471 MB / 394.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000707/0.1782, allocations: 262.8 kB / 394.3 MB, free: 11.49 MB / 334.1 MB Notification: Performance of SimCode: time 8.12e-07/0.1782, allocations: 0 / 394.3 MB, free: 11.49 MB / 334.1 MB Notification: Performance of Templates: time 0.01666/0.1949, allocations: 10.9 MB / 405.3 MB, free: 356 kB / 334.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)