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.001648/0.001648, allocations: 110.6 kB / 16.51 MB, free: 6.707 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.00193/0.00193, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.93/1.93, allocations: 205.1 MB / 223.3 MB, free: 12.47 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.001734/0.001734, allocations: 43.92 kB / 279.3 MB, free: 3.582 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1627/0.1644, allocations: 46.62 MB / 325.9 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.004302/0.1688, allocations: 2.189 MB / 328.1 MB, free: 2.684 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002901/0.1717, allocations: 1.135 MB / 329.3 MB, free: 1.539 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002836/0.172, allocations: 11.94 kB / 329.3 MB, free: 1.527 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003052/0.1724, allocations: 35.7 kB / 329.3 MB, free: 1.492 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002209/0.1726, allocations: 31.78 kB / 329.3 MB, free: 1.461 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006883/0.1733, allocations: 159.8 kB / 329.5 MB, free: 1.305 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006307/0.174, allocations: 415.6 kB / 329.9 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003786/0.1744, allocations: 156.9 kB / 330.1 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001123/0.1755, allocations: 0.8147 MB / 330.9 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003922/0.1759, allocations: 235.1 kB / 331.1 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001548/0.1761, allocations: 16 kB / 331.1 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001111/0.1762, allocations: 20 kB / 331.1 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001948/0.1764, allocations: 123.5 kB / 331.3 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003227/0.1767, allocations: 194.7 kB / 331.5 MB, free: 15.35 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009528/0.1777, allocations: 0.8998 MB / 332.4 MB, free: 14.45 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.1777, allocations: 0 / 332.4 MB, free: 14.45 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1777, allocations: 4 kB / 332.4 MB, free: 14.45 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.28e-05/0.1777, allocations: 0 / 332.4 MB, free: 14.45 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.002129/0.1799, allocations: 0.8723 MB / 333.2 MB, free: 13.51 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.1799, allocations: 12.03 kB / 333.2 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000184/0.1801, allocations: 44.47 kB / 333.3 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006035/0.1807, allocations: 351.4 kB / 333.6 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.884e-05/0.1808, allocations: 21.03 kB / 333.6 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/0.1809, allocations: 36.38 kB / 333.7 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00105/0.182, allocations: 0.4902 MB / 334.2 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.182, allocations: 0 / 334.2 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.906e-05/0.1821, allocations: 12 kB / 334.2 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.1821, allocations: 8 kB / 334.2 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008182/0.1829, allocations: 374.4 kB / 334.6 MB, free: 12.13 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002626/0.1856, allocations: 1.112 MB / 335.7 MB, free: 10.96 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00137/0.187, allocations: 439.4 kB / 336.1 MB, free: 10.53 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004377/0.1874, allocations: 185.3 kB / 336.3 MB, free: 10.34 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.314e-05/0.1875, allocations: 4.219 kB / 336.3 MB, free: 10.34 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008909/0.1884, allocations: 339.2 kB / 336.6 MB, free: 9.996 MB / 286.1 MB Notification: Performance of pre-optimization done (n=35): time 4.879e-06/0.1884, allocations: 3.984 kB / 336.6 MB, free: 9.992 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.001815/0.1903, allocations: 0.7267 MB / 337.3 MB, free: 9.246 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.1904, allocations: 118.8 kB / 337.5 MB, free: 9.105 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005476/0.1909, allocations: 306.4 kB / 337.8 MB, free: 8.801 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.404e-05/0.191, allocations: 37.7 kB / 337.8 MB, free: 8.758 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001684/0.1912, allocations: 176.7 kB / 338 MB, free: 8.578 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.1913, allocations: 90.98 kB / 338.1 MB, free: 8.488 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003398/0.1917, allocations: 182 kB / 338.2 MB, free: 8.305 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.1918, allocations: 342.8 kB / 338.6 MB, free: 7.961 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004057/0.1923, allocations: 188.7 kB / 338.8 MB, free: 7.777 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004304/0.1927, allocations: 232.5 kB / 339 MB, free: 7.535 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008477/0.1936, allocations: 0.5184 MB / 339.5 MB, free: 6.977 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.1936, allocations: 0 / 339.5 MB, free: 6.977 MB / 286.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001425/0.195, allocations: 0.6487 MB / 340.2 MB, free: 6.309 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001069/0.1951, allocations: 59.41 kB / 340.2 MB, free: 6.238 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.1951, allocations: 4.156 kB / 340.2 MB, free: 6.234 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.125e-05/0.1952, allocations: 0 / 340.2 MB, free: 6.234 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002027/0.1954, allocations: 63.89 kB / 340.3 MB, free: 6.172 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.664e-05/0.1954, allocations: 7.984 kB / 340.3 MB, free: 6.164 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004612/0.1959, allocations: 59.69 kB / 340.3 MB, free: 6.105 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003942/0.1963, allocations: 283.7 kB / 340.6 MB, free: 5.828 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.0005585/0.1969, allocations: 281.1 kB / 340.9 MB, free: 5.531 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.197, allocations: 31.72 kB / 340.9 MB, free: 5.5 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.415e-05/0.1971, allocations: 38.95 kB / 341 MB, free: 5.461 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.1971, allocations: 4 kB / 341 MB, free: 5.457 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.1971, allocations: 0 / 341 MB, free: 5.457 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.1971, allocations: 3.984 kB / 341 MB, free: 5.453 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006884/0.1978, allocations: 481.1 kB / 341.4 MB, free: 4.934 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.1978, allocations: 0 / 341.4 MB, free: 4.934 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001218/0.1979, allocations: 51.91 kB / 341.5 MB, free: 4.883 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.198, allocations: 4 kB / 341.5 MB, free: 4.879 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-05/0.1981, allocations: 43.97 kB / 341.5 MB, free: 4.836 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5e-06/0.1981, allocations: 4 kB / 341.5 MB, free: 4.832 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.1981, allocations: 0 / 341.5 MB, free: 4.832 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00113/0.1992, allocations: 0.6138 MB / 342.2 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003394/0.1996, allocations: 200.6 kB / 342.4 MB, free: 3.973 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001252/0.1997, allocations: 16 kB / 342.4 MB, free: 3.957 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002539/0.2, allocations: 31.97 kB / 342.4 MB, free: 3.926 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002675/0.2002, allocations: 87.91 kB / 342.5 MB, free: 3.84 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003041/0.2005, allocations: 287.7 kB / 342.8 MB, free: 3.559 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002304/0.2008, allocations: 209.9 kB / 343 MB, free: 3.355 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2008, allocations: 0 / 343 MB, free: 3.355 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005854/0.2014, allocations: 99.75 kB / 343.1 MB, free: 3.258 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.0002658/0.2017, allocations: 137.8 kB / 343.2 MB, free: 3.113 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0012/0.2029, allocations: 0.5569 MB / 343.8 MB, free: 2.531 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.2029, allocations: 0 / 343.8 MB, free: 2.531 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005772/0.2035, allocations: 362.5 kB / 344.1 MB, free: 2.152 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001342/0.2048, allocations: 300.5 kB / 344.4 MB, free: 1.855 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001637/0.2065, allocations: 0.8258 MB / 345.2 MB, free: 1 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005255/0.207, allocations: 0.7994 MB / 346 MB, free: 176 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.001651/0.2087, allocations: 0.7472 MB / 346.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007396/0.2094, allocations: 266.8 kB / 347 MB, free: 15.16 MB / 302.1 MB Notification: Performance of SimCode: time 1.262e-06/0.2094, allocations: 0 / 347 MB, free: 15.16 MB / 302.1 MB Notification: Performance of Templates: time 0.01694/0.2264, allocations: 10.34 MB / 357.4 MB, free: 4.602 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)