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.001579/0.001579, allocations: 114 kB / 16.62 MB, free: 6.812 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.001592/0.001592, allocations: 186 kB / 17.55 MB, free: 5.934 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.022/2.022, allocations: 205.1 MB / 223.4 MB, free: 12.43 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.001887/0.001887, allocations: 51.92 kB / 279.5 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1563/0.1583, allocations: 46.63 MB / 326.1 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.00417/0.1625, allocations: 2.185 MB / 328.3 MB, free: 2.594 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002556/0.1651, allocations: 1.139 MB / 329.5 MB, free: 1.445 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.1653, allocations: 4 kB / 329.5 MB, free: 1.441 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002452/0.1656, allocations: 39.7 kB / 329.5 MB, free: 1.402 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001153/0.1657, allocations: 27.78 kB / 329.5 MB, free: 1.375 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005682/0.1663, allocations: 159.8 kB / 329.7 MB, free: 1.219 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004861/0.1668, allocations: 463.6 kB / 330.1 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002873/0.1671, allocations: 160.9 kB / 330.3 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009564/0.1681, allocations: 0.8422 MB / 331.1 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003288/0.1684, allocations: 267 kB / 331.4 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.716e-05/0.1685, allocations: 40 kB / 331.4 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.487e-05/0.1686, allocations: 44 kB / 331.5 MB, free: 15.42 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001817/0.1688, allocations: 151.5 kB / 331.6 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002317/0.169, allocations: 222.7 kB / 331.8 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008155/0.1698, allocations: 0.9154 MB / 332.8 MB, free: 14.14 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.1699, allocations: 0 / 332.8 MB, free: 14.14 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1699, allocations: 0 / 332.8 MB, free: 14.14 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.1699, allocations: 4 kB / 332.8 MB, free: 14.13 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.00132/0.1712, allocations: 0.8684 MB / 333.6 MB, free: 13.2 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.1713, allocations: 8.031 kB / 333.6 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000134/0.1714, allocations: 48.47 kB / 333.7 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004837/0.1719, allocations: 351.4 kB / 334 MB, free: 12.76 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.43e-05/0.172, allocations: 29.03 kB / 334.1 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.344e-05/0.1721, allocations: 32.38 kB / 334.1 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009176/0.173, allocations: 490.1 kB / 334.6 MB, free: 12.21 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.173, allocations: 4 kB / 334.6 MB, free: 12.21 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.746e-05/0.1731, allocations: 23.88 kB / 334.6 MB, free: 12.19 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.1731, allocations: 8 kB / 334.6 MB, free: 12.18 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000733/0.1738, allocations: 378.4 kB / 335 MB, free: 11.81 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001879/0.1757, allocations: 1.104 MB / 336.1 MB, free: 10.65 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.1768, allocations: 435.5 kB / 336.5 MB, free: 10.22 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003517/0.1772, allocations: 177.3 kB / 336.7 MB, free: 10.04 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.713e-05/0.1773, allocations: 12.28 kB / 336.7 MB, free: 10.03 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007207/0.178, allocations: 343.2 kB / 337 MB, free: 9.684 MB / 286.1 MB Notification: Performance of pre-optimization done (n=35): time 2.715e-06/0.178, allocations: 0 / 337 MB, free: 9.684 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.001499/0.1795, allocations: 0.7198 MB / 337.7 MB, free: 8.945 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.619e-05/0.1796, allocations: 110.8 kB / 337.8 MB, free: 8.812 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003569/0.18, allocations: 314.3 kB / 338.2 MB, free: 8.5 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.393e-05/0.1801, allocations: 41.7 kB / 338.2 MB, free: 8.453 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001853/0.1803, allocations: 180.7 kB / 338.4 MB, free: 8.27 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/0.1804, allocations: 86.92 kB / 338.5 MB, free: 8.184 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002887/0.1807, allocations: 182 kB / 338.6 MB, free: 8 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.1809, allocations: 342.8 kB / 339 MB, free: 7.656 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003679/0.1812, allocations: 184.8 kB / 339.1 MB, free: 7.477 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004138/0.1817, allocations: 236.5 kB / 339.4 MB, free: 7.23 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008539/0.1825, allocations: 0.5028 MB / 339.9 MB, free: 6.688 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.136e-06/0.1825, allocations: 8 kB / 339.9 MB, free: 6.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001182/0.1837, allocations: 0.6449 MB / 340.5 MB, free: 6.016 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.454e-05/0.1838, allocations: 67.39 kB / 340.6 MB, free: 5.938 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.1838, allocations: 0 / 340.6 MB, free: 5.938 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.205e-05/0.1839, allocations: 4 kB / 340.6 MB, free: 5.934 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001574/0.184, allocations: 55.84 kB / 340.7 MB, free: 5.879 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.184, allocations: 4 kB / 340.7 MB, free: 5.875 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003622/0.1844, allocations: 59.64 kB / 340.7 MB, free: 5.816 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003443/0.1848, allocations: 287.7 kB / 341 MB, free: 5.535 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.0004384/0.1852, allocations: 285.1 kB / 341.3 MB, free: 5.234 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.209e-05/0.1853, allocations: 27.72 kB / 341.3 MB, free: 5.207 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.75e-05/0.1854, allocations: 30.97 kB / 341.3 MB, free: 5.176 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.1854, allocations: 11.98 kB / 341.4 MB, free: 5.164 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.1854, allocations: 0 / 341.4 MB, free: 5.164 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.1854, allocations: 7.984 kB / 341.4 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000652/0.1861, allocations: 485.1 kB / 341.8 MB, free: 4.633 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1861, allocations: 0 / 341.8 MB, free: 4.633 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001185/0.1862, allocations: 51.91 kB / 341.9 MB, free: 4.582 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.1862, allocations: 0 / 341.9 MB, free: 4.582 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.724e-05/0.1863, allocations: 47.97 kB / 341.9 MB, free: 4.535 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.613e-06/0.1863, allocations: 7.938 kB / 341.9 MB, free: 4.527 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1863, allocations: 0 / 341.9 MB, free: 4.527 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.1875, allocations: 0.613 MB / 342.5 MB, free: 3.883 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002631/0.1878, allocations: 196.6 kB / 342.7 MB, free: 3.672 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.1879, allocations: 15.98 kB / 342.8 MB, free: 3.656 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002197/0.1881, allocations: 35.91 kB / 342.8 MB, free: 3.621 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002458/0.1883, allocations: 87.92 kB / 342.9 MB, free: 3.535 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002959/0.1886, allocations: 283.7 kB / 343.2 MB, free: 3.258 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002213/0.1889, allocations: 209.9 kB / 343.4 MB, free: 3.055 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1889, allocations: 0 / 343.4 MB, free: 3.055 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004673/0.1894, allocations: 103.8 kB / 343.5 MB, free: 2.953 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.0002336/0.1896, allocations: 137.8 kB / 343.6 MB, free: 2.809 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.1907, allocations: 0.6002 MB / 344.2 MB, free: 2.184 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1907, allocations: 0 / 344.2 MB, free: 2.184 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005397/0.1913, allocations: 358.5 kB / 344.5 MB, free: 1.809 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001334/0.1926, allocations: 333.1 kB / 344.9 MB, free: 1.484 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001586/0.1942, allocations: 0.8173 MB / 345.7 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005137/0.1948, allocations: 0.8072 MB / 346.5 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001663/0.1964, allocations: 0.7587 MB / 347.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007028/0.1972, allocations: 266.8 kB / 347.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of SimCode: time 4.309e-06/0.1972, allocations: 0 / 347.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of Templates: time 0.01797/0.2151, allocations: 10.61 MB / 358.1 MB, free: 3.938 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)