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.01118/0.01118, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001796/0.001796, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.025/2.025, allocations: 205.1 MB / 222.6 MB, free: 4.496 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.001264/0.001264, allocations: 53.7 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1485, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.005453/0.154, allocations: 2.121 MB / 375.3 MB, free: 15.17 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003859/0.158, allocations: 1.166 MB / 376.5 MB, free: 14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003722/0.1584, allocations: 4 kB / 376.5 MB, free: 13.99 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003842/0.1589, allocations: 47.56 kB / 376.5 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003585/0.1592, allocations: 47.58 kB / 376.6 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009126/0.1602, allocations: 175.7 kB / 376.7 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009522/0.1611, allocations: 459.6 kB / 377.2 MB, free: 13.28 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000451/0.1616, allocations: 164.9 kB / 377.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001397/0.163, allocations: 0.8421 MB / 378.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004476/0.1635, allocations: 247 kB / 378.4 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.1636, allocations: 48 kB / 378.5 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.1637, allocations: 44 kB / 378.5 MB, free: 11.94 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002254/0.1639, allocations: 151.5 kB / 378.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003231/0.1643, allocations: 214.8 kB / 378.9 MB, free: 11.58 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001058/0.1653, allocations: 0.9383 MB / 379.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.1654, allocations: 0 / 379.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1654, allocations: 0 / 379.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.42e-05/0.1654, allocations: 0 / 379.8 MB, free: 10.64 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.00158/0.167, allocations: 0.8608 MB / 380.7 MB, free: 9.715 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.637e-05/0.1671, allocations: 12.03 kB / 380.7 MB, free: 9.703 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001773/0.1672, allocations: 52.31 kB / 380.7 MB, free: 9.652 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006037/0.1679, allocations: 351.4 kB / 381.1 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.947e-05/0.1679, allocations: 25.03 kB / 381.1 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.168, allocations: 36.38 kB / 381.1 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/0.1691, allocations: 490.1 kB / 381.6 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.1691, allocations: 4 kB / 381.6 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.587e-05/0.1692, allocations: 16 kB / 381.6 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.1692, allocations: 8 kB / 381.6 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007543/0.17, allocations: 378.4 kB / 382 MB, free: 8.328 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002042/0.172, allocations: 1.112 MB / 383.1 MB, free: 7.164 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001191/0.1732, allocations: 443.5 kB / 383.6 MB, free: 6.723 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004355/0.1737, allocations: 177.3 kB / 383.7 MB, free: 6.547 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.489e-05/0.1738, allocations: 4.281 kB / 383.7 MB, free: 6.543 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007034/0.1745, allocations: 351 kB / 384.1 MB, free: 6.188 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 3.396e-06/0.1745, allocations: 0 / 384.1 MB, free: 6.188 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.00155/0.176, allocations: 0.7275 MB / 384.8 MB, free: 5.441 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000145/0.1762, allocations: 110.8 kB / 384.9 MB, free: 5.309 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004576/0.1767, allocations: 306.4 kB / 385.2 MB, free: 5.004 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.998e-05/0.1768, allocations: 41.7 kB / 385.2 MB, free: 4.957 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.1769, allocations: 180.7 kB / 385.4 MB, free: 4.777 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.177, allocations: 75.05 kB / 385.5 MB, free: 4.703 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002897/0.1773, allocations: 186 kB / 385.7 MB, free: 4.516 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.1775, allocations: 346.7 kB / 386 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003794/0.1779, allocations: 184.8 kB / 386.2 MB, free: 3.988 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004346/0.1784, allocations: 236.5 kB / 386.4 MB, free: 3.738 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009431/0.1793, allocations: 0.5339 MB / 387 MB, free: 3.164 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.1793, allocations: 0 / 387 MB, free: 3.164 MB / 318.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001268/0.1806, allocations: 0.6332 MB / 387.6 MB, free: 2.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.303e-05/0.1807, allocations: 67.39 kB / 387.7 MB, free: 2.434 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.1807, allocations: 3.938 kB / 387.7 MB, free: 2.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.316e-05/0.1807, allocations: 4 kB / 387.7 MB, free: 2.426 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001643/0.1809, allocations: 59.94 kB / 387.7 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.1809, allocations: 0 / 387.7 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002446/0.1812, allocations: 35.83 kB / 387.8 MB, free: 2.332 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003222/0.1815, allocations: 283.6 kB / 388 MB, free: 2.055 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.0004936/0.182, allocations: 301 kB / 388.3 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.676e-05/0.1821, allocations: 27.72 kB / 388.4 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.795e-05/0.1822, allocations: 38.89 kB / 388.4 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.1822, allocations: 4 kB / 388.4 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.096e-06/0.1822, allocations: 0 / 388.4 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1822, allocations: 0 / 388.4 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006635/0.1829, allocations: 481.2 kB / 388.9 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.1829, allocations: 0 / 388.9 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.183, allocations: 51.91 kB / 388.9 MB, free: 1.098 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.183, allocations: 0 / 388.9 MB, free: 1.098 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.923e-05/0.1831, allocations: 47.97 kB / 389 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.1831, allocations: 4 kB / 389 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.1831, allocations: 0 / 389 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.1843, allocations: 0.6092 MB / 389.6 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002664/0.1846, allocations: 200.6 kB / 389.8 MB, free: 196 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.1847, allocations: 16 kB / 389.8 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001631/0.1849, allocations: 19.98 kB / 389.8 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002418/0.1852, allocations: 91.78 kB / 389.9 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003218/0.1855, allocations: 280 kB / 390.2 MB, free: 15.79 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002426/0.1857, allocations: 205.9 kB / 390.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1858, allocations: 4 kB / 390.4 MB, free: 15.58 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004389/0.1862, allocations: 95.84 kB / 390.5 MB, free: 15.49 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.0002336/0.1864, allocations: 141.8 kB / 390.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.1875, allocations: 0.5454 MB / 391.2 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1876, allocations: 4 kB / 391.2 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006522/0.1882, allocations: 358.4 kB / 391.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001403/0.1896, allocations: 333 kB / 391.8 MB, free: 14.07 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001579/0.1912, allocations: 0.7041 MB / 392.5 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000488/0.1917, allocations: 0.7994 MB / 393.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001666/0.1934, allocations: 0.7549 MB / 394.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007275/0.1941, allocations: 266.8 kB / 394.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of SimCode: time 1.113e-06/0.1942, allocations: 0 / 394.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of Templates: time 0.0202/0.2144, allocations: 10.9 MB / 405.3 MB, free: 368 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)