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.0121/0.0121, allocations: 101.7 kB / 15.73 MB, free: 6.469 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.002184/0.002184, allocations: 193.2 kB / 16.67 MB, free: 6.379 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.975/1.975, allocations: 205.1 MB / 222.6 MB, free: 4.531 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.001529/0.001529, allocations: 55.81 kB / 326.5 MB, free: 14.3 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1643/0.1658, allocations: 46.62 MB / 373.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003541/0.1694, allocations: 2.136 MB / 375.3 MB, free: 15.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00276/0.1722, allocations: 1.162 MB / 376.5 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.1723, allocations: 7.938 kB / 376.5 MB, free: 14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002266/0.1726, allocations: 43.58 kB / 376.5 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001234/0.1727, allocations: 39.64 kB / 376.6 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006561/0.1734, allocations: 175.7 kB / 376.7 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005685/0.174, allocations: 463.6 kB / 377.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003271/0.1743, allocations: 160.9 kB / 377.3 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009097/0.1752, allocations: 0.8383 MB / 378.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003791/0.1756, allocations: 263 kB / 378.4 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001151/0.1757, allocations: 40 kB / 378.5 MB, free: 12 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.031e-05/0.1758, allocations: 44 kB / 378.5 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002203/0.1761, allocations: 147.5 kB / 378.7 MB, free: 11.81 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002442/0.1763, allocations: 218.8 kB / 378.9 MB, free: 11.6 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008037/0.1771, allocations: 0.9267 MB / 379.8 MB, free: 10.67 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.1772, allocations: 0 / 379.8 MB, free: 10.67 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1772, allocations: 3.938 kB / 379.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.1772, allocations: 0 / 379.8 MB, free: 10.66 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.001335/0.1785, allocations: 0.8646 MB / 380.7 MB, free: 9.738 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.1786, allocations: 12.03 kB / 380.7 MB, free: 9.727 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.1787, allocations: 56.36 kB / 380.7 MB, free: 9.672 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005768/0.1793, allocations: 351.3 kB / 381.1 MB, free: 9.289 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.906e-05/0.1793, allocations: 29.03 kB / 381.1 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.967e-05/0.1794, allocations: 32.38 kB / 381.1 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009077/0.1804, allocations: 490.1 kB / 381.6 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.1804, allocations: 0 / 381.6 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.788e-05/0.1805, allocations: 19.98 kB / 381.6 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.1805, allocations: 8 kB / 381.6 MB, free: 8.715 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007575/0.1812, allocations: 378.4 kB / 382 MB, free: 8.348 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002173/0.1834, allocations: 1.108 MB / 383.1 MB, free: 7.188 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.1846, allocations: 431.5 kB / 383.5 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003596/0.185, allocations: 185.3 kB / 383.7 MB, free: 6.574 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.997e-05/0.185, allocations: 4.266 kB / 383.7 MB, free: 6.57 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007673/0.1858, allocations: 347 kB / 384.1 MB, free: 6.219 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 1.914e-06/0.1858, allocations: 0 / 384.1 MB, free: 6.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.001559/0.1874, allocations: 0.7275 MB / 384.8 MB, free: 5.473 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.757e-05/0.1875, allocations: 118.8 kB / 384.9 MB, free: 5.332 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003571/0.1879, allocations: 306.4 kB / 385.2 MB, free: 5.027 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.182e-05/0.1879, allocations: 37.7 kB / 385.2 MB, free: 4.984 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.1881, allocations: 184.7 kB / 385.4 MB, free: 4.801 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/0.1883, allocations: 79.05 kB / 385.5 MB, free: 4.723 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000278/0.1885, allocations: 182 kB / 385.7 MB, free: 4.539 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002042/0.1888, allocations: 342.8 kB / 386 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003706/0.1891, allocations: 184.8 kB / 386.2 MB, free: 4.016 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003973/0.1895, allocations: 232.5 kB / 386.4 MB, free: 3.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008354/0.1904, allocations: 0.5338 MB / 387 MB, free: 3.195 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.1904, allocations: 0 / 387 MB, free: 3.195 MB / 318.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001107/0.1915, allocations: 0.6333 MB / 387.6 MB, free: 2.543 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.22e-05/0.1916, allocations: 59.41 kB / 387.6 MB, free: 2.473 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.1916, allocations: 4.078 kB / 387.6 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.1916, allocations: 0 / 387.6 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.1918, allocations: 67.83 kB / 387.7 MB, free: 2.402 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.1918, allocations: 7.984 kB / 387.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001915/0.192, allocations: 31.92 kB / 387.8 MB, free: 2.363 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003176/0.1923, allocations: 283.6 kB / 388 MB, free: 2.086 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.0004402/0.1928, allocations: 297 kB / 388.3 MB, free: 1.773 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.272e-05/0.1929, allocations: 27.72 kB / 388.3 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.699e-05/0.1929, allocations: 38.95 kB / 388.4 MB, free: 1.707 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/0.193, allocations: 7.938 kB / 388.4 MB, free: 1.699 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.193, allocations: 3.938 kB / 388.4 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.193, allocations: 0 / 388.4 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007007/0.1937, allocations: 485.2 kB / 388.9 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1937, allocations: 0 / 388.9 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.1938, allocations: 51.91 kB / 388.9 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.299e-06/0.1938, allocations: 4 kB / 388.9 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.154e-05/0.1939, allocations: 47.97 kB / 389 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.339e-06/0.1939, allocations: 4 kB / 389 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.1939, allocations: 0 / 389 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/0.1951, allocations: 0.6092 MB / 389.6 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003403/0.1954, allocations: 200.6 kB / 389.8 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.737e-05/0.1955, allocations: 19.98 kB / 389.8 MB, free: 196 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001337/0.1957, allocations: 12 kB / 389.8 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002164/0.1959, allocations: 91.77 kB / 389.9 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002418/0.1961, allocations: 283.7 kB / 390.2 MB, free: 15.81 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001811/0.1963, allocations: 209.9 kB / 390.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1963, allocations: 0 / 390.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003889/0.1967, allocations: 95.84 kB / 390.5 MB, free: 15.51 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.000236/0.197, allocations: 137.8 kB / 390.6 MB, free: 15.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001015/0.198, allocations: 0.5454 MB / 391.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.198, allocations: 0 / 391.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005214/0.1985, allocations: 358.5 kB / 391.5 MB, free: 14.42 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.1999, allocations: 332.9 kB / 391.8 MB, free: 14.1 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.2013, allocations: 0.7001 MB / 392.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005086/0.2018, allocations: 0.8111 MB / 393.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001395/0.2032, allocations: 0.7471 MB / 394.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006663/0.2039, allocations: 266.8 kB / 394.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2039, allocations: 4 kB / 394.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of Templates: time 0.01852/0.2224, allocations: 11.04 MB / 405.4 MB, free: 248 kB / 334.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)