Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Digital.Examples.FlipFlop") translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.00149/0.001489, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.00197/0.001971, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.001/2.001, allocations: 205.1 MB / 223.7 MB, free: 12.34 MB / 190.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.001954/0.001954, allocations: 59.92 kB / 280 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.1566, allocations: 46.63 MB / 326.6 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.005586/0.1623, allocations: 2.139 MB / 328.8 MB, free: 2.324 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003562/0.1659, allocations: 1.159 MB / 329.9 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003543/0.1663, allocations: 11.94 kB / 329.9 MB, free: 1.145 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000303/0.1667, allocations: 43.58 kB / 330 MB, free: 1.102 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001468/0.1669, allocations: 39.64 kB / 330 MB, free: 1.062 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007805/0.1677, allocations: 175.7 kB / 330.2 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000577/0.1682, allocations: 455.6 kB / 330.6 MB, free: 456 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003775/0.1686, allocations: 156.9 kB / 330.8 MB, free: 300 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001158/0.1698, allocations: 0.8344 MB / 331.6 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004033/0.1702, allocations: 259 kB / 331.9 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001271/0.1703, allocations: 40 kB / 331.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001158/0.1705, allocations: 44 kB / 331.9 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002477/0.1707, allocations: 143.5 kB / 332.1 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003121/0.1711, allocations: 222.7 kB / 332.3 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001144/0.1722, allocations: 0.9154 MB / 333.2 MB, free: 13.84 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.363e-06/0.1722, allocations: 0 / 333.2 MB, free: 13.84 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.457e-06/0.1722, allocations: 0 / 333.2 MB, free: 13.84 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.614e-05/0.1723, allocations: 0 / 333.2 MB, free: 13.84 MB / 286.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.001797/0.1741, allocations: 0.8684 MB / 334.1 MB, free: 12.91 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.687e-05/0.1741, allocations: 8.031 kB / 334.1 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.1743, allocations: 48.47 kB / 334.1 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005282/0.1748, allocations: 347.4 kB / 334.5 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.806e-05/0.1749, allocations: 29.03 kB / 334.5 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.164e-05/0.175, allocations: 40.31 kB / 334.6 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009167/0.1759, allocations: 494.1 kB / 335 MB, free: 11.92 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.1759, allocations: 0 / 335 MB, free: 11.92 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.986e-05/0.176, allocations: 16 kB / 335 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.629e-05/0.176, allocations: 8 kB / 335.1 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007543/0.1768, allocations: 374.4 kB / 335.4 MB, free: 11.53 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00239/0.1792, allocations: 1.128 MB / 336.6 MB, free: 10.35 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001289/0.1805, allocations: 439.5 kB / 337 MB, free: 9.914 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004271/0.1809, allocations: 177.3 kB / 337.2 MB, free: 9.738 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.875e-05/0.181, allocations: 8.266 kB / 337.2 MB, free: 9.73 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000933/0.182, allocations: 343.1 kB / 337.5 MB, free: 9.383 MB / 286.1 MB Notification: Performance of pre-optimization done (n=35): time 3.066e-06/0.182, allocations: 0 / 337.5 MB, free: 9.383 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.001915/0.1839, allocations: 0.7315 MB / 338.2 MB, free: 8.633 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.184, allocations: 110.8 kB / 338.3 MB, free: 8.5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004871/0.1845, allocations: 306.4 kB / 338.6 MB, free: 8.195 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.117e-05/0.1846, allocations: 41.7 kB / 338.7 MB, free: 8.148 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002137/0.1848, allocations: 176.7 kB / 338.8 MB, free: 7.969 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001524/0.185, allocations: 90.92 kB / 338.9 MB, free: 7.879 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003757/0.1854, allocations: 182 kB / 339.1 MB, free: 7.695 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002621/0.1857, allocations: 346.8 kB / 339.5 MB, free: 7.348 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000447/0.1861, allocations: 180.8 kB / 339.6 MB, free: 7.172 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000477/0.1866, allocations: 232.5 kB / 339.9 MB, free: 6.93 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009757/0.1876, allocations: 0.5223 MB / 340.4 MB, free: 6.367 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.1876, allocations: 0 / 340.4 MB, free: 6.367 MB / 286.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00125/0.1889, allocations: 0.6449 MB / 341 MB, free: 5.703 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.208e-05/0.189, allocations: 59.41 kB / 341.1 MB, free: 5.633 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.189, allocations: 0 / 341.1 MB, free: 5.633 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.529e-05/0.189, allocations: 4 kB / 341.1 MB, free: 5.629 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001792/0.1892, allocations: 63.83 kB / 341.1 MB, free: 5.566 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/0.1892, allocations: 11.97 kB / 341.2 MB, free: 5.555 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002327/0.1895, allocations: 23.84 kB / 341.2 MB, free: 5.531 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003329/0.1898, allocations: 287.7 kB / 341.5 MB, free: 5.25 MB / 286.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.0004218/0.1902, allocations: 281.1 kB / 341.7 MB, free: 4.953 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.527e-05/0.1903, allocations: 35.62 kB / 341.8 MB, free: 4.918 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.416e-05/0.1904, allocations: 38.95 kB / 341.8 MB, free: 4.879 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.1904, allocations: 4 kB / 341.8 MB, free: 4.875 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/0.1905, allocations: 0 / 341.8 MB, free: 4.875 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.1905, allocations: 3.984 kB / 341.8 MB, free: 4.871 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006262/0.1911, allocations: 485.1 kB / 342.3 MB, free: 4.348 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.1911, allocations: 4 kB / 342.3 MB, free: 4.344 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.1913, allocations: 55.91 kB / 342.4 MB, free: 4.289 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.1913, allocations: 0 / 342.4 MB, free: 4.289 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.587e-05/0.1913, allocations: 47.97 kB / 342.4 MB, free: 4.242 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.1914, allocations: 4 kB / 342.4 MB, free: 4.238 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1914, allocations: 0 / 342.4 MB, free: 4.238 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.1925, allocations: 0.6014 MB / 343 MB, free: 3.605 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003182/0.1928, allocations: 200.6 kB / 343.2 MB, free: 3.391 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001247/0.1929, allocations: 12 kB / 343.2 MB, free: 3.379 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/0.1931, allocations: 19.98 kB / 343.2 MB, free: 3.359 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003077/0.1934, allocations: 95.84 kB / 343.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003388/0.1937, allocations: 279.7 kB / 343.6 MB, free: 2.992 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002774/0.194, allocations: 201.9 kB / 343.8 MB, free: 2.797 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.194, allocations: 3.938 kB / 343.8 MB, free: 2.793 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005552/0.1946, allocations: 103.8 kB / 343.9 MB, free: 2.691 MB / 286.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.0003197/0.1949, allocations: 137.8 kB / 344 MB, free: 2.547 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001351/0.1963, allocations: 0.596 MB / 344.6 MB, free: 1.926 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1963, allocations: 0 / 344.6 MB, free: 1.926 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004989/0.1968, allocations: 362.5 kB / 345 MB, free: 1.547 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001322/0.1981, allocations: 325.1 kB / 345.3 MB, free: 1.23 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00154/0.1997, allocations: 0.7235 MB / 346 MB, free: 488 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004938/0.2002, allocations: 0.8033 MB / 346.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001629/0.2019, allocations: 0.7549 MB / 347.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007052/0.2026, allocations: 262.8 kB / 347.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of SimCode: time 1.262e-06/0.2026, allocations: 0 / 347.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of Templates: time 0.02004/0.2226, allocations: 10.91 MB / 358.8 MB, free: 3.492 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1)